标签:ram frame number stage bsp tag 尺寸 trace meld
//swf实际尺寸
var oldWidth:Number = frameLder.contentLoaderInfo.content.width;
var oldHeight:Number = frameLder.contentLoaderInfo.content.height;
//swf原舞台尺寸
var stageWidth:Number = frameLder.contentLoaderInfo.width;
var stageHeight:Number = frameLder.contentLoaderInfo.height;
//trace(frameLder.contentLoaderInfo.content.width,"被加载进来的宽度");
frameLder.contentLoaderInfo.content.scaleX=frameLder.contentLoaderInfo.content.scaleY= 1080/stageHeight;
所有加载的swf都不要放在stage中。尽量放在时间轴上就是开始的文档类this。这样的缩放才有效
标签:ram frame number stage bsp tag 尺寸 trace meld
原文地址:http://www.cnblogs.com/dt1991/p/7608153.html