I seem to be having a problem passing variables to dynamically loaded swfs. My crossdomain.xml allows the loader to access the game, however the game cannot access the loader… Just so you know. So using root/stage in the game movie is a no-go.
Heres my loader code:
gameLoader.load(request);
function loadComplete(e:Event) {
var Game:MovieClip = new MovieClip();
Game = MovieClip(gameLoader.content);
Game.userId = 19717633;
addChild(Game);
}
Heres my test code on timeline of the loaded game movieclip…
var userId;
testText.text = String(userId);
Undefined…