Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does "/ :" syntax mean?

Status
Not open for further replies.

iostream71

Programmer
Mar 13, 2002
229
US
i saw this in front of variables in some examples
 
This means you're using "slash syntax" flash version 3 and 4

the / means you refer to the main timeline of the current level.

You really should use the "dot syntax" (if you're using flash5)

Hope it'll help ;-)
Have Fun...

Sharky99 >:):O>
 
hmm...i've seen the "/" refer to the path in older flash, but never in this manner. here's an example i saw:

/:time0 = getTimer ();

why put in front of a variable declaration if it refers to the timeline?
 
Ok, now i know more about your question.

It simply means that you're declaring a variable that will reside on the main timeline of curent level.

You have to do that sometimes to be sure you can always have access to it.

Hope it'll help more ;-) Have Fun...

Sharky99 >:):O>
 
Oups sorry i forgot to say it...

It sure is, but you should stay away from the slash syntax like i told you unless you plan to die with flash4??? LOL

Have Fun...

Sharky99 >:):O>
 
nope, never used flash 4; workin' with mx. i like the dot notation 'cause it's more like other object-oriented languages =)
 
So why are you askin about slash syntax????

Have Fun...

Sharky99 >:):O>
 
I was just teasing you LOL

But don't worry about it, if you open a flash4 movie your Mx should convert the script to dot syntax by itself.

Knowing what it means isn't bad, wanting to use it is...

Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top