FORUMS: list search recent posts

Passing Loading Params

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Richie Schut
Passing Loading Params
on Dec 10, 2008 at 2:54:31 am

I am trying to create an audio player in Flash CS3 with AS3. I need to send a parameter in the object tag to flash. I got this to work once, then lost the file. Any help you can give with this would be great.


var xfile:String = new String();
var paramList:Object = this.root.loaderInfo.parameters;
xfile = paramList["xfile"];

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, whenLoaded);
loader.load(new URLRequest(xfile));

Thanks
Richie


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]