A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: nav bar movie

  1. #1
    Member
    Join Date
    Jun 2004
    Location
    london, england
    Posts
    73

    nav bar movie

    Hi,

    I am creating a nav bar which is a movie symbol, the problem is when the buttons are outside of the movie symbol they work -

    on (press) {gotoAndPlay ("scene1", 1);
    }

    But when they are in the movie the actions don't seem to work,

    anyone know whats going on

    cheers Max

  2. #2
    Senior Member Cass101's Avatar
    Join Date
    Dec 2004
    Posts
    131
    Once the buttons are inserted into the movie clip symbol, the actions will no longer work for the main timeline. You need to add _root. to tell it to affect the root timeline of the movie
    Code:
    _root.gotoAndPlay(YOUR SCENE/FRAME HERE);
    If you still have trouble, post your .fla file up here.

    Hope this helps.

  3. #3
    Member
    Join Date
    Jun 2004
    Location
    london, england
    Posts
    73

    ive put this in, but....

    on (press) {
    _root.gotoAndPlay("bar", 1);
    }
    still not working, is the code right

  4. #4
    Senior Member Cass101's Avatar
    Join Date
    Dec 2004
    Posts
    131
    Sorry about that, it's a long time since I've used scenes....

    It doesn't like targeting a scene from within another movie clip, so what you need to do is put a frame label on the frame in the scene you are trying to get to, and then target that with your link.

    For example, if you want to get to the first frame of the second scene and you label that frame "scn2fr1", you would use the following code on your button within the movie clip:
    Code:
    on (press) {
    	_root.gotoAndPlay("scn2fr1");
    }
    Hope this is clear enough for you. I've attached a sample file just incase it helps.
    Attached Files Attached Files

  5. #5
    Member
    Join Date
    Jun 2004
    Location
    london, england
    Posts
    73
    thanks a lot

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