oh k..nice ..any more tricks...?

On Jan 11, 2008 5:41 PM, Erik Price <[EMAIL PROTECTED]> wrote:

>   On Jan 11, 2008 5:22 AM, learner <[EMAIL PROTECTED]<peacocksea%40gmail.com>>
> wrote:
>
> > hi all,
> > while creating a Itemrender of for the list , I am facing stranger
> problems
> > 1. the data displayed in the itemrendere gets screwed up while scrolling
> > 2. it takes lots of time (> 1 sec ) to render list
> >
> >
> > Can somebody please anyalyse this and tell me that what is that which is
> > taking resources ...
>
> Would it help if you cached the references to the icons in the SWFs
> rather than creating new instances of them each time data() is called?
>
> For example:
>
> [Embed(source='ms/felix/css/assets/felixStyle.swf',
> symbol='organizer')]
> private static const ORGANIZER_ICON:Class;
> private static const ORGANIZER_ICON_OBJ:Object = new ORGANIZER_ICON();
>
> override public function set data(value:Object):void
> {
> // blah blah
> organizerImage.source = ORGANIZER_ICON_OBJ;
> // blah blah
> }
>  
>

Reply via email to