Hi, I need to access methods and properties of a movieclip material, I made some researches (http://blog.alladvanced.net/?p=156) but I still can’t solve the issue.
package planets.basePlanet
{
import away3d.containers.ObjectContainer3D;
import away3d.materials.MovieMaterial;
import away3d.primitives.Sphere;
import flash.display.MovieClip;
import away3d.materials.WireColorMaterial;
public class PlanetBase extends ObjectContainer3D
{
[Embed(source = "cubeTexture.swf")]
private var objectTexture:Class;
private var objectMesh:Cubec4d = new Cubec4d (); //as3 exported cube from cinema4d
private var movieMaterial:MovieMaterial; //swf movie material
private var textureMovieclip:MovieClip; //reference to the movie material
public function PlanetBase()
{
movieMaterial= new MovieMaterial(new objectTexture());;
movieMaterial.interactive = true;
movieMaterial.smooth = true;
objectMesh.material = movieMaterial;
addChild(objectMesh);
textureMovieclip = movieMaterial.movie as MovieClip;
off();
}
public function on ():void {
textureMovieclip.gotoAndStop(2);
}
public function off ():void {
textureMovieclip.gotoAndStop(1);
}
}
}
Do you have any hint on this subject?
Thanks in advance <3
kz