Navigation Action Script

Posted on 2006-06-01
Last Modified: 2011-09-20
I am trying to add navigation action scripting to my buttons which are imbedded in another movie. I seem to be doing something wrong because when I add the

on (release) {
      gotoAndPlay("Scene 1",25);

to the embedded button within the movie it goes to the frame within that movie instead of going to the main movie frame me please!

On a side note, what is the best way to create navigation script with in a web-site using action scripting.
Thank you!
Question by:gbrandallen
    LVL 4

    Expert Comment

    on (release) {
         _root.gotoAndPlay("Scene 1",25);
    LVL 4

    Expert Comment

    My suggestion of making the navigation via actionscript is keeping the root of the site with minimum frames - 1 frame for home 1 for about 1 for portfolio etc. inside them have the movieclips that can be with the actual movie-frames ,
    In general its recommended to use labels and not scenes
    LVL 34

    Accepted Solution


    best solution is use "label" and avoid targeting scene and frame number...

    select frame 25 on timeline, give it frame label "fLabel1"

    put the following code on you button:
    on (release) {


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to how to record live broadcast.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now