Hi, exactly how this works?This is the display on the App
<mx:List id="searchDisplay"
dataProvider="{searchXML.lastResult.contacts.contactInfo}" initialize="
initCellEditor();"
columnCount="1" enabled="true" x="0" y="49.35" width="368"
height="330.6667">
</mx:List>
public function initCellEditor():void {
searchDisplay.itemRenderer = new ClassFactory(SearchItem);
}
and my component:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
width="330" height="80"
backgroundColor="#000000"
borderStyle="solid"
cornerRadius="10"
borderColor="#2F3030"
backgroundAlpha="1.0">
<mx:Script>
import mx.utils.Base64Decoder;
import mx.controls.*;
private var base64Dec:Base64Decoder = new Base64Decoder();
private var byteArr:ByteArray = new ByteArray();
private function setPic(pic:String):void {
if(pic != null){
base64Dec.decode(pic);
byteArr = base64Dec.toByteArray();
imgContact.source = byteArr;
}
}
</mx:Script>
<mx:Image x="257.5" y="7.5" width="65" id="imgContact" height="65"
creationComplete="setPic(data.imagen)" />
<mx:Label x="91" y="13.75" width="151.10498" id="nameContact"
color="#9EB931" fontSize="12" height="21.65746" fontWeight="bold" text="{
data.name}"/>
<mx:Label x="91" y="41" width="121" id="userContact" color="#9EB931"
height="16" text="{data.voxoxid}"/>
<mx:Button x="9.95" y="15" label="Add" width="73.31491" height="20.359114"
fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#000000, #0B0B0B, #FAF1F1,
#FAF1F1]" themeColor="#000000" borderColor="#000000"/>
<mx:Button x="9.95" y="40" label="Message" width="73.31492"
height="20.359114" fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#000000,
#0B0B0B, #FAF1F1, #FAF1F1]"/>
</mx:Canvas>
PD im a very newbie guy hehehehehe
On Sun, Oct 5, 2008 at 2:45 AM, vengu <[EMAIL PROTECTED]> wrote:
>
> RemoveChild & removeChildAt didnt help?
>
> On Oct 4, 9:31 pm, smarinr <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> > Anybody knows how to clean out a List. I'm using a list to display a
> > search of search custom component but I need to clear the list because
> > some of the components images remain.
> >
> > THX
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---