Well XML into Flash is advanced period. I don’t think there is a “simple” way. If you know how to do it, it seems simple, but it takes a lot to learn how to do XML into Flash.
I have tried to learn because that is one thing I really want to know how to do with Flash, but it is too advanced for me right now.
define the function that will be executed when the data has loaded (function myLoad in the example)
create a new XML object (thisXML)
set ignoreWhite to true (so Flash won’t treat carriage returns and other whitespace in the xml file as separate nodes – only works in r41+ revisions of Flash 5 if xmlnitro.as not used in conjunction)
tell Flash which function will be used when the data has loaded
load the data!"
At least that helped me grasp what I’m doing. Now, just need to learn how to write each part.
beta’s fuzzy lil head spinning … that’s a great image
i’m gonna keep my eye on this thread … hopefully someone will know the answer b/c i’d like to know as well. i’m learning xml at the moment (i just started reading) and i would like to know how to integrate it into flash :trout:
There are always 10 PlaylistEntry items - I’ll only need the first 3.
The Refresh item will control when to reload all the data. There will also be manual refresh button.
So the function that needs to happen on Load will put the info in the dynamic text fields. TrackOne, TrackTwo, TrackThree are my text fields. I’ll be combining the variables something to the effect of title & " - " & artist & " - " & album.
Ok… I’m making progress. I’ve found that the problem with the tutorials is that they’re not explaining how to target specific nodes… the old fashioned way. I’ll explain later.
Ok. I’ve actually got it working. I’m hardcoding the XML actionscripts - most of the tutorials do it dynamically - and that’s where it gets confusing.
I’ll post my findings soon.
So, another question about making a timer. When I load the XML file, I have a number that tells me when I should reload the file (in seconds). What’s the best way to do this? Do I just loop several frames and check the getTimer? Is there some easier AS to do this?