Hello, i'm very surprised this is so complicated... are the width and height setters already taken for something else ? Anyway, good tips to know :)
Thanks Fabrice & Ghislain On 14 déc, 11:11, Fabrice3D <[email protected]> wrote: > here a little example of a viewport set from Rectangle. > > private var view3Drect:Rectangle = new Rectangle(30, 30, 800, 600 ); > private var viewp:RectangleClipping; > > [...] > > viewp = new > RectangleClipping({minX:-(view3Drect.width*.5) ,minY:- > (view3Drect.height*.5), maxX:(view3Drect.width*.5), maxY: > (view3Drect.height * .5)}); > _view.clipping = viewp; > _view.x = view3Drect.x+(view3Drect.width * .5); > _view.y = view3Drect.y+(view3Drect.height * .5); > > Fabrice > > On Dec 14, 2009, at 10:52 AM, Ghislain Flandin wrote: > > > Hello !!! > > > Coming from pv3D, i'd like to find in away3D engine a way to resize > > the viewport (like viewport.viewportWidth in pv3d) ... > > > I've tried to find out this method but without success, is there > > someone who can help me ? > > > Thanks a lot !!! > > > Ghislain
