Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-17-2001, 05:30 PM   #1
knop3se
Registered User
 
Join Date: Jun 2001
Posts: 4
Default

Hi!

Im trying to make a simple navigation bar, just a few buttons (Home, products etc...) the up state of all the buttons should have white text, but i want it so that when you press a button like "home" it should stay in the "down state" (black color text) until another button (like products) is pressed. What is the simplest way of doing this? Im a newbie so please explain as detalied as you can...

I had an idea of making one scene for each "button set", like the home button set (scene 1) would have the home button black in its "up state" and the other buttons white. The products button set (scene 2) would have the products button with black text and so on... and so if you´re att scene 1 (home button set) and pressed the products button it would GET URL and goto scene 2, but im not sure this would work i havent tried yet, is there a better way?

Thanx!

/knop3se

knop3se is offline   Reply With Quote
Old 06-17-2001, 08:59 PM   #2
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 798
Send a message via ICQ to Strok
Default

I made an example for you

http://www.actionscripts.org/help/stuff/nav.fla
__________________
My photography: http://strok.photosight.com
Strok is offline   Reply With Quote
Old 06-17-2001, 09:21 PM   #3
knop3se
Registered User
 
Join Date: Jun 2001
Posts: 4
Default

Hey thanx ALOT man!

Im gonna study the .fla and try to figure out what you did. It looks like the buttons are movie clips and inside each movieclip is 2 frames of the up and down states of the buttons with stop actions on them?

I´d like to have rollovers on those buttons too and maybe the over state could be a animation? (movieclip).

Im gonna try to figure this out but im pretty sure i will fail :-(


thanx again much appreciated :-)

/knop3se


knop3se is offline   Reply With Quote
Old 06-17-2001, 09:49 PM   #4
knop3se
Registered User
 
Join Date: Jun 2001
Posts: 4
Default

Hey i think i understand now, the 3 buttons on the stage are movieclips with 2 frames in them where the first frame is a button ( with the rollover state and the 2nd frame is the down state of that button?

and then the action for the button is

on (release) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(1);
_root.b3.gotoAndStop(1);
}

which basicly means that when first button is pressed goto frame 2 of that movieclip and stop, and also show button 2 and 3 in their upstates (frame1) ?

if this is incorrect could you please explain it to me in plain english, im from sweden so my english skills are a bit poor...


/knop3se


knop3se is offline   Reply With Quote
Old 06-18-2001, 12:39 AM   #5
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 798
Send a message via ICQ to Strok
Default

yes
You got it right
b1, b2 and b3 are instance names for MCs (see a tutorial http://www.actionscripts.org/tutoria...hs/index.shtml )

and you can add any actions to the button:

on (release) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(1);
_root.b3.gotoAndStop(1);
tellTarget (_root) {
gotoAndStop ("Scene 2", 1);
}
}

[Edited by Strok on 06-17-2001 at 07:50 PM]
__________________
My photography: http://strok.photosight.com
Strok is offline   Reply With Quote
Old 06-18-2001, 12:47 AM   #6
knop3se
Registered User
 
Join Date: Jun 2001
Posts: 4
Default

cool!

thanx again man, i´ll try to make my own menu now :-)

/knop3se

knop3se is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Flash as menu navigation for HTML. JNB HTML and JavaScript 16 01-20-2005 02:44 PM
Appear/Hide Flash Navigation raza Other Flash General Questions 5 09-18-2004 10:39 AM
Navigation bar in xml hmdakr Other Flash General Questions 2 01-31-2004 07:07 AM
my navigation is getting over my head moethedog Simple Stuff (Newbies) 4 03-10-2003 08:29 PM
>>> Session Id And Dynamic Navigation In Flash << freevision Server-Side Scripting 1 03-06-2002 04:47 PM


All times are GMT. The time now is 05:33 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.