you need to declare the array collection as THE dataProvider of the combobox, 
so look to surround the array collection tags with <mx:dataProvider> tags

----- Original Message ----
From: Ian Skinner <[EMAIL PROTECTED]>
To: Flex <[email protected]>
Sent: Friday, July 27, 2007 8:59:20 AM
Subject: Empty ComboBox Custom Control.

What am I missing here?  This displays an empty combobox when called as 
such: <Ctrl:statusComboBox id="te_status" />.  It works if I create an 
inline ComboBox, but I will want to use this same control in multiple 
locations in my application.

<?xml version="1.0" encoding="utf-8"?>
<mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml";;>
    <mx:Script>
        <![CDATA[
            [Bindable]
            public var status:String = '';
        ]]>
    </mx:Script>
    
    <mx:ArrayCollection>
        <mx:String>Reported</mx:String>
        <mx:String>Assigned</mx:String>
        <mx:String>Closed</mx:String>
    </mx:ArrayCollection>
</mx:ComboBox>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4407
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to