Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 7 of 7

Thread: Navigation help

  1. #1

    Default Navigation help

    I am new in flash and I like to create navigation like this site http://www.northshoremag.ca/ . I can do roll over and roll out. But I can’t figure out how to make the color stay when you click on any button and also take you to that navigational information.

    Would you be kind enough to help me? Please

    Thanks a lot.

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    If statements and variables is one method....
    Code:
    myFocus = 0;
    myColor = function() {
    if(myFocus==1){
    myButton1ColorMC.gotoAndPlay('On");
    myButton2ColorMC.gotoAndPlay('Off');
    }else if (myFocus==2){
    myButton1ColorMC.gotoAndPlay('Off");
    myButton2ColorMC.gotoAndPlay('On');
    }
    }
    _root.myButton.onRelease = function() {
    myFocus = 1;
    myColor();
    }
    Hope it helps

  4. #3

    Default Thanks for quick replay

    Thanks dude for your quick replay. I am new in flash and still learning so I didn’t get the code. Is there any easy way out? I did roll over and roll out. You can see that here. If you have any easy way please let me know and thanks a lot again for quick replay.

    Peace.


    http://home.earthlink.net/~hishimoto/Menu.swf

    http://home.earthlink.net/~hishimoto/Menu.fla

  5. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    The problem you are having is because your rollOver code overrides your on (press) code, nullifying it. The way you have it organized, the easiest solution is to use another movieclip to act as a highlight and turn the visibility of that highlight clip on with your press action. Have a look at this demo. I adjusted the first two links...

    http://ntdesigns.net/demo/Menu(adjust).fla

    Regards
    NTD

  6. #5

    Default thanks for the easy solution

    Thanks a lot dude "NTD" for the easy Solution and quick replay. You are great. Thanks again.......

    another quick question.....I created frame label in the time line and now how can I make the button go to that label. I tired to on press goto frame label but it does not work......any suggestion?


    Peace.

  7. #6
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Use the movieclip method of gotoAndPlay. It differs from the global gotoAndPlay(gotoAndPlay("Scene2",1)), in that is only takes one arguement, frame number, or frame label. This will also solve the mystery of buttons not working in movieclips........

    This will send the main timeline to a frame label.....

    _root.gotoAndPlay('frameLabel');

    This will send the timeline of a movieclip to a frame label.....

    _root.mcName.gotoAndPlay('frameLabel');

    Hope it helps
    NTD

  8. #7

    Default Thanks

    Thanks a lot dude “NTD” for your kind help. Finally it worked. What a nice and easy solution?

    Thanks again for your help.

    Peace

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Navigation With _root
    By maziagha in forum General Flash
    Replies: 5
    Last Post: 11-28-2006, 12:17 PM
  2. Navigation Through Flash
    By ChrisBrown in forum Flash Scripting
    Replies: 13
    Last Post: 06-23-2006, 07:46 PM
  3. Navigation problems....
    By Nicky in forum Newbies
    Replies: 1
    Last Post: 05-08-2006, 04:01 AM
  4. Navigation start and stop with parameters
    By quig100 in forum Advanced Flash
    Replies: 6
    Last Post: 09-10-2005, 07:22 AM
  5. Flash Navigation Question
    By crm2k in forum General Flash
    Replies: 2
    Last Post: 08-21-2004, 02:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial