Thanks that worked.
--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]>
wrote:
>
>
> What about this:
>
> searchDP(FontFamily.dataProvider, "label", style.fontFamily);
>
>
> public function searchDP(arrToSearch:ArrayCollection, field:String,
> value:String):Number
> {
>
What about this:
searchDP(FontFamily.dataProvider, "label", style.fontFamily);
public function searchDP(arrToSearch:ArrayCollection, field:String, value:String):Number{ for (var idx = 0; idx < arrToSearch.length; ++idx) { if (arrToSearch.getItemAt(idx)[field] == value) {return idx}; } r
2 matches
Mail list logo