away3d slows down when resizing view

Software: Away3D 4.x

Cheesygecko, Newbie
Posted: 02 April 2012 07:22 AM   Total Posts: 2

Hi grin,

I want away3d to be in full browser screen mode.
When i do resizing, away3d gets very slow , even the cursor is jumping.
Is this a known problem?
Thank you for help grin

This is my code:

private function addedToStageHandler(e:Event):void
  {
  // We have been added to the stage and now need to clean up that event listener
  this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
 
  // Setup the stage
  stage.scaleMode = StageScaleMode.NO_SCALE;
  stage.align = StageAlign.TOP_LEFT;
 
  this.stage.addEventListener(Event.RESIZE, handleViewResize);
 
  // Init
  init();
  }
 
  //ensures that the 3D application fills the browser
  private function handleViewResize(event:Event):void
  {
  view.width = this.stage.stageWidth;
  view.height = this.stage.stageHeight;
 
  view.render();
  }

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X