PDA

View Full Version : SYNTAX help What does this mean?


hipster
06-08-2001, 02:36 PM
High,
I'm trying to figure out this actionscripting business and was wondering if someone could help me with some basic syntax.

if (Number(/:_currentframe) == 15) {
stop ();
} else {
gotoAndPlay (2);
}

I understand the if else loop...what I don't get is the top line.
A) "Number" is in blue...why?
B) _currentframe is in green...why?
c) what does the / mean?
d) what does the : mean?

thanks much,
morgan

sky_doq
06-08-2001, 07:21 PM
The / and : must be taken together as /: with indicates the root of a movie, just as _root.

why some things are blue or green or purple or whatever for color, i don't know. It must be easier for people, because if the syntax gets a color, you know you have done it right, but the differences in the colors, i don't know

bye

JJ