Stage3DProxy position and size in flex !!!! :)  ( YES !!! )

Software: Away3D 4.x

Avatar
Luca, Sr. Member
Posted: 29 April 2013 08:57 AM   Total Posts: 230

This is the key: ( after hours and test… )

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf68641-7ff0.html

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7de0.html

so:

override protected function updateDisplayListunscaledWidth:NumberunscaledHeight:Number ):void
{
   
super
.updateDisplayListunscaledWidthunscaledHeight );

var 
ScreenPos:Point = new Pointthis.xthis.);
  
ScreenPos this.contentToGlobalScreenPos );

if( 
MainView MainView.setSizeScreenPos.xScreenPos.yunscaledWidth
unscaledHeight );

I think this is finally the right way ( or not, what about skins, eh ??? smile )
Flex is another world…

the result are:

 

 

   
   
‹‹ Some Away3D Example updated

X

Away3D Forum

Member Login

Username

Password

Remember_me



X