flash mx2004 checkbox and radio button

how to pass value from flash component checkbox to php file

Page 1 of 1

0 Replies - 2987 Views - Last Post: 06 June 2009 - 08:55 AM

#1 suthat22  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-June 09

flash mx2004 checkbox and radio button

Posted 06 June 2009 - 08:55 AM

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
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
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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1