hiez

Why donĀ“t use a radio button?

----- Original Message ----- From: "Laurent CUCHET" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Friday, September 29, 2006 9:10 AM
Subject: [Flashcoders] >> RadioButton and CheckBox


I need a way to uncheck checkbox in this case :

3 choice : appartements , house or garage
1. appartements > 1 and or 2 and or 3 and or 4 and or 5 : CheckButton and
uncheck radio button
2. house > yes or no : radioButton and uncheck checkbox
3. garage > yes or no : radioButton and uncheck checkbox

How must I do to uncheck checkbox by  clicking garage or house ?

Thank you very much.


//as2 checkbox case
function checkbox1(evt1:Object) {
   if (evt1.target.selected) {
       piec = this.label;
       typ_txt.text = "appartment with "+piec+" room(s).";
       trace(piec);
       con_btn._visible=1;
   }
}
cb1.addEventListener("click", checkbox1);
cb2.addEventListener("click", checkbox1);
cb3.addEventListener("click", checkbox1);
cb4.addEventListener("click", checkbox1);
cb5.addEventListener("click", checkbox1);
cb6.addEventListener("click", checkbox1);

//as2 radiobutton case
flashistListener = new Object();
flashistListener.click = function (evt){
       typ_txt.text = evt.target.selection.data
}
radioGroup.addEventListener("click", flashistListener);
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to