| daz lee 2005-06-16, 5:45 pm |
| its an ugly way but the only 1 we have
function removeByLabel(label:String){
for(var i:Number =3D 0;i<list.length;i++){
if(list.getItemAt(i).label =3D=3D label){
list.removeItemAt(i);
break;
}
}
}
----- Original Message -----=20
From: John<mailto:outsourcer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>=20
To: =
flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>=20
Sent: 16 June 2005 18:15
Subject: [FlashComm] List component help
How can i delete a item in a list component only by knowing the =
label...
I didn't find anything that could help me retrive the index of an item =
by=20
knowing the label...
THX
=3D---------------------------------------------------------
Supported by Fig Leaf Software - =
http://www.figleaf.com<http://www.figleaf.com/>
=3D---------------------------------------------------------
To change your subscription options or search the archive:
=
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
figleaf.com/mailman/listinfo/flashcomm>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|