Re: mysql > data>php>xml>flash question please by Pieter Helsen on Jun 28, 2008 at 10:21:35 am
This should do it.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest(“http://www.wncnightlife.com/events.php”));
function loadXML(e:Event):void
{
xml = new XML(e.target.data);
trace(xml);
}
Re: mysql > data>php>xml>flash question please by Sher Ali on Jun 28, 2008 at 6:35:14 pm
that is because xml is declared anywhere. Either declare the xml at the top to make it accessible by all the code or inside the event handler. To make it accessible by all code you can do this:
var xml:XML = new XML();
xml.ignoreWhitespace = true;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
Re: mysql > data>php>xml>flash question please by Ryan Summey on Jun 28, 2008 at 7:12:50 pm
Thank you for the response!
i checked that link and yes that calender would be awesome but its 20 bucks hahah i don't have 20 bucks to spend on that haah i would love to create that. that was my first idea that i had but i was reading up on how to make a calender in flash and didnt find much.
i may suck it up and by that.... but whats the fun in tat i want to learn how to do that