Getting the frame number from frame label in animate cc with HTML5
Hi!
Is there a way to obtain the frame number (say, 30) from a given frame label (say,"myFrame", which is actually the label of frame 30)?
To be more specific, I have the following scenario:
There is a button and an event listener attached to it, using which I want to "gotoAndPlay()" to a particular frame.
However I don't want to use the number of the frame. The frame has a label, say, "myframe".
One way that I have stumbled upon is to use a for loop to find which frame number corresponds to the label, "myframe".
But I would love an easier alternative.
