The lower the index for a display object, the further back it is correct?
I have two objects.
Object A has an index of 0
Object B has an index of 1
Object B would be in front of Object A correct?
1 person found this helpful
Think of your objects as a desk of cards and the screen is looking down on them. Placing something on the display list is like putting down 1 card. It's index is 0. Then you put down another card ontop, its index is 1 and so on. The last thing you put down is on top.
Is there a way to set something to addChild at the highest index?
I'm just about ready to pull my hair out, I don't know why I can't see my sharingBookmarks component when I come out of fullScreen before the video ends....
When you use the addChild method that will put the item at the last index of the list. You usually use addChildAt to insert an item in a specific locatiion say 1, and then all the other items in the display list get incremented.
Hmm, that much I'm aware of...
Is there anything that can theoretically exist in the displayList that doesn't necessarily take up an index?
When I check the index on my main application, there are only 2 items.  and , yet the  component is still being covered up by something...
I tried not hiding the  component (visible = true) and I can see it, but there is some kind of overlay over it that restricts me from clicking of the buttons on that component. And the overlay has a partial opacity, which is slightly transparent...
If there is no such possibilty, that would mean that overlay is actually my  component... but it is slightly transparent and missing all visual indicators that it IS indeed the  component..
This only happens when I come go to fullscreen then come back from fullscreen before the video completes and all those functions run.
The  component gets added upon the videoDisplay.COMPLETE event, that fact along with double checking the index confirms that the sharingBookmarks component is indeed on the top of my display stack..
Any clues or directions are greatly appreciated, thanks!
p.s. I can provide more code or answers to any questions if anyone is interested in solving this puzzle.
So that overlay is indeed the sharingBookmarks component( in the main application index) but for some reason, it is being altered when I goto and come back from the fullscreen functions I listed above..
Otherwise, all the code operates fine.
Anyone have any ideas?
I've discovered the issue.
The sharingBookmarks component is set to constrain to the center of the application and it is applied when the video goes to fullscreen, but for some reason, the constraints stay at the full screen dimensions, even when the application comes back from full screen, which is giving the illusion that the component isn't there, when it really is, just skewed off the visible display area!
So my question is, how do I set vertical and horizontal constraint via AcionScript??
What is the AS equivalent of the MXML verticalCenter and horizontalCenter?
I've found it..
MXML attributes are styles so you can't set those properties via the . syntax..
Instead, you have to use this syntax.
Hope this post will save someone a great deal of headaches..