School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,313 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,061 people online right now. Registration is fast and FREE... Join Now!




flash mx2004 checkbox and radio button

 

flash mx2004 checkbox and radio button, how to pass value from flash component checkbox to php file

suthat22

6 Jun, 2009 - 07:55 AM
Post #1

New D.I.C Head
*

Joined: 6 Jun, 2009
Posts: 1

I want to creat form by flash .consist of
field name
2 radio button (instant name travelPrefs0_rb,travelPrefs1_rb)
1 check box (instant name chbox)
On my first frame
CODE

travelPrefs0_rb.setGroupName("travelPrefs");
travelPrefs1_rb.setGroupName("travelPrefs");
travelPrefs.setLabelPlacement("left");
travelPrefs0_rb.setLabel("Male");
travelPrefs0_rb.setData ("M");
travelPrefs1_rb.setLabel("Female");
travelPrefs1_rb.setData ("F");
travelPrefs0_rb._x = 50;
travelPrefs1_rb._x = 120;
travelPrefs0_rb._y = 100;
travelPrefs1_rb._y = 100;
selectedVal = travelPrefs.getValue(  );
//checkbox
chbox.setGroupName("member");
chbox.setLabel("Accept");
chbox.setData ("Y");
travelPrefs1_rb._x = 1;
travelPrefs0_rb._y = 100;
chVal=member.getValue();


and submit button code
CODE

on(press) {
  var selectedVal = travelPrefs.getValue(  );
  var chVal = member.getValue();
trace(selectedVal);
trace(chVal);

}


my problem are :
1. I can't get value from my checkbox like radio buttons
2. How can I past these radio ,check value to php file

Need your help
Suthat


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 02:19PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month