Hi Alex
I had the same problem as you and solved it thanks to people on this list. I use the following function that gives me the size of the view that is occopied on the stage:

(Away 3d v2.4.0 flash 9)

public function getScreenSize():Object {
var sessionContainer:DisplayObjectContainer = _view.session.getContainer(_view) as DisplayObjectContainer;
           var drawnObject = sessionContainer.getChildAt(0);
           return (drawnObject.getRect(this))
}

Use:
var viewBounds:Object = getScreenSize()
var w:Number  = viewBounds.width
var h:Number  = viewBounds.height

jens

Alex Rico a écrit :
Hi.

I need to obtain the width and height of the screen area of a 3d
element.

I tried to use view.widht and view.height but the sprite has the same
size of the stage and i need only the size of the area occupied by the
3d object.

This pic illustrates what i need.

http://i402.photobucket.com/albums/pp104/missantropee/12-2-20091-43-39PM.jpg

is that possible?

Thanks for your help.


Alexander


Reply via email to