PDA

View Full Version : [FMX] AS to test for frame pos of MC



jahndi
October 2nd, 2003, 05:42 PM
Hey all:

How do you find the frame position of an MC with AS? I have several MCs that are supposed to play one after the other, however there's got to be a way to keep my AS organized and not have nextMC.gotoAndPlay()s at the end of each one, ya know. I try to keep my AS all on a few essential well marked frames.

thx

John

kode
October 2nd, 2003, 06:26 PM
Use the _currentframe and _totalframes properties...

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary514.html
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary576.html

jahndi
October 2nd, 2003, 11:37 PM
Groovy. Thannks a bunch, Kode

kode
October 2nd, 2003, 11:41 PM
No problem. :beam:

jahndi
October 3rd, 2003, 01:01 PM
Hey Kode, is there any way to test position with frame labels or is it just numeric?

kode
October 3rd, 2003, 09:30 PM
Frame number only. :-\