3 Replies Latest reply: Mar 5, 2012 2:25 AM by mimicobanana1 RSS

    error on android 4.0.3,stage.stage3Ds.length=0,

    mimicobanana1 Community Member

      I wantto make a demo on xoom pad by android 4.0.3,

      the apk work well on the desktop emulator ,but it can not get the stage3ds in device;

       

      in the mobile app ,the ADDED_TO_STAGE event dose not work;

       

      public function android_air()
        {
         //super();
         // 支持 autoOrient
         stage.align = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
         //stage.addEventListener(Event.ADDED_TO_STAGE,addstage);
        
      stage3d=stage.stage3Ds[0];

         stage3d.addEventListener(Event.CONTEXT3D_CREATE,oncreate3D);
         stage3d.requestContext3D();
        }

      悲剧了  stage.stage3Ds.lenght=0;

      <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->

              <renderMode>direct</renderMode>

      I have try cpu,gpu and direct;

      I use air 3.1.0.488;builder4.6;