PDA

View Full Version : Combo Box Won't Work!


neo1487
06-28-2002, 07:12 PM
i can't seem to get the freakn combo book to work. To make my life easier and all u guys who want to help, u can just download it here:

http://kotrclan.com/downloads/actionscript.org/combobox.rar

If you need WinRar to unzip this file you may download it from here:

http://kotrclan.com/downloads/program/WinRar.exe

If for some reason you feel unsafe downloading from my website you may download WinRar from the officail WinRar site at:

http://www.rarlab.com/rar/wrar300.exe

You can also visit the officail website at:

http://www.rarlab.com/

Filipinho
06-28-2002, 07:18 PM
canīt "unrar" the file.

neo1487
06-28-2002, 07:23 PM
what do u mean, i ask a handful of ppl to do it and it works for them.. :confused:

Filipinho
06-28-2002, 07:44 PM
When I open the file I can see the fla fil but i cant unrar it... Strange!

neo1487
06-28-2002, 08:13 PM
that is strange, lemme upload the fla instead :) here u go


http://kotrclan.com/downloads/actionscript.org/combobox.fla

Filipinho
06-28-2002, 08:55 PM
Now the file worked.

I have looked at your file and I got it to work.

First you need to namn the combobox instance to something (for now "combo")

Then you have to replace the onSelect1 in the if loop with combo.getSelectedItem().lable

if you want to have a diffirent value then the label you just ad it to the data option.
and then you use lista.getSelectedItem().data

Example:
the lable of option no. 3 can be Counter-Strike MOD 1.5 Upgrade
but the valu (data) can be sett to 3 or anything else.

There might be a way to use onSelect1 but I donīt know how.


I hope this have helped you!

CyanBlue
06-28-2002, 08:55 PM
Hi...

This isn't going to be the way you want to do...
I haven't used MX at all and I am just testing how MX acts with the components... Well... anyways... this is the simplified one you can take a look at... I don't know what is the right way to do the combobox in MX though...
http://mywebpages.comcast.net/Cyan-Blue/Examples/combobox.swf
http://mywebpages.comcast.net/Cyan-Blue/Examples/combobox.fla

Filipinho
06-28-2002, 08:57 PM
I thought about one thing more...

You donīt have to replace every onSelect1 with combo.getSelectedItem().label

Instead write onSelect1=combo.getSelectedItem().label before the if loop starts.


Good luck!

neo1487
06-28-2002, 09:07 PM
i really don't understand what u said can u plz edit that one so i can learn from it plz. And the one you posted on the web only downloads 1 things, doesn't work properly :( thanks in advance if u fix it :D

Filipinho
06-28-2002, 09:21 PM
I have mad 2 files. 1 with the label example and 1 wuth the data example.

I think I messed things upp when I tryed to explain it. Itīs not so much to add to the code...

Your wellcome! Iīm glad it worked! :D

Filipinho
06-28-2002, 09:23 PM
Grrrr.... Forgot the file... :o
Here comes the data example

Filipinho
06-28-2002, 09:24 PM
And here is the label one...

neo1487
06-28-2002, 09:26 PM
umm by any chance can u upload the fla so that i can see what u mean for me :) the easiest one would be best for me :) thx for all ur help

neo1487
06-28-2002, 09:26 PM
oh nvm lol

neo1487
06-28-2002, 09:27 PM
thx u so much, now lemme try and ill post back :p

neo1487
06-28-2002, 09:30 PM
THX U SO MUCH IT WORKS :D

Filipinho
06-28-2002, 09:38 PM
:D