Great. That worked perfect. Thanks a lot for your help. =D Alex
On 3 dic, 03:55, jens lofberg <[email protected]> wrote: > 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-3... > > > is that possible? > > > Thanks for your help. > > > Alexander
