Sto tentando di studiare un pò flex ma evidentemente nn ci capisco una mazza.
Ho questo esempio della Adobe:
Sto cercando di modificare un esempio Adobe. Loro hanno incorporato i dati da visualizzare nel mxml e li richiamano così:
<mx:Script>
<![CDATA[
// Model: XML structure describing
// some of the books in my collection.
[Bindable]
private var myBooks:XML =
<books>
<book ISBN="1590595181">
<title>Foundation ActionScript Animation: Making Things Move</title>
<author>Keith Peters</author>
<amazonUrl>http://tinyurl.com/npuxt</amazonUrl>
</book>
<book ISBN="1582346194">
<title>Send in the Idiots: Stories from the Other Side of Autism</title>
<author>Kamran Nazeer</author>
<amazonUrl>http://tinyurl.com/lo5ts</amazonUrl>
</book>
</books>
]]>
</mx:Script>
<mxataGrid id="myDataGrid" dataProvider="{myBooks.book}">
ecc ecc
ma se io volessi mettere questi dati in un xml esterno.......come modifico lo script?
Pensavo di modificare come ho visto in un video Adobe così:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="srv.send()">
<mx:HTTPService id="srv" url="xxx.xml"/>
e quindi poi modificare in
<mxataGrid id="myDataGrid" dataProvider="{srv.myBooks.book}">
ma nn funziona.....ufffff
qualcuno mi sa aiutare?
ciao

ataGrid id="myDataGrid" dataProvider="{myBooks.book}">
Rispondi quotando