add item to combobox
Garethfc 16 Sep 2005
mi english really sucks sorry
I use a combobox in mi rpg to recolect items
i am using the macromedia combobox who comes with flash mx and i need a code for this:
when character histtest "diamond" (for example) add an item "diamonds" in combobox
the part of hittest and movement is ok, but i cant obtain a new item in mi combobox =(
if you have and idea, please help me
bye and sorry for mi english again
I use a combobox in mi rpg to recolect items
i am using the macromedia combobox who comes with flash mx and i need a code for this:
when character histtest "diamond" (for example) add an item "diamonds" in combobox
the part of hittest and movement is ok, but i cant obtain a new item in mi combobox =(
if you have and idea, please help me
bye and sorry for mi english again
Garethfc 17 Sep 2005
its dosent works...
remember is flash mx
i put:
i have a character named "character"
i have a combobox named "my_comboboox"
and the hittest works perfect
so if someone knows an answers, please help me =)
remember is flash mx
i put:
onClipEvent (enterFrame) { if (_root.character.hitTest (this)) { my_combobox.addItem(diamond); } }
i have a character named "character"
i have a combobox named "my_comboboox"
and the hittest works perfect
so if someone knows an answers, please help me =)
funkysoul 18 Sep 2005
I'm pretty sure that this should also work for MX
combobox.addItem("label", data);
combobox.addItem("label", data);
Garethfc 18 Sep 2005
=/ i am doing something wrong,
incluse when i writ
"("label", data)"
but it dont works =(
incluse when i writ
combobox.addItem(near the code it appears a tex
"("label", data)"
but it dont works =(
funkysoul 18 Sep 2005
it should be
you can also send me the fla file for checking..
Edited by funkysoul, 18 September 2005 - 03:54 PM.
combobox.addItem("label",data);and not
combobox.addItem"("label",data)";
you can also send me the fla file for checking..
Edited by funkysoul, 18 September 2005 - 03:54 PM.