Ah right, so I need to change my code to...

import away3dlite.lights.DirectionalLight3D;
...
sun = new DirectionalLight3D();
...
scene.addLight(sun);

I'll give it a whirl tomorrow.

Cheers
Mark

On Apr 19, 8:44 pm, Fabrice3D <[email protected]> wrote:
> thats because since last update lights are no longer Object3d
>
> its just a light.
>
> fabrice
>
> On Apr 19, 2010, at 6:29 PM, M Crossley wrote:
>
>
>
> > Since build 2379 I have not been able to add a directionalLight3D to
> > the scene (the tutorials with 3D lights fail too)...
>
> > sun = new DirectionalLight3D();
> > scene.addChild(sun);
>
> > gives error...
>
> > 1067: Implicit coercion of a value of type
> > away3d.lights:DirectionalLight3D to an unrelated type
> > away3d.core.base:Object3D.
>
> > Many thanks
> > Mark
>
> > --
> > Subscription 
> > settings:http://groups.google.com/group/away3d-dev/subscribe?hl=en

Reply via email to