So lets start with the obviousness, create a new AS3 fla, and drag a DataGrid component to the stage. I will name it dataG.
Put this code on the frame:
import fl.data.DataProvider;
var xml:XML=<tickets>
<item>
<ID>231</ID>
<Status>Modified</Status>
</item>
<item>
<ID>232</ID>
<Status>Confirmed</Status>
</item>
<item>
<ID>233</ID>
<Status>Pending</Status>
</item>
</tickets>;
dataG.dataProvider= new DataProvider(xml)
If you publish the movie now, it should look something like this:
0 comments:
Post a Comment