Give each radio button data value in properties or in code
first_rb.data = 1
second_rb.data = 2
Use the RadioButtonGroup instance name (default radioButton) to pull out the
value
trace(radioGroup.selection.data)
A general example adapted from Flash help. Place two radio buttons on stage
and name them first_rb and second_rb
first_rb.data = 1
second_rb.data = 2
var rbListener:Object = new Object();
rbListener.click = function(evt_obj:Object){
trace("The selected radio instance is " + evt_obj.target.selection);
trace(evt_obj.target.selection.label)
trace(evt_obj.target.selection.data)
trace(radioGroup.selection.data)
}
// Add listener.
radioGroup.addEventListener("click", rbListener);
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "Tuleby" <webforumsuser@macromedia.com> wrote in message
news:dm1v4a$45d$1@forums.macromedia.com...
Hi!
I have a Flash 8 Movie which sends data to a PHP-file which generates an
email. I manage to get it working with plain textfileds, but not with
radiobuttons. The only result I get back is something like [object] [object]
instead pof the actual data
I have searched all over for tutorials or tips, but not found anything. All
of
them are for older versions of Flash.
Maybe I have to do something more in the PHP-file?
The files (FLA+PHP)are available here (in swedish though)
http://www.cakeindustry.se/kontakt.zip Thanks:confused;