AS3 - loader class: change external swf to original scene size

Here is my problem (unfortunately couldn't find a solution @google):

I load external swf [AS2] into main swf [AS3] using the Loader class. The main swf is 800 x 600 and the external swf is 300 x 200.

After adding the external swf to the master swf, the external swf expands its size from 300 x 200 to the base swf size: 800 x 600.

How can I prevent this? I want the downloaded swf to keep the original size.

Cheers Rob

+2


a source to share


1 answer


Assuming there is no code in AS2 swf that does the extension itself, I think what you need to do in AS3 is:



stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

      

0


a source







All Articles