I know a little bit about XML and basically nothing about PHP, which I assume are the ways to go about this?
This is really important for me to do.. please help. Thanks.
Posted 26 January 2007 - 03:55 PM
Posted 26 January 2007 - 07:14 PM
Edited by Ben, 26 January 2007 - 07:16 PM.
Posted 26 January 2007 - 07:18 PM
Ben, on Jan 26 2007, 07:14 PM, said:
Posted 26 January 2007 - 07:50 PM
Posted 26 January 2007 - 08:15 PM
Edited by Ben, 26 January 2007 - 08:16 PM.
Posted 26 January 2007 - 09:05 PM
Posted 27 January 2007 - 12:19 AM
<?xml version="1.0"?> <firstChild> <childNode title="Title" image="Image.jpg" /> </firstChild>Then use the loadMovie() method to load the image into an empty movieclip:
_root.createEmptyMovieClip("imageHold", getNextHighestDepth());
imageHold.loadMovie(xmlObj.firstChild.childNodes[0].attributes["image"]);
Edited by Ben, 27 January 2007 - 12:20 AM.
Posted 27 January 2007 - 03:43 AM
Posted 27 January 2007 - 06:39 AM
Posted 27 January 2007 - 06:42 AM
Posted 27 January 2007 - 06:43 AM
Posted 27 January 2007 - 06:49 AM
Edited by darkson01, 27 January 2007 - 06:51 AM.
Posted 27 January 2007 - 07:02 AM
<?php
//I won't bother using the connect to database stuff since it's only an example
//Start the XML
echo "<?xml version=\"1.0\" encode=\"UTF-8\"?>";
echo "<firstChild>";
//Selecting from table..
$query = "SELECT * FROM table ORDER BY id DESC";
//Running a while loop to retrieve everything
while($row = $mysql_fetch_array($query)) {
//Add childNodes
echo "<childNode attribute1=\"".$row["row1"]."\" attribute1=\"".$row["row1"]."\" />";
}
//Close firstChild
echo "</firstChild>";
?>
var myXML:XML = new XML();
myXML.ignoreWhite = true;
...
myXML.load("getData.php");
Edited by Ben, 27 January 2007 - 07:03 AM.
Posted 27 January 2007 - 09:56 AM
Posted 27 January 2007 - 11:01 AM
Ben, on Jan 27 2007, 12:19 AM, said:
<?xml version="1.0"?> <firstChild> <childNode title="Title" image="Image.jpg" /> </firstChild>Then use the loadMovie() method to load the image into an empty movieclip:
_root.createEmptyMovieClip("imageHold", getNextHighestDepth());
imageHold.loadMovie(xmlObj.firstChild.childNodes[0].attributes["image"]);Edited by ogrekey, 27 January 2007 - 11:02 AM.
Posted 27 January 2007 - 06:41 PM
Edited by Ben, 27 January 2007 - 06:42 PM.
Posted 27 January 2007 - 09:28 PM
Posted 27 January 2007 - 11:09 PM
Posted 28 January 2007 - 11:26 AM
Edited by ogrekey, 28 January 2007 - 11:27 AM.
Posted 28 January 2007 - 02:59 PM
0 members, 1 guests, 0 anonymous users