Jason,

The following code works fine for me:

[CODE]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" initialize="init()">
        <mx:Script>
                <![CDATA[
                        [Bindable]
                        public var districts:Array;
                
                        public function init():void {
                                var tempDistricts:Array = new Array();
                                tempDistricts.push("red light");
                                tempDistricts.push("green light");
                                tempDistricts.push("blue light");
                                
/*
                                var len:Number = tempDistricts.length;
                                for(var i:Number = 0; i < len; i++) {
                                        districts.addItem(tempDistricts[i]);
                                }
*/

                                districts = tempDistricts;
                        }
                ]]>
        </mx:Script>

<!--
        <mx:Array id="districts" />
-->

<!--
        <mx:ArrayCollection id="districts" />
-->

        <mx:Panel maxWidth="135" width="25%" height="100%">
                <mx:List id="districtList"
                                 dataProvider="{districts}"
                                 width="100"
                                 height="100%"
                                 resize="false"
                                 allowMultipleSelection="true"
                                 dragEnabled="true"/>
        </mx:Panel>     
</mx:Application>
[/CODE]

Perhaps the problem your having has to do with the data returned from
your HTTPService call?


Ali


--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to