I am trying to call a public function inside my symbol that's used as
a material for my plane.

var finalMaterial:MovieMaterial;
var _myMaterial:MovieClip;

[Embed(source="../build/MyMovie.swf", symbol="MyClip")]
private var myClass:Class;

myHolder = new ObjectContainer3D();

_myMaterial = new myClass();
finalMaterial = new MovieMaterial( _myMaterial );

var myPlane:Plane = new Plane(finalMaterial, 100, 178, 1, 1);
myPlane:Plane.yUp = false;
myPlane:Plane.bothsides = true;
myHolder.addChild(myPlane:Plane);

// then later I try to call a function inside my MyClip class which
extends MovieClip
_myMaterial.traceThis("GR");

I've also tried this:
myPlane.material.movie.traceThis("gr");
myHolder.children[0].material.movie.traceThis("GR");

None of them work. How would I go about calling a function that is
inside my movieclip material?

Reply via email to