Hi Jim, No, not loadMovieNum - just loadMovie. This is horribly simplified - but let's just say that our 'container' movie takes care of loading, and has two layers:
_appLayer=createEmptyMovieClip("app",getNextHighestDepth()); _dialogsLayer=createEmptyMovieClip("dialogs",getNextHighestDepth()); Then load (say) app.swf into _appLayer and dialogs.swf into _dialogsLayer. Which I'll leave as an exercise involving MovieClipLoader, if you like - it's simple enough. So once you've done that if you wanted to create/display a button: import net.eirias.ui.UIButton; (this is just a simple MovieClip derived class that gives us button behaviour on a MovieClip) Object.registerClass("MyExitButton",UIButton); var myExitButton:MovieClip=UIButton( _dialogsLayer.attachMovie("MyExitButton", "exitButton",_dialogsLayer.getNextHighestDepth())); (Assuming that there is a movieclip symbol called "MyExitButton" in the library of dialogs.swf.) So what we've ended up with is a new button, displayed _inside_ dialogs.swf(and thus above everything in _appLayer), using code defined in UIButton (which is defined in of our container movie - dialogs.swf knows nothing about it). Since dialogs.swf has nothing to display normally - it's a completely empty movieclip, aside from what's in it's library - all we see is a button floating on top of the app. We use the same trick for custom mouse pointers, dialogs, etc. etc. We can switch the decorative theme around the application without breaking a sweat. Hope that makes some kind of sense. Like I said, it's not ideal, but it's the best (and easiest) we've come up with. Cheers, Ian On 12/13/05, Jim Tann <[EMAIL PROTECTED]> wrote: > > So are you using loadMovieNum("resource.swf", intDepth);? Can you give > me some example code please? This sounds useful. > > Jim > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders