Message-ID: <[EMAIL PROTECTED]>
User-Agent: eGroups-EW/0.82
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Yahoo Groups Message Poster
X-Yahoo-Post-IP: 147.91.173.31
X-Yahoo-Newman-Property: groups-compose
Sender: notify@yahoogroups.com
X-Yahoo-GPoster: Di=zrAX9kPCKCLDF

var partJ_title:Array =3D new Array();
var partJ_cb:Array =3D new Array();
partJ_title.push("None");
partJ_cb.push("chb_none");
partJ_title.push("Isolated/scattered");
partJ_cb.push("chb_isolated");
partJ_title.push("Regularly spaced/single");
partJ_cb.push("chb_single");
partJ_title.push("Occasional dumps");
partJ_cb.push("chb_dumps");
partJ_title.push("Semi-continuous");
partJ_cb.push("chb_semicontinuous");
partJ_title.push("Continuous");
partJ_cb.push("chb_continuous");
partJ_title.push("Shading of channel");
partJ_cb.push("chb_shading");
partJ_title.push("*Overhanging boughs");
partJ_cb.push("chb_boughs");
partJ_title.push("*Exposed bankside roots");
partJ_cb.push("chb_banksideRoots");
partJ_title.push("*Underwater tree roots");
partJ_cb.push("chb_underwaterRoots");
partJ_title.push("Fallen Trees");
partJ_cb.push("chb_fallenTrees");
partJ_title.push("Large woody debris");
partJ_cb.push("chb_woodyDebris");
for (var k:int =3D 0; k < 6; k++) {
        var chB_L:CheckBox =3D new CheckBox();
        var chB_R:CheckBox =3D new CheckBox();
        var txt_J:Text =3D new Text();
        txt_J.id =3D partJ_title[k];
        txt_J.text =3D partJ_title[k];
        txt_J.x =3D 40;
        txt_J.y =3D 599+k*22;
        chB_L.x =3D 190;
        chB_R.x =3D 221;
        chB_R.y =3D chB_L.y =3D 599+k*22;
        //chB_L.addEventListener(MouseEvent.CLICK, setCheckBox);
        chB_L.id =3D partJ_title[k]+"_L";
        chB_R.id =3D partJ_title[k]+"_R";
        tab_page3.addChild(chB_L);
        tab_page3.addChild(chB_R);
        tab_page3.addChild(txt_J);
}

This piece of code helps me create dynamically checkboxes in one of
the Tabs in my TabNavigator

my problem is how to access now to this elements so I can check their
value and how to make event to make unselected some other checkbox on
click 
checkboxes are grouped in Left and Right and only Left or Right can be
selected, that's why I need an event
basiclly with hand placed CheckBoxes click=3D"cb_r.selected=3Dfalse" is
enough but for dynamically created I need your help

THANKS in ADVANCE ;)


Reply via email to