Hi everybody,
 
I need your advises concerning the development of customized component.
I would like to transform this following code that I did in my mxml component into a in actionscript coded component :
               
<mx:Repeater id="rpTreeExpandCollapse"
               dataProvider="{ arrTreeExpandCollapseBtn }" >
                    
               <cp:CustomizedButton id="btnTreeExpandCollapse"
                     styleName="button"
                     icon="{ arrTreeExpandCollapseBtn[rpTreeExpandCollapse.currentIndex].icon }"
                     toolTip="{ arrTreeExpandCollapseBtn[rpTreeExpandCollapse.currentIndex].tooltip}"
                     width="28"
                     mouseOverEffect="Fade"
                     tabEnabled="true" />
               
               <mx:Spacer width="3" />
</mx:Repeater>
 
Do I have to use the loop for(var i:Number=0; i>myArray.length;I++)
{
    // Here the component CustomizedButton   
  if (CustomizedButton== undefined)
   createClassObject(
    CustomizedButton,
    "myButton",
    3,
    {
         text: myArray[i],
    });
}
 
or do I have to create a Repeater in which I'm going to use createClassObject() or createChildren().
Thanks in advance for your help.
 
David

**********************************************************************

Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's.

Pour en savoir plus, http://www.coface.fr

Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's.

More about Coface, http://www.coface.com

WARNING :

- Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement.

- Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are misidentified.

**********************************************************************



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to