I found this code:
<in the parent swf>
gameLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
function onInit(e:Event) {
MovieClip(gameLoader.content).userId = 1000000;
}
<In the loaded swf>
public class Game extends MovieClip {
public var userId:int = 0;
function Game() {
addEventListener(Event.ADDED_TO_STAGE,Init);
}
function Init(e:Event) {
testText.text = String(userId);
}
I am not seeing how I can add the swf to the stage (
MovieClip(gameLoader.content).userId = 1000000;)
How can I add it to the stage?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders