My application really needs popup dialogs to contain some custom controls I have made. The answer seemed to be the PopUpManager, which, when I got the hang of it, works fine. Only trouble is that my app loads another MovieClip into a higher level (_level9, as it happens) while it is running. It loads this externally, not from the library. This is where the trouble starts. My popup dialog Windows, created with PopUpManager, now appear UNDER the MovieClip at level9. I have tried casting them as MovieClips and using DepthManager (mc.setDepthTo), but this only makes it worse. The popups are now under the components (list, datagrid etc) on the _root movie. I am running out of ideas, but don't want to have to build my own pop-up manager (this was why I paid so much for the PRO edition....). I would be grateful for any guidance. I'm a relative novice to Flash, even though I have programmed in C++ for over 20 years. The movie level thing is tough to master.
This is (only!) one of the aspects of Flash that can be confusing to newer users, regardless of their experience developing on other platforms or with other languages. Your main movie, which controls your popups via PopUpManager is on _level0. When you instanciate or duplicate clips in this movie, they are all at _level0. Setting the depth of these clips (via setDepthTo or swapDepths), sets their z order *whithin _level0 only* Your movie loaded into _level9 will always be above _level0, and there is nothing you can do about that. If you need your popups to appear above this you have 2 option - you can either create your popups in a level higher than 9, or you can load your _level9 content into a movieClip on _level0 rather than _level9, thus allowing you to leave your popups on _level0, but place them above the content that is currently in _level9. HTH }P -- ------------------------------- Remove '_spamkiller_' to mail -------------------------------
Don't see what you're looking for? Try a search.
|