Looks like that info is in the swf header (Northcode pulls from that to do its getStageSize) but I don't know how you can access the header of a loaded swf from within Flash itself.

Helen

Éric Thibault wrote:

I already do that... but the width and height of the container clip takes into account any instances outside the boundary of the loaded SWF's stage... So I'm getting the total with and height but want only the stage dimentions of the loaded SWF!

I want to align the loaded SWF'stage in the loading flash....

If it was just for me, i would not put anything outside the stage of the loaded SWF but I'm not the producer of those swf...

And having the stage dimentions would help because the loaded SWF's dimentions only takes into account the instances present on frame 1... (mc_square 100*100 at (0,0) on a stage of 300*300 results in a container clip of 100*100!)

A+

j.c.wichman wrote:

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



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to