Open pdf in reader, not in the browser as3

  • Juandavo
  • Born
  • Born
  • Juandavo
  • Posts: 3

Post 3+ Months Ago

Greetings, I have the following...

It is a game, interactive cd (opens in full screen)

First think a class .as called Callback...there I have this code:
Code: [ Select ]
package{

public class Callback{

public static function create(handler:Function,...args):Function{

return function(...innerArgs):void{
handler.apply(this,innerArgs.concat(args));
}

}
}
}
  1. package{
  2. public class Callback{
  3. public static function create(handler:Function,...args):Function{
  4. return function(...innerArgs):void{
  5. handler.apply(this,innerArgs.concat(args));
  6. }
  7. }
  8. }
  9. }


Then in my file flash I have this code:
Code: [ Select ]
import Callback;
function abrirPDF(e:MouseEvent,RUTA:String){
navigateToURL(new URLRequest(RUTA))
}
abrirpdf_btn.addEventListener(MouseEvent.CLICK,Callback.create(abrirPDF,"EncuestaNacionaldeNiniezODNNA.pdf"));
  1. import Callback;
  2. function abrirPDF(e:MouseEvent,RUTA:String){
  3. navigateToURL(new URLRequest(RUTA))
  4. }
  5. abrirpdf_btn.addEventListener(MouseEvent.CLICK,Callback.create(abrirPDF,"EncuestaNacionaldeNiniezODNNA.pdf"));


But when I do the executable, and give click, I open the browser...QUE PASA?

Help with that by fa...

Thanks......
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.