Hi, I am trying to put together a product description page in Flash. Each
product will have some text fields and also some pictures. So, the issue is to
combine a thumbnail gallery with lots of data. Just to get an idea of how I
imagine it have a look at this template: ;
// read xml and display when loaded
moXML = new XML();
moXML.ignoreWhite = true;
moXML.onLoad = makeArray;
moXML.load("test.xml");
stop();
but it won't load the test.xml file that reads like this:
<?xml version="1.0" encoding="UTF-8"?>
<resultset>
<ship>
<id>1</id>
<category>sales</category>
<name>NALANI</name>
<notes>Some notes</notes>
<loa>36'36</loa>
<builder>HEYSEN</builder>
<engines>2 x 680 MAN</engines>
<year>1996</year>
<cabincount>4</cabincount>
<speedcruise>27</speedcruise>
<speedmax>32</speedmax>
<askingprice>30000</askingprice>
<askingcurrency>EUR</askingcurrency>
<numguests>6</numguests>
<propellant>motor</propellant>
<charterlow>500</charterlow>
<charterhigh>1500</charterhigh>
<chartercurrency></chartercurrency>
<beam>11</beam>
<draft>12</draft>
<hull></hull>
<consumption>255</consumption>
<fuelcapacity>16000</fuelcapacity>
<watercapacity>2000</watercapacity>
<watermaker>yes</watermaker>
<generator>SOME GENERATORS</generator>
<aircon>yes</aircon>
<crew>6</crew>
<flag>Greek</flag>
<designer>SOME</designer>
<location>GREECE</location>
<changed>20050718015506</changed>
<pix>
<pic>
<id>5</id>
<path>1.jpg</path>
<caption>General view of the deck</caption>
<category>DECK</category>
<sortnumber>1</sortnumber>
<shipid>1</shipid>
<changed>20050722192904</changed>
</pic>
<pic>
<id>6</id>
<path>4.jpg</path>
<caption>Master bedroom</caption>
<category>MASTER BEDROOM</category>
<sortnumber>2</sortnumber>
<shipid>1</shipid>
<changed>20050722192912</changed>
</pic>
</pix>
</ship>
</resultset>
Can anyone see the error? Goes without saying that the appropriate Dynamic
Text fields have been created in the movie with corresponding names (ie, notes,
builder loa, etc)
If worse comes to worst I am going to retrieve all these data using plain PHP
(without the Flash) and use the Flash just for the images.
tia