# Random animations : question about labels (currentLabel,currentLabels, ...)

**URL:** <https://forum.kirupa.com/t/random-animations-question-about-labels-currentlabel-currentlabels/322649>\
**Category:** Uncategorized\
**Created:** [May 28, 2011, 3:37pm UTC](https://forum.kirupa.com/t/random-animations-question-about-labels-currentlabel-currentlabels/322649 "2011-05-28T15:37:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grosbouff](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@grosbouff](https://forum.kirupa.com/u/grosbouff)\
**Post date:** [May 28, 2011, 3:37pm UTC](https://forum.kirupa.com/t/random-animations-question-about-labels-currentlabel-currentlabels/322649/1 "2011-05-28T15:37:38Z")

</div>

Hi !  
I’ve got a script that launches a random animation for my characters every x seconds.

There are two sorts of those animations :  
-“simple” animations; like “random3” on this timeline.  
-“splitted” animations (works in two times); like “random2” on this timeline.

When we play a “splitted” animation (random2); we STOP the reading at the middle.

When the script plays a new animation, I have to check if the previously played animation was a splitted one.  
My idea was to use “IN” & “OUT” labels for splitted animations.

I would need to retrieve the current labelS and check if “IN” is contained in them.  
If I find a IN label; then we would just use play() to finish reading this animation rather than playing a new one.

The problem is that I cannot find a way to retrieve all the frame labels.  
mc.currentLabels returns all the labels of the timeline, when mc.currentLabel returns just one single label, not the labels from every layer.

Is there a way to retrieve them ?

Any idea ?

Thanks !
