PDA

View Full Version : [FMX] what does /: do?



MZA
January 6th, 2003, 06:03 PM
simple question i belive, but im a noob at AC..
i cant find this on the reference or anywhere...still its needed in a code i found.

on (press) {
/:klick = 1;
}

what does the /: do?? why is it necessary? couldnt u u use a _global.klick instead? (when i tried to change to global i used trace to see if it worked and the global doesnt get any character set when i press mouse..why is that? )

appreciate any help!

-MZA

alethos
January 6th, 2003, 07:29 PM
Looks like path referencing stuff to me. But it's old, from Flash 4 or earlier. This form of referencing is deprecated in Flash MX so I don't think it will work. IIRC, /:klick is the same as saying _root.klick. Try it out. Just keep in mind, however, that you will probably have to rewrite a lot of the code you got because some functions (and of course this referencing system) may not work with Flash MX.

-Al

MZA
January 6th, 2003, 07:34 PM
yes indeed! That was it! Thanks! I still dont get why it didnt work with global var tho..but oh well...
Thanks again! :beam:

-MZA