spaceboots06
03-04-2010, 07:44 PM
Hi everyone,
I'm trying to make a shooting game. Big surprise.
Anyway, I have a document class, and I have a few other class files. One is a weapons class file.
I have a weapons movie clip that has a bunch of other weapon movie clips in it. These have motion tweens in them.
The problem is that they do not play when I ask them to play.
I.e.
public function playAnimation(e:MouseEvent)
{
trace("we are in business");
if(this.currentLabel=="bat")
{
trace("in terms of a bat");
this.bat.gotoAndPlay(2);
}
else if(this.currentLabel=="magnum")
{
trace("in terms of a magnum");
this.magnum.play();
}
the trace statements come up fine, and there are no compile errors or output errors. my movie clips just won't play.
Any suggestions?
Also, another question. I have to click the stage with my mouse before I use my weapon select buttons, which are keyCode 49 50 51, etc (keyboard buttons 1, 2, 3). Why is this?
thank you for any help.
I can post more code if need be.
I'm trying to make a shooting game. Big surprise.
Anyway, I have a document class, and I have a few other class files. One is a weapons class file.
I have a weapons movie clip that has a bunch of other weapon movie clips in it. These have motion tweens in them.
The problem is that they do not play when I ask them to play.
I.e.
public function playAnimation(e:MouseEvent)
{
trace("we are in business");
if(this.currentLabel=="bat")
{
trace("in terms of a bat");
this.bat.gotoAndPlay(2);
}
else if(this.currentLabel=="magnum")
{
trace("in terms of a magnum");
this.magnum.play();
}
the trace statements come up fine, and there are no compile errors or output errors. my movie clips just won't play.
Any suggestions?
Also, another question. I have to click the stage with my mouse before I use my weapon select buttons, which are keyCode 49 50 51, etc (keyboard buttons 1, 2, 3). Why is this?
thank you for any help.
I can post more code if need be.