homepage Welcome to WebmasterWorld Guest from 54.211.212.174
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Little help with XML with flash.
PokeTech




msg:3708383
 11:01 pm on Jul 26, 2008 (gmt 0)

Well I'm fairly new at XML but I've read a few tutorials and watching a few videos but I can't seem to figure out how to do this, thats why I'm asking for help...

Ok Well I have this PHP file which is getting information from mysql database and turning it into XML:

***********
<?php
$link = mysql_connect("localhost","db","password");
mysql_select_db("db");
$query = 'SELECT * FROM table';
$result = mysql_query($query);
echo "<?xml version=\"1.0\"?>\n";
echo "<users>\n";
while($line = mysql_fetch_assoc($result)) {
echo "<user>" . $line["username"] . "</user>\n";
}
echo "</users>\n";
mysql_close($link);
?>
***********

And then I want to get that into the flash program so that I can display the username's. Well I'm using SWiSHmax to make my flash stuff and after turning the stuff into XML I don't really know where to go after that. So does anybody know where there's a tutorial or maybe you could help me.

Thanks in advance!

 

eelixduppy




msg:3709943
 3:55 am on Jul 29, 2008 (gmt 0)

Have you tried a G search [google.com] with those specific keywords? Take a look, you'll find everything you'll need to work with XML in your flash apps.

rocknbil




msg:3712171
 4:05 pm on Jul 31, 2008 (gmt 0)

Have your PHP actually write the XML to a file and use the tools to load XML, or nest a getURL that gets the PHP script inside loading the XML.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved