I found this code:
in the parent swf
gameLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
function onInit(e:Event) {
MovieClip(gameLoader.content).userId = 100;
}
In the loaded swf
public class Game extends MovieClip {
public var userId:int = 0;
function
Loader is a DisplayObject. You can add Loader to the stage before telling it to
load. You don't have to wait to addChild() the content of the Loader after it
loads.
You cannot dispatch bubbled events from your loaded swf through the Loader that
loaded it. Keep that in mind.
Doing
Maybe I should rethink that metaphor...
Yes, please. Although in this case, wouldn't grandpa and granny be the ones
having sex? Not sure if that makes the metaphor more or less disturbing,
though.
Cheers
Juan Pablo Califano
2010/6/7 Steven Sacks flash...@stevensacks.net
Loader is a
3 matches
Mail list logo