//code for the invisible button 01/15/13 //this first part causes the main character (striker) to strike on(keyPress""){ tellTarget("_root.striker"){ play(); } } //Here is the code for the other figure (guy) to strike. on(keyPress"9"){ tellTarget("_root.guy"){ play(); } } //the following code allows striker to be controlled by the directional arrows on(release,keyPress ""){ _root.striker._x = _root.striker._x - speed; } on(release,keyPress ""){ _root.striker._x =_root.striker._x + speed; } on(release,keyPress""){ _root.striker._y = _root.striker._y -speed; } on(release,keyPress""){ _root.striker._y = _root.striker._y +speed; } //code for the guy (opponent) to be controlled by other keyboard actions on(release,keyPress "1"){ _root.guy._x = _root.guy._x - speed; } on(release,keyPress "2"){ _root.guy._x =_root.guy._x + speed; } on(release,keyPress"3"){ _root.guy._y = _root.guy._y -speed; } on(release,keyPress"4"){ _root.guy._y = _root.guy._y +speed; }