hi all. i'm trying to load a swf and scale it down to a specific size before displaying it. i'm using this to do so:
var mclListener:Object = new Object(); mclListener.onLoadInit = function(target_mc:MovieClip) { trace("target w:"+target_mc._width); trace("target h:"+target_mc._height); trace("target ver:" + target_mc.getSWFVersion()); var newScaleRatio:Number = Math.min( 350/target_mc._width, 250/target_mc._height)*100; target_mc._xscale = newScaleRatio; target_mc._yscale = newScaleRatio; }; var image_mcl:MovieClipLoader = new MovieClipLoader(); image_mcl.addListener(mclListener); image_mcl.loadClip("1024768dummy.swf", _root.holder); the swf (1024768dummy.swf) has a size of 1024x768 pixel. when i test my script it returns: 947.7 (width) and 126.95 (height)... what's wrong with it? i exported the dummy as version 6 swf btw. thanks: lars _______________________________________________ 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