I made a simple test movie, with one MC called “Test2”.
This MC is put in the scen with the instance name “inst1”
In the first frame I define the class:
function Effe() {
}
Effe.prototype = new MovieClip();
Effe.prototype.move = function()
{
this._x += 2;
};
Object.registerClass(“Test2”, Effe);
on the second frame I call the “move” method:
inst1.move();
on the third frame I do:
gotoAndPlay(2);
It should move my clip, but I have the feeling that the class is not registerd properly.
Can somebody give me some help please? I attached the FLA…