I’ve been putting off asking this question and have tried to resolve it myself since it would seem to be so basic; however after much frustration :bu: , here goes:
Can a display object (ie an instance of a class loaded from the library such as a filled rectangle {trying to keep this simple} be positioned on the main stage by using the following syntax:
myrecTangle.stage.align = StageAlign.BOTTOM;
I have created a fairly simple class to load objects to the stage by class type (recTangle) and name (myrecTangle) and all works fine up to the positioning. The objects are created and named properly and are placed on stage; however, they are all placed on stage at 0,0 stage coordinates. I can postion them anywhere using x. and .y values but when I use syntax similar to that above they are still positioned at 0,0. There are no errors thrown. I have also tried to create a sprite for each, load them into the sprite and addChild the sprite to the stage. They are still positioned on stage at 0,0. Is the stage.align/StageAlign syntax peculiar to absolute main stage positioning or am I allowed to use it also for object positioning. Sorry to waste time with this newbie question but I’m outta creative ideas.
Thanks for a great forum and any time spent with response.
Arch