There is something unexpected happening here. I’m trying to make a Login screen as a separate SWF. So I have my main game, and this main game will load another SWF that is the login screen, then the user will log in and the login screen will vanish completely and the user will return to the main game with his user data. Both the main game and the login screen are made using flashpunk. That is what I was planning.
But I have noticed that when I load the login SWF, if I do for instance a “FP.engine.width = 100” in the main game SWF, both the main game and the loaded SWF screen will be re-scaled to have a width of 100. I was expecting that flashpunk would work completely independent in both SWFs, and the changes I made in the first wouldn’t affect the other.
Interesting is that if I do the command “width = 100” from the SWF that has been loaded, only the width from this loaded swf is affected. That doesn’t make any sense for me.
Have anyone had any experience with multiple loaded SWFs using flash punk here to give me an insight?