View Full Version : ComboBox UI Component URL Promlem
karlfb
08-25-2005, 10:50 AM
I have this project tham I'm working on and i need to create a dop down menu, I can do this easily by creating and programming a movieclip myself.
But in the future it would be alot easier to use a UI Compenent, but the problem is I can set one up in a Flash page and it all works fine when I preview it, but the problem is that I do not know how to link one of the drop down options to lables, scenes and URL's.
If anyone can help I would much appreciate it.
Thanks
mstudio1
12-08-2005, 09:40 PM
I got the same problem!
I want a comboBox for navigating through my site.
When you select for instance "about me" the url "about.html" must be loaded!
i have my comboBox in my flash file, i added a code on the comboBox
on (change) {
getURL(comboBox.data, "_self");
}
this was probably too easy thought of, because it doesn't work!
it sais the url is undifined! how can i define the url (it has to be the url that is set in the data property of the comboBox.
Or is there a totaly different appraoch to this linking URLs ?
Let me know!
mstudio1
12-10-2005, 11:35 AM
Hey there,
thanx to others threads i managed to get my combobox to work just fine now!
NOTE!! that it only works when uploaded to the internet server on wich people are going to watch it! it didn't work on my computer so i was searching and searching for the awnser to solve my combobox problem!!!!
well here it is:
a.) Drag a comboBox in the layer you wish him to be.
b.) In the properties click Parameters and ad values by doubleclicking the field next to labels. (the + gives extra labels!)
for instance:
1. intro page
2. google me
3. about me
c.) Than ad values for DATA:
for instance:
1. index.html
2. http://www.google.nl
3. about.html
d.) than here is the simpelest coding i've been searching for such a long time!
click the comboBox once and go to actionstab.
ad the following code:
on (change) {
getURL(eventObj.target.value , "_self");
}
explaination:
when the comboBox is changed by selecting a label.
eventObj.target.value retrieves the data that's connected to the label selected. it than gets the URL that's in Data and loads it in the same Explorer window. to load it in a different window, use _blank instead of _self.
ow and it's not needed to change handler or to change the comboBox name or what so ever when you are using one comboBox. i don't know what happens when you use 2 combo's, might work also!?
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.