Loading external AS2 SWF in AS2  
Author Message
AmarShah





PostPosted: 2007-12-12 3:11:44 Top

flash-actionscript, Loading external AS2 SWF in AS2 I want to load the external SWF file which is in AS2 in to my SWF file which is
also in AS2.. The problem I am facing is I am able to load external SWF but I
am not able to pass the Flash vars to that SWF.. Here is my Code

var _mcl:MovieClipLoader = new MovieClipLoader();
var _listener:Object = new Object();
_listener.onLoadInit = function(_mc:MovieClip)
{
trace("Done loading...");
}
_mcl.addListener(_listener);



this._mc1.removeMovieClip(clip_1);

this.createEmptyMovieClip("_mc", this.getNextHighestDepth());
_mcl.loadClip("http://www.xyz.com/xyz/xyz.swf?200711900&local=true", _mc);


So the xyz.swf is not able to read the variable local I am passing as a flash
variable..

So how can I accomplish passing flashvars to this xyz.swf

Thanks





 
Bob Pierce





PostPosted: 2007-12-12 5:00:00 Top

flash-actionscript >> Loading external AS2 SWF in AS2 I don't know if you can pass variables this way, but since you are hard coding them in AS why not pass them directly to _mc once your .swf has loaded?