I exported a swf using Unity3D 3.5 preview.
I can not change the dimensions when I load in as3 (Adobe Air 3).
When the swf loads appears the logo of unity with loading, that resizes to 730×750! Great ok! But when the loader of unity ends the swf resize for the stage size (1920×1080). =/
I set the resolution to 730×750 in Unity3D.
Any ideas? Tks!
My code in 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 );
}
I post the same question in the Unity3d forums and the user “UnityRalph” help me:
Works for me, but i tried change the position x and not work.