dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Navigation trouble

  1. #1
    Fk's Spam Bot cocojumbo1's Avatar
    Join Date
    Feb 2002
    Location
    New Zealand
    Posts
    79

    Navigation trouble

    I'm trying to make a navigation system for a site. But what i have tried won't work. This is what its like:

    [BUTTON 1] [BUTTON 2] [BUTTON 3]

    :::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::
    :::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::content:::::::::::::::::::
    :::::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::::
    :::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::
    :::::::::::::::::::::::::::::::::::::::

    What happens is when it is loaded the content moves from offscreen form the right into the center but when you click on another button it moves off to the right and the new content comes in from off screen form the right.

    One content on the timeline looks like this

    [.]----->[.][.][.]----->[.]
    The first tween is it going on the keyframe in the middle has stop() in it and the other tween is it going off.
    the script in the buttons is
    like
    on.mouserealase
    i=0; '0 is in button 1, 1 is in button etc
    play()

    in the end frame of the content moving out is like this

    If {
    i=0;
    gotoANDplay(40) 'this is the first frame of content 1
    }
    else
    i=1;
    GotoANDplay(80) 'the first frame of content 2
    else
    i=2;
    GotoAndPlay(100)
    Else
    STOP

    [I know the code is setout proberly with the right symbols { but it is just for a general gist.

    But what happens is it will just go right back to the start of the movie

    any help appreciated.

    THANKS

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    184
    Because the problem is almost certainly within your code, you need to post the actual code you are using (rather than the approximation you've used above).

    Then we can help...

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