This content has been marked as final. Show 3 replies
What I want is for the content to position itself immediately even before I resize the stage. Is it possible?
Where did the main get placed?
Okay taking a second to hypothesize about the problem, you which to have an object drawn on stage at a specific point, and wish the object to stay there when you set the Stage.scaleMode = "noScale"; function.
Having run into this exact problem today, I can tell you don't have to make a function for it. scaleMode allows the file to be resized, but the stage still thinks it's the same high and width.
To verify trace Stage.width and Stage.height as you resize it.
Or simply modify your code to read:
main._x = 748.5/2;
main._y = 462/2;
This makes since, because if the value of the stage width and height changed it would create all sorts of messiness. It saves flash programmers like us lot's of headaches figuring out how to position objects in a constantly changing environment.
Though their not exactly clear on that, so we try to do it anyway.
Never the less hope this helps.