PDA

View Full Version : Using frame labels to trigger other events


andalusite
02-22-2009, 03:09 PM
I am more towards the art end of the art - developer spectrum, but have some experience with Flash MX and I am making the somewhat painful transition to AS3

I have some longish mcs with animation using guides.
I am using frame labels in those mcs to trigger other animations with syntax like:

if (mc.currentLabel == "label"){
//do something
}

In some of the mcs I have multiple labels with the same name e.g
"on" and "off".
Of course this throws Warnings of "Duplicate Label".
Whilst these warnings do not affect the functioning of the .fla......Is there a smarter way to get the same effect? I have had a look at the Event list and found MotionEvent, but I don't think that is applicable.