AudioJungle

Posts by hrasheed

3 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • United Kingdom
hrasheed says

Hi there,

From last few days i’m playing with a AS 3 .0 code which is a bit a headache for me to load swf movies in as 3.0. I created an interactive cd in as 2.0 but now I had to convert in as 3.0 and i can’t load.

here is the code, if somebody can help me. I will be very thankful.

var Xpos:Number = 0;
var Ypos:Number = 0;
var loader:Loader = new Loader();

var defaultSWF:URLRequest = new URLRequest("fscommand/index.swf");

loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);

// Btns fucntions
function info_btn(event:MouseEvent):void {

removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("fscommand/information.swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);

}

function welcome_btn(event:MouseEvent):void {

removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("fscommand/welcome.swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);

}

// Btn listeners
welcome_btn.addEventListener(MouseEvent.CLICK, welcome_btn);
info_btn.addEventListener(MouseEvent.CLICK, info_btn);

3 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • United Kingdom
hrasheed says

I really appreciate your help. I tried and it didnt work abd doesn’t open save as dialog box, i will be very thankful if you could send me in a file. i will be very thankful to you.

Here is my email

haroon_61@hotmail.com

thanks

3 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • United Kingdom
hrasheed says

I have interactive cd that i want to run offline and can’t use http:// anywhere. I want to save my .pdf file on different locations by using flash interface. I found the following piece of code but it just downloads files if file located on server. I want to run locally; //------------------ import flash.net.FileReference; var listener:Object = new Object(); listener.onComplete = function(file:FileReference) { trace(“onComplete : “+file.name); }; var url:String = “http://www.macromedia.com/platform/whitepapers/platform_overview.pdf”; var fileRef:FileReference = new FileReference(); fileRef.addListener(listener); fileRef.download(url, ””); //--------------------

thanks

by
by
by
by
by