Advanced Search

Results 1 to 2 of 2

Thread: MovieClip gotoAndStop

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question MovieClip gotoAndStop

    Hi All,
    I am looking for a way that I can change the current frame of the Main Timeline from inside a Movieclip. I have tried various methods such as
    Code:
    parent.gotoAndStop(2, "Menus");
    stage.gotoAndStop(2, "Menus");
    this.parent.gotoAndStop(2, "Menus");
    but with no success. Is there a way for me to do this?

    Note: The purpose of the buttons is to exit the current game (go to the menu).

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Labels are your friend. Which version of Flash and which AS version are you using? It will make a difference.

    You must ensure you give all your MCs an instance name, this is usually the first issue. When controlling parent details you need to use the full paths the little target icon on the actions pane will help with this.

    For example:

    HTML Code:
    this._parent.GotoAndStop("frameLabel");
    this._root.... etc
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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