Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This seems to work fine for me. Here is my code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:components="components.*"&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;fx:Script&gt; &lt;![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var items:ArrayCollection = new ArrayCollection([{name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}, {name:"foo",value:"bar"}]); ]]&gt; &lt;/fx:Script&gt; &lt;fx:Style&gt; @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/halo"; @namespace components "components.*"; #queueView { alternating-item-colors: red, yellow; } &lt;/fx:Style&gt; &lt;mx:List id="queueView" dataProvider="{items}" width="200"&gt; &lt;mx:itemRenderer&gt; &lt;fx:Component&gt; &lt;mx:VBox&gt; &lt;mx:Label text="{data.name}"/&gt; &lt;mx:Label text="{data.value}"/&gt; &lt;/mx:VBox&gt; &lt;/fx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:List&gt; &lt;/s:Application&gt; </code></pre> <p>And here is the result:</p> <p><a href="http://i38.tinypic.com/10wkzs8.jpg" rel="nofollow noreferrer">result http://i38.tinypic.com/10wkzs8.jpg</a></p> <p>What build are you running? I am running the latest beta that came out in the last few weeks. Build 4.0.0.253292 to be exact. You can try upgrading to the latest build if you haven't already and you can also try to clean your project. Also make sure your browser isn't caching the swf, which sometimes happens when the file size doesn't change dramatically.</p> <p>Please let me know if I have missed something. But your code seems to work fine.</p>
    singulars
    1. This table or related slice is empty.
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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