A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] simple question, movieclip -> adress timeline

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    26

    resolved [RESOLVED] simple question, movieclip -> adress timeline

    i have a rather simple question, it is most likely everywhere all over the internet but i cant seem to find my answer

    lets say i have 2 frames on the timeline
    frame 1 = labelled main page = main page with a button to go to frame 2
    frame 2 = labelled animation = inside there is a movieclip called mc_1
    as soon the mc_1 clip ends, i want to return to frame 1

    and thats my simple question, how?
    if possible without any function() or other "advanced" codes

    i have been trying to put a code on the last frame of the mc_1 saying gotoAndStop("mainpage")
    but within a movieclip this does not work

    i need something like Parent.timeline.gotoAndStop("mainpage")?

    thx in advance
    Last edited by Kascas; 01-03-2013 at 10:25 AM.

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,
    PHP Code:
    _root.gotoAndStop("mainpage"); 
    make sure the frame label has no spaces, as your first mention did!

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    26
    i actualy tryed _root. before, but most likely with a differend code
    aaah i was so close XD

    works now thx

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