Announcement

Collapse
No announcement yet.

[SOLVED] Getting the current frame of a movieclip...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Getting the current frame of a movieclip...

    In my current situation I need to be able to tell which frame a movieclip is currently on.

    If the frame is currently 3 or higher I want to gotoAndPlayI(2); (From unreal script). Also, I don't want to just say gotoAndPlay(2) on the third frame in flash, it only should happen when I need.

    Any ideas?




    EDIT:
    Lol, after looking for a few hours I find the solution 2 minutes after I post this...fail.

    Code:
    local int currentFrame;
    
    currentFrame = ActorIcons[i].GetFloat("_currentFrame");
    if(currentFrame >= 3)
         ActorIcons[i].gotoAndStopI(2);
Working...
X