-
XML looping?
Hi guys!
When you use xml and imports data from a xml file and whant several, lets say, posts on your flash movie, i guess you use some kind of loop?
Anyway i have this awesome script that scales movieclip into a nice scaling effect. The movieclips must be named "item0", "item1" etc etc or else the scrip will not work.
It would be really cool if you could have some pictures, with the size of 56 x 56 and a xml file with some info and the picutre url, to use this script! Then i guess you would have to create a loop to use more than one picture att the time? Is this possible?
Sh*t i think this is way to much to ask :(
-
We have a few examples of using xml objects at the Exchange. I even recently submitted an "element" style xml structure so we have examples of both common types of xml ...attribute and element ... so it should be easy for anyone to adapt to whatever xml flavor they prefer.
You'll see in those examples that once the xml object is brought in...it is busted into arrays that allow you to do just about anything your heart desires within the confines of AS1. Check them out and experiment :thumbsup:
-
I wanted to add about the only other thing I should do is also along the way submit some kind of XML movie that shows how to use CDATA tags with XML so you can send in data with full html tagging (again within the limit of what flashplayer allows). Depending on the data, if you send in raw data as html and it is not wrapped in a CDATA it will halt the parser (basically stops dead).
I'll be sure to add that type to my list to submit.
An example of what I mean can be seen if you click one of my RSS links from my blogger. All the articles are CDATA wrapped for this reason.
-
ok... i've looked on exchange and downloaded all the xml examples. But this is like a forign language to me :P dont understaind a sh*t :(
-
Not sure how to respond.
There is no quick path to the goal sometimes and to use xml in a way that allows you to control every aspect, it will require you to read about and learn to use it. If an existing example exactly matches what you hope to achieve (which is rarely the case) you could skip the learning process.
We have tutorials here at Flashkit. There are also well known places like Kirupa.com and Actionscript.org (among others) that would have resources and tutorials that would help get started at least. What you described you want in the first post of this thread will require quite a few different scripting abilities and is most likely something you would not find ready to go in any opensource repository but would rather be something you yourself have to construct. Good luck man :thumbsup:
-
thanks Chris... i'll need it :P