Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Array.html" rel="nofollow">Array</a> class is a top level Object and does not implement <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/IEventDispatcher.html" rel="nofollow">IEventDispatcher</a>, which is required for binding. Try using an <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/collections/ArrayCollection.html" rel="nofollow">ArrayCollection</a> instead.</p> <p><strong>Update:</strong> To add items to an ArrayCollection you can either use the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/collections/ListCollectionView.html#addItem%28%29" rel="nofollow">addItem()</a> method, or you can use the <code>push()</code> method of the Array that ArrayCollection wraps in the property <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/collections/ArrayCollection.html#source" rel="nofollow">source</a>. However, whenever you make direct changes to the <code>source</code> Array, you need to call the refresh() method.</p> <pre><code>myArr.source.push(myFileReference); myArr.refresh(); </code></pre> <p>The <code>addItem()</code> method is preferred.</p> <p><strong>Update 2:</strong> mx:ComboBox has a property <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/ComboBox.html#labelField" rel="nofollow">labelField</a> which determines what field from the items in the <code>dataProvider</code> to use. In order to display the <code>name</code> of a FileReference object, the following should do it:</p> <pre><code>&lt;mx:ComboBox dataProvider="{fls}" labelField="name"/&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload