Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-12-2007, 02:39 AM   #1
MMX
Registered User
 
Join Date: Oct 2007
Posts: 12
Talking How to stop getting opperand error?

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
MMX is offline   Reply With Quote
Old 11-12-2007, 11:47 AM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy and Welcome...

Try this...
ActionScript Code:
gotoAndStop(2 + 4 * Number(_root.status));
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make an animation stop from a RoLL OveR paleo ActionScript 2.0 4 05-10-2007 02:46 PM
Help: Using stop() does not stop movie fjd8 ActionScript 2.0 5 11-14-2006 04:27 PM
stop a flash movie on a certain frame guyatwork37 ActionScript 2.0 7 11-13-2006 09:03 PM
stop(); and gotoAndPlay(); - should be easy, what am i missing??? ladyofbenjamin ActionScript 2.0 1 03-20-2005 04:45 AM
stop() not working BuffySummers ActionScript 2.0 1 10-30-2003 09:57 AM


All times are GMT. The time now is 06:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.