When I using the handle I normally get the maxY, but the clone of the
Obj make work Z-order better (Renderer.BASIC)

On 26 Ago, 15:46, Fabrice <[EMAIL PROTECTED]> wrote:
> Do you get the maxY using the handle?
>
> like
> model = modelloader.handle;
> trace(model.maxY);
>
> btw why do you clone here?
>
> Fabrice
> On Aug 26, 2008, at 3:34 PM, Beka Master wrote:
>
>
>
>
>
> > hi guys,
>
> > I've some trouble with maxY property in a loaded .Obj, here is the
> > code:
>
> > ...
> > modelLoader = Obj.load(modelURL, { material:texture, scaling:0.233,
> > loadersize:300, rotationX: 90, ownCanvas:true, mouseEnabled:!isTemp,
> > useHandCursor:true } );
> > modelLoader.addOnSuccess(allLoaded);
> > ...
>
> > private function allLoaded(e:Event):void
> > {
> > var model:Object3D;
> > model = modelLoader.handle.clone();
> > this.addChild(model);
>
> > trace(model.maxY);
> > }
>
> > The trace will return always 0
>
> > please help.- Nascondi testo citato
>
> - Mostra testo citato -

Reply via email to