i need to have one menu scroll out while the other scrolls in

Posted on 2006-04-27
Last Modified: 2010-04-03
now heres the problem!

i have a movie with 5 menus. what i want is when i press the button for example products the home  page/area tweeds out while the products page tweeds in.

i know this has to do with if statements and so on but i keep screwing it up. can somone please give me a play by play as to how this works.
thx alot!
Question by:Eaddy
    LVL 19

    Expert Comment

    it would be very helpful to view your fla for this..

    are you tweening up? down? sideways? It may not require IF statements, it all depends on how you want it to run.
    LVL 19

    Accepted Solution

    Let me give you a verbal setup...

    I'll be general so as to display the basic story:

    Create a movie clip and put a rectangle in it. This will be your "frame" (we'll use a frame as a point of reference).

    Create another movie clp. Put the "frame" movie clip you just created inside.

    Create a tween of the "frame" movieclip sliding all the way to the left (from the center point). Put a stop(); at frame 1 of that tween. Go to frame2 and give it a frame label of "out".

    Copy all of the frames from your animation.

    Paste all the frames you just copied to the right of the frames you already have there.

    Select the frames you just pasted. Right click and select Reverse frames. Put a      stop();    on the last frame of the reversed frames.

    Now you have a slide out and slide in animation.

    Go back to the main stage.

    Put the movie clip on the stage so that when we invoke the proper code the "frame movie clip" will slide out of view. name the instance "menu_mc".

    Put a button on the stage

    name the instance "b1"

    Use code like this on the main stage (not on the movie or the button):


    That should give you a slide out and back in animation.

    Now, use any load method (loadMovie, attachMovie, etc.. ) to load one of your movies inside the menu you just created. You can start that process by creating a new mc for each of your screens. Give the mc a linkage name (right click in the library and export for AS). One called "home", "portfolio" etc...

    That way, on each button all you have to change is which mc you will load into the menu_mc that is already there.

    Now, I typed all this from my head, so we may have to go back here and there, but it sounds like you have enough experience to figure this out. :)



    LVL 1

    Author Comment

    Hi Montoya
    thats a really good idea but you see the thing is each menu/section has its own look.
    LVL 19

    Expert Comment

    well, that's fine, but to answer at this point, it would help me to see what we're talking about :-)

    LVL 1

    Author Comment

    ok i got throw with the problem but can speak you again about some flash stuff?
    LVL 19

    Expert Comment

    Any time. :)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user how to how to record live broadcast.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now