I think you just add a method to return it (assuming you want it to be publicly accessible from your instance of the custom TileList)
so in your extension of TileList , add something like
public function getListItems():Array
{
return listItems;
}
If you want a "property" style access
(myTileListExtensionInstance.publicListItems) >>
public function get publicListItems():Array
{
return listItems;
}
This is of the top of my head, not thought about it too much or checked it, but
it effectively gives public access to that protected property...
Apologies if I've misunderstood your question.
-----Original Message-----
From: [email protected] on behalf of ezderman
Sent: Fri 18/01/2008 23:08
To: [email protected]
Subject: [flexcoders] get list of my item renderer
I have a TileList and I am trying to get reference to each item
renderer. I read about of a protected property called listItems that
return an array of the itemRenderer but I am not sure how to implement
it. I am extending the TileList class but how do I implement the
property to return the array?
______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT
registration No. 648874577.
This e-mail is confidential and may be privileged. It may be read, copied and
used only by the intended recipient. If you have received it in error, please
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637
1010. Please then delete the e-mail and do not disclose its contents to any
person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
______________________________________________________________________<<winmail.dat>>

