Ok....

I mc instance on the stage (scene) is correctly named.

I'm compiling the movie in Flash7 AS2.0 .. but I just tried in Flash8 AS2.0
and this is still not working.

Hum... what's going on. I never had this king of problem before.
I'm going to check everything... but it doesn't make sense...
I'm sure that I'm going to be mad at myself when I'm going to solve this.

I will let you know.

Thanks again, in the meantime if you any other idea...

Hugues.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew
Sent: Saturday, April 08, 2006 12:17 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] createEmptyMovieClip path

Did a quick test, works fine.  Maybe compare the solution and figure out
where your problem is?

(I have an empty movieclip instance on stage called mcEmpty, did you name
your movie instance in your Properties window?)

Below code tested on Flash 8:

var url = [ "http://www.adobe.com/imageshome/flash_icon3.jpg";,
           "http://www.adobe.com/imageshome/pdfprintengine_icon.gif"; ];

for (var i = 0; i < url.length; i++)
{
    // you can just create one MovieClipLoader to load all clips, but this
is ok too
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    
    var mcHolder = mcEmpty.createEmptyMovieClip("mcHolder" + i,
mcEmpty.getNextHighestDepth());
    mcHolder._x = 40 * i;
    mcLoader.loadClip(url[i], mcHolder);
}

hbruyere <[EMAIL PROTECTED]> wrote: 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  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


                
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just
2�/min with Yahoo! Messenger with Voice.
                
---------------------------------
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

Reply via email to