【发布时间】:2012-01-10 06:58:50
【问题描述】:
我使用 Unity3D 3.5 预览导出了一个 swf。
我在 as3 (Adobe Air 3) 中加载时无法更改尺寸。
swf加载时出现unity with loading的标志,调整为730x750!好极了!但是当统一的加载程序结束时,swf 会根据舞台大小(1920x1080)调整大小。 =/
我在 Unity3D 中将分辨率设置为 730x750。
有什么想法吗?谢了!
我在 as3 中的代码:
public function mc_produto_swf()
{
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
var url:URLRequest = new URLRequest("Sapato_01.swf");
loader.load(url);
}
public function loaderComplete(event:Event):void
{
var cont:MovieClip = MovieClip(event.currentTarget.content);
cont.width = 730;
cont.height = 750;
this.addChild( cont );
}
【问题讨论】:
标签: actionscript-3 air unity3d