I wasn’t sure what to call this title as I’m not that good with English… I hope you understand my problem.
I’ve followed the great tutorials on tile-based games from Tonypa and I’ve got everything working :thumb:
But now I want to load the game.swf in another swf which hold some nice graphics and dynamic textfields for the score etc. When I use the following code:
ActionScript Code:
[FONT=Courier New][LEFT]myplaceholder.[COLOR=#0000FF]loadMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"mygame.swf"[/COLOR][COLOR=#000000])[/COLOR];
myplaceholder.[COLOR=#0000FF]_lockroot[/COLOR] = [COLOR=#000000]true[/COLOR];
[/LEFT]
[/FONT]
Everything works just fine, but then I can’t give my “points” value from the game.swf to the variable “points” in the root. (_root.points += this.points);
If I leave out the “_lockroot” stuff, the game doesn’t show (well) because it uses the 0,0 coordinates from the root.
Can someone please help me out?