checkbox inside listbox
- Started
- Last post
- 8 Responses
- kinetic
anyone know how (or know of a tutorial) for placing a checkbox inside a listbox in flash?
basically what i want is an email address and a checkbox beside it.
any help is much appreciated because i really dontk know where to start with this
cheers
- mitsu0
a simple way to approach this would be using a multi-select listbox, that when a user selected an option, an asterick or some other character would show right justified in the caption of the box to show that it has been selected/deselected.
just a thought.
- kinetic0
not a bad idea at all.
do you have any multi-listbox tutorials for me to look at?
- mitsu0
not off hand, and short of time to write an example, unfortunatley.
just use javascript to change the caption of the selected listbox and php/asp/etc to do the same when the page loads.
something like this for the js:
for(x=0;x<form1.listbox.options...
{
if(form1.listbox.options.selecte...
{
//update caption of this option
}
}
- mitsu0
hmmm, i wrote that code too fast. try this again:
for(x=0;x<form1.listbox.options...
{
if(form1.listbox.options[x].sele...
{
//update caption of this option
}
}
- kinetic0
needs to be in flash actually.
ill search macromedia for some examples
thanks :)
- supa0
you;ll have to use a scrollpane, then use an mc with your list of checkboxes and emails inside it as the scrollcontent. (listboxes can only do text.)
could only find this.. not much help: http://www.macromedia.com/suppor…
but they're pretty easy to use.
- supa0
this thread may be helpful too:
http://www.actionscript.org/foru…
- kinetic0
cool! thanks!