|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
::| How to Make Pull-Down Menus in Flash | ::
I need to build a very simple pull down menu in flash, much like a html pull down menu. I thought this was a very common task, but I cannot find a tutorial or a way to do it. I need it to be just like the "Forum Jump" "Please Select One" pull down menu at the bottom of the forum index here at Devshed. Or just like the "[Font]" "[Size]" and "[Color]" pull down menus above this message if you are writing a reply. I need it to look and function like that, but be done in Flash.
I need the menu to have a few items, for example, Item 1, Item 2, Item 3, Item 4, and then once a user selects an item from the pull down menu and releases the mouse button, they are taken to a specified url which is unique for each item in the pull down menu list. Is this really all that hard? Why can't I find a simple tutorial for this? I am using Flash MX 2004, but it has been about 2 years since I have been involved in Flash development...I am a good bit rusty. Can someone please help out, or point me to a tutorial. |
|
#2
|
||||
|
||||
|
There is a component called ComboBox that comes with both Flash MX and MX2004, that would do the job... Just drag it onto the stage and change the properties...
In the Labels properties enter.. 00 Please select An Item 01 --------------------- 02 Item 1 03 Item 2 04 Item 3 05 Item 4 06 ...etc 07 ...etc In the data properties enter... 00 defaultvalue 01 defaultvalue 02 item1 03 item2 04 item3 05 item4 06 ...etc 07 ...etc change the ChangeHandler to item_Select and give the combobox an instance name (E.G... ChooseItems) then add this (or similar) Actionscript to the first frame of your movie... PHP Code:
Hope this helps... Last edited by Kryo : February 26th, 2004 at 05:06 AM. |
|
#3
|
|||
|
|||
|
Hi all,
I built this attached menu, and it works fine, but the problem with it is that once the user clicks on the link of the page they wish to view,that page opens in a seperate frame, but there is no indication on the menu as to where they are in the site. I.e. something like an underline under the word to show that they are viewing that page... Any suggestions? Wish I had thought of it before buliding it... |
|
#4
|
||||
|
||||
|
add a dynamic textfield with a variable name, then just add the variable to the on release function...
|
|
#5
|
|||
|
|||
|
I'm still new to action scrip, could you be more specific?
|
|
#6
|
||||
|
||||
|
Create a new layer on the main timeline called PageStatus (or something), then created a Dynamic Textbox... In the Variable namebox in text properties input a name (PageStatus will do for example)...
Next on each item in the menu, after the getURL function type in... PageStatus = "Overview"; Change "Overview" to whatever link is pressed, you will have to do this for every link in the menu... |
|
#7
|
|||
|
|||
|
ok, I'll try that, thanks very much
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > ::| How to Make Pull-Down Menus in Flash | :: |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|