whats a sure shot way to make sure objects appear correctly positioned on stage
Posted
by dubbeat
on Stack Overflow
See other posts from Stack Overflow
or by dubbeat
Published on 2010-06-14T10:15:11Z
Indexed on
2010/06/14
10:32 UTC
Read the original article
Hit count: 214
Hi,
I've being having a lot of trouble recently getting objects (UIComponents containing movieclips) to appear correctly in the right positions.
For example, my current dilema is I have a container that is 3 layers deep.
outer layer inner layer display layer
This hiearachy was built in CS4 as a movieclip.
In the display layer in CS4 I figured out where I want to place 16 different "box" movieclips. I dont want to create these boxes maunually at design time, instead I want to add them at run time.
So I know what container I want to add my boxes to. I know what positions they "would" be at in CS4 environment. Whats the best way to add them in the correct locations with code?
The "box" I'm trying to add in a movieclip held inside of a UIComponent.
Is there a "rule of thumb" to do this type of thing? I'm sure I'm going to encounter this problem again and again and I'd like to just blow the problem out of the water once and for all with the "right way" to do this.
© Stack Overflow or respective owner