1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Easy ActionScript question - going to a new scene

Discussion in 'Software Development' started by Tech for Glory, Apr 10, 2004.

Thread Status:
Not open for further replies.
  1. Tech for Glory

    Tech for Glory Thread Starter

    Joined:
    Sep 14, 2000
    Messages:
    150
    I am trying to make this button point to a new scene.

    Here is how the button is put together:
    NavGigs (button) inside links (graphic) --> navLinks (movie clip) --> News (scene)

    So down in the library, I opened up links, clicked on NavGigs, and assigned an action to it.

    Here is the action:
    on (release) {
    gotoAndPlay("Gigs", 1);
    }
    on (rollOver) {
    tellTarget ("movingTicket") {
    play();
    }
    }
    on (press, rollOut) {
    tellTarget ("movingTicket") {
    gotoAndPlay(14);
    }
    }

    Now, the thing is, everything works except that first on (release). I'm trying to get it to go to scene "Gigs" and play frame 1, but it doesn't move at all.

    To double check things, I dragged a new instance of the button onto the stage (not inside navLinks --> links) and assigned the appropriate action, and it worked perfect. So I'm guessing this has to do with the fact that this button has been nested far into the movie. How can I ActionScript my way out of this?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/219120

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice