Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Flash Actionscript

External swf loading a variable from the swf that calls it?


I'd like to know how to access a variable from within an external swf that has
been passed in the URL upon calling the external swf itself.
 For example, I could pass a variable to a external.swf as follows:

 this.createEmptyMovieClip(?mExternalSWF?,this.getNextHighestDepth());
 var mlSWFLoader:MovieClipLoader = new MovieClipLoader();
 mlSWFLoader.loadClip(?external.swf?varToExt=20?, mExternalSWF);

 How do I load varToExt from within external.swf?
 Thanks!

 Andrew

varToExt will be defined on the main timeline of external.swf which after loading is complete and external is initialized would be referenced by:

mExternalSWF.varToExt

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc