So I'm having some trouble making a call to my .as file.
I use the make particle an instance of "3dobject".
var particle:threeDObject = new threeDObject(ball, focal, CenterX, CenterY);
and then I use particle to call a function moveParticle
_root.particle.moveParticle();
moveParticle is a function that is supposed to trace some values, but it doesn't seem to be doing that
function moveParticle():Void{
angleY = (_root._xmouse - CenterX) * .001;
trace (angleY);
}
My problem is that the trace in the moveParticle function is not even registering. It doesn't return anything at all, not even an "undefined". So I'm assuming that means the function is not being called, which would be a bad thing.
Any help would be appreciated
Thanks
I use the make particle an instance of "3dobject".
var particle:threeDObject = new threeDObject(ball, focal, CenterX, CenterY);
and then I use particle to call a function moveParticle
_root.particle.moveParticle();
moveParticle is a function that is supposed to trace some values, but it doesn't seem to be doing that
function moveParticle():Void{
angleY = (_root._xmouse - CenterX) * .001;
trace (angleY);
}
My problem is that the trace in the moveParticle function is not even registering. It doesn't return anything at all, not even an "undefined". So I'm assuming that means the function is not being called, which would be a bad thing.
Any help would be appreciated
Thanks