all groups > flash data integration > november 2005 >
You're in the

flash data integration

group:

Raio Buttons in Flash 8


Raio Buttons in Flash 8 Tuleby
11/23/2005 12:00:00 AM
flash data integration:
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;
Re: Raio Buttons in Flash 8 Motion Maker
11/23/2005 7:57:55 PM
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]
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;

AddThis Social Bookmark Button