PDA

View Full Version : How to stop getting opperand error?


MMX
11-12-2007, 03:39 AM
I am running my game in flash 8 & I want to change it to action script 2!
Here's the problem that I get in my 14th frame & I can change the code to work properly.
I tried replacing:
4*/:status
with:
_root.status
but its not working...
Someone please help!
Thanks...

Here's the error!

**Error** Scene=game, layer=actions, frame=14:Line 13: Operator '*' must be followed by an operand
gotoAndStop (2+Number(4*/:status));

**Error** Scene=game, layer=actions, frame=14:Line 18: Operator '*' must be followed by an operand
gotoAndStop (1+Number(4*/:status));

**Error** Scene=game, layer=actions, frame=14:Line 23: Operator '*' must be followed by an operand
gotoAndStop (3+Number(4*/:status));

**Error** Scene=game, layer=actions, frame=14:Line 28: Operator '*' must be followed by an operand
gotoAndStop (4+Number(4*/:status));

Total ActionScript Errors: 4 Reported Errors: 4

CyanBlue
11-12-2007, 12:47 PM
Howdy and Welcome... :)

Try this...
gotoAndStop(2 + 4 * Number(_root.status));