Hey Coloured funk

yes, this should work. Your code looks fine, although you shouldn't be
setting the materialType property manually, this is done for you.

if you can't get it working, please send over a sample of the code so that
we can debug.

cheers!

Rob!

On Thu, Jan 29, 2009 at 6:28 PM, colouredfunk
<[email protected]>wrote:

>
> please help!!!!!!
>
> On 28 Jan, 09:12, colouredfunk <[email protected]> wrote:
> > Hey Guys,
> >
> > Can this be done? I can't get the material to be interactive.... I've
> > tried with a collada as well but same problem...
> >
> > Anyone?
> >
> > On Jan 26, 11:04 pm, colouredfunk <[email protected]> wrote:
> >
> >
> >
> > > Hello, I have a 3Ds file that I'm importing into CS3. I want to change
> > > one of the objects in the 3DS and change the material to a
> > > MovieMaterial. I've sort of got it working but, I can't get the
> > > material to be interactive...
> >
> > > This is the code I have so far
> >
> > > material = new MovieMaterial(new InteractiveMap(), {interactive:true,
> > > smooth:true});
> > > max:Object3DLoader;
> > > max = Max3DS.load("globe.3DS");
> > > max.addOnSuccess(onLoaderSuccess);
> > > view.scene.addChild(max);
> >
> > > private function onLoaderSuccess(event:LoaderEvent):void {
> > > var globeMatData = max.handle.materialLibrary.getMaterial("mainSkin");
> > > globeMatData.material = material
> > > globeMatData.materialType = "MovieMaterial"
> > > max.handle.scale(2);
> >
> > > }
> >
> > > Can someone point me in the right direction?
> >
> > > Cheers- Hide quoted text -
> >
> > - Show quoted text -




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to