Note that there are some explanatory texts on larger screens.

plurals
  1. PObinding data from webservice to custom flex component
    text
    copied!<p>i'm using flash builder 4..i want to ask something..how to binding data to custom list component in flex??...</p> <p>i already try binding data from webservice to standard datagrid component in flex, and it's work perfectly...this is my code for binding to datagrid..</p> <pre><code>&lt;mx:DataGrid includeIn="LobbyPage" x="30" y="319" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{TakeUserResult4.lastResult}"&gt; &lt;mx:columns&gt; &lt;mx:DataGridColumn headerText="Username" dataField="Username"/&gt; &lt;mx:DataGridColumn headerText="Password" dataField="Password"/&gt; &lt;/mx:columns&gt; &lt;/mx:DataGrid&gt; </code></pre> <p>now i'm stuck with this..i have custom list like i wrote below..</p> <pre><code>&lt;s:List skinClass="components.DataList4" x="18" y="611" id="listPlayer"&gt; &lt;s:ArrayCollection&gt; &lt;fx:Object image1="@Embed('/assets/images/test aj/basil.png')" text1="FLAVOR" text2="Description of the flavor goes here"/&gt; &lt;fx:Object image1="@Embed('/assets/images/test aj/basil.png')" text1="FLAVOR" text2="Description of the flavor goes here"/&gt; &lt;fx:Object image1="@Embed('/assets/images/test aj/basil.png')" text1="FLAVOR" text2="Description of the flavor goes here"/&gt; &lt;/s:ArrayCollection&gt; &lt;/s:List&gt; </code></pre> <p>now..how to bind data to "image1","text1","text2" from webservice?? anyone who want to share an experience to this stuff and give me example?thanks in advance.. by the way..sorry for my bad english :)</p>
 

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