Embed .swf with parameters
I have to call a .swf having parameters from another flash file.
I made this using:
var context:LoaderContext = new LoaderContext();
context.parameters = {
'param1': 'foo',
'param2': 'bar'
}
loader = new Loader();
loader.load(new URLRequest('external.swf'), context);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
addChild(loader);
But now I have the need to embed the .swf, not dinamically load from an external url.
How could I do it?