This content has been marked as final. Show 3 replies
Well this maybe be even more basic - you don't need to turn off the scroll bars. Resizing a child so that any point is outside the parent window seems to leave the child's parent in an ambiguous state.
I'm implementing an app that allows the user to move objects within a Canvas, and I'd like to let the user partially drag an image outside the canvas. This behavior (bug or not) is making life difficult (well relatively difficult).
Any insight into why this is occurring would be appreciated.
Well I found a work around if anyone is interested.
Instead of calling swapChildren() on the parent Canvas, call removeChild() and addChildAt(). I.e. do the swap yourself instead of relying on the Canvas code to do it.
FYI - rotating a child close to the edge of a parent can also lead to these symptoms, so I'm pretty sure there is a low level Flash bug that gets the parent/child relationship confused if the child is partially outside the visible parent Canvas. You only see the bug when you invoke swapChildren.
Anyway, enough with bugs, back to making progress ..