Prevent viewport from scaling

Software: Away3D 4.x

Tip, Newbie
Posted: 28 October 2012 04:20 AM   Total Posts: 1

Is there a way to keep the objects in a scene from scaling when view.height is changed?

I’ve posted a basic sample here: http://www.tippedover.net/away3d/

When you shrink the browsers width, the torus stays the same size and centred, but when you shrink the height of the browser, the torus ( and the scene) get smaller.

I’m performing the resizing like this:

protected function resize_listenerevent:Event ):void{
 view
.width stage.stageWidth;
 
view.height stage.stageHeight;

I don’t understand why it behaves differently vertically vs horizontally. Can anyone shed some light on this?

Thanks

 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X