Hi,
If you use something like:
                var my_mcl:MovieClipLoader = new MovieClipLoader();
                
                var myListener:Object = new Object();

                myListener.onLoadInit = function(target_mc:MovieClip) {
                  trace(target_mc._width);
                }; 
                my_mcl.addListener(myListener);
                my_mcl.loadClip(<YOUR path to SWF here eg "test.swf">, <path
to container here>_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to center
it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |"noScale" : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are
OK but once loaded inside another Flash movie, the Stage's dimentions are
those of the main movie.

I was looking to include a mc with the same dimentions as the stage inside
the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it impossible?

Thanks a million.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to