Guys, in my application I have an itemRenderer to a Tree, which
uses two images and one label. Only it is taking around
10 sec. to render my list that has only 20 items.
I thought a solution would be, if possible, use only one
instance of an Image for all items in this list (singleton).
To test this I did the following test:
...
           [Bindable]
           var imageResource:ImageResource =
                       ImageResource.getInstancia();

   public function adiciona():void
   {
       var image:Image = new Image();
       image.source = imageResource.iconeSalvar;
       box1.addChild(image);
       box2.addChild(image);
   }

   ]]>
   </mx:Script>
   <containers:MVHBox creationComplete="adiciona()">
       <mx:Box id="box1" />
       <mx:Box id="box2" />
   </containers:MVHBox>
...
but to add the image in "box2" disappears from the "box1". Someone
know any way to use the same instance (not a "copy")
of an object in different places of the screen?
Any other ideas for improving the performance of my itemRenderer?

Thanks,
Arthur Rocha.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to