A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: No idea if this can be done...

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    1

    Post

    Im wondering if there is anyway to detect what frame a MC is on.

    i have a movie that dupes an MC 25 times and then goes to frame 15 on frame 15 i want ti to play another MC, but i dont want it to play the 2nd MC till the last of the first MC's is done... i know there is a current fram action, could that be used in conjunction with the movie clips name?
    i had thought:
    "
    If ("/ani"&i_currentframe < 10)
    Go to and Play (14)
    Else
    Begin Tell Target ("/wide")
    Go to and Play (2)
    End Tell Target
    End If
    "
    would work.. but it didnt.. i have no idea what to try.. maybe a loop? who knows, if you have any suggestions they would be highly appreciated

  2. #2
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    to find out what frame an mc is on use:

    Begin tell target("/mcname")
    Set variable: "/:currentframe" = _currentframe
    end tell target


    note the /: before the variable "currentframe" this is setting the variable on the main timeline so you knwo where it is

    Hope that helps!!
    Regards FlashGuru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center