Thursday, November 6, 2008

Resize swffit AS3

Double check that the "swffit.fit" matches your javascript and also "my_flash". eg, in your HTML: swffit.fit("my_flash", 1024, 2000);

import flash.external.ExternalInterface;
function resizeSwffit(newWidth:Number, newHeight:Number):void {
        ExternalInterface.call("swffit.fit","my_flash",newWidth,newHeight);
}

No comments: