Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 08:12
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  Radio Button label help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Radio Button label help  (Read 4826 times)
jake192khz
Server what's that
*
Posts: 5


View Profile
« on: 12/13/07, 01:54 »

All I want is to do is correlate the radio button label to a text box. In this case the data variable is thing and the label var is jerk. I need the label in one box and the data in another label.  I know it's sitting right in front of me but I just cant get it.
The data portion works fine, but the label is the hard part (for Me).
Thanks in advance for any help.

cb1.label = "One Color"
cb2.label = "Two Color"
cb3.label = "Full Color"
cb4.label = "Default"
cb1.data = 0
cb2.data = .10
cb3.data = .25
cb4.data = 0
cb4.selected = true
listener = {};
listener.ref = this
listener.click = function(cvt){
   if(cvt.target._name!="colors"){
      var t = this.ref
      t.colorss.text = cvt.target.selectedData
      t.colname.text = radioGroup.getSelectedItem().label;
         thing = Number(colorss.text)
         jerk = colname.text
         
   } else this.ref._parent.selectedChild = this.ref;
}


listener.change
colors.addEventListener("click", listener)
radioGroup.addEventListener("click", listener)
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 12/13/07, 13:22 »

Use cvt.target.label

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!