The weirdest thing happens when trying to set up a iPad project.
Result in Flash Builder: http://imgur.com/8m5KI
If you look at the screenshot, you can see a weirdly shaped viewport, way out of proportion.
Any thoughts?
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundAlpha="0"
actionBarVisible="false">
<fx:Script>
<![CDATA[
import away3d.containers.View3D;
import com.eclecticdesignstudio.motion.Actuate;
public var view3d:View3D;
public function ASTest():void
{
Actuate.timer(1).onComplete(initDebugView);
}
public function initDebugView():void{
view3d = new View3D();
view3d.backgroundColor = 0;
view3d.width = 768
view3d.height =1024
view3d.x = -200;
view3d.y = -200;
comp.addChild(view3d);
}
protected function comp_enterFrameHandler(event:Event):void
{
if(!view3d) return;
view3d.render();
}
]]>
</fx:Script>
<mx:UIComponent id="comp" width="1024" height="768" addedToStage="ASTest()" enterFrame="comp_enterFrameHandler(event)"/>
</s:View>