No didn't solve my problem. But thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Friday, April 07, 2006 11:38 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] createEmptyMovieClip path
At a glance, I caught at least one problem, not sure if they are others that could cause your problem. var NewMC_mc:MovieClip = ContentContainer_mc.createEmptyMovieClip("container"+i, getNextHighestDepth()); You need to call getNextHighestDepth() on your ContentContainer_mc, like so: var NewMC_mc:MovieClip = ContentContainer_mc.createEmptyMovieClip("container"+i, ContentContainer_mc.getNextHighestDepth()); - boon hbruyere <[EMAIL PROTECTED]> wrote: Hi, I don't understand what I get when running this: //////////////////////////////////////////////////////////////////////////// //// for (var i = 0; i < NumPages_v; i ++) { var NewMC_mc:MovieClip = ContentContainer_mc.createEmptyMovieClip("container"+i, getNextHighestDepth()); NewMC_mc._x = ScreenWidth_c * i; NewMC_mc._y = 0; var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(this); mcLoader.loadClip(WebsiteMap_a[i].File_tx, NewMC_mc); function onLoadInit(mc:MovieClip) { trace("onLoadInit: " + mc); } } //////////////////////////////////////////////////////////////////////////// //// I get NOTHING ! My external movieClips are not load or at least displayed. But if If replace: var NewMC_mc:MovieClip = ContentContainer_mc.createEmptyMovieClip("container"+i, getNextHighestDepth()); by var NewMC_mc:MovieClip = createEmptyMovieClip("container"+i, getNextHighestDepth()); it works. But I want to load my external into the movie clip named "ContentContainer_mc" present on the main scene on the root of my main Movie. What am I missing here ? Must be stupid. Any advice are welcome, Thanks, Hugues. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com