• 0

XML and Flash


Question

Hey guys,

I'm interested in using Flash MX and XML to make a sort of News script. Basically the XML is used for calling functions in flash like drawing a table, <TABLE> , and then updating content. I've seen it done in menu bars (it comes with the Flash tutorials (menu_tabs.fla in your installation directory). Are there any tutorials out there for this sort of thing specifically, which go into depth?

Link to comment
https://www.neowin.net/forum/topic/121084-xml-and-flash/
Share on other sites

1 answer to this question

Recommended Posts

  • 0

try the tutorials at: actionscript.org :)

what you basically want to do is:

1. load xml into flash - use XML.sendAndLoad(), XML.load() or LoadVars.sendAndLoad() or LoadVars.load()

to load the xml into flash. if you use loadvars, don't forget to XML.parseXML() the loaded xml. (you might have to do this anyway, i don't know if the XML object parses the data loaded by default)

2. now that you have your xml loaded, walk through the tree (using XML.childNodes collection and XML.firstChild). see the tutorials...

3. parse your XML data into an easy to use datatype like an array, then iterate that with some function to create movieclips or whatever you want to do with that data.

-- note. there are new 'data connectors' in flash mx 2004 pro, provided by macromedia. These are good, but are fairly heavyweight (to cover all possible uses/requirements) so i've continued using my own custom data loader. you might have some success gettings these to work rather than writing one yourself, if you're not that fluent in actionscript/flash, and you can deal with the 20-50K added to your .swf.

Link to comment
https://www.neowin.net/forum/topic/121084-xml-and-flash/#findComment-1441120
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yeah define not catching up then to see the next part of this then
    • RoboForm 9.7.7 by Razvan Serea RoboForm is the top-rated Password Manager and Web Form Filler that completely automates password entering and form filling. RoboForm makes logging into Web sites and filling forms faster, easier, and more secure. RoboForm memorizes and securely stores each user name and password the first time you log into a site, then automatically supplies them when you return. RoboForm's powerful Logins feature eliminates the manual steps of logging into any online account. With just one click RoboForm will navigate to a Web site, enter your username and password and click the submit button for you. Completing long registration or checkout forms is also a breeze. Simply click on your RoboForm Identity and RoboForm fills-in the entire form for you. You no longer need to remember all your passwords. You remember one Master Password, and RoboForm remembers the rest. This allows you to use stronger passwords, making your online experience more secure. RoboForm uses strong AES encryption for complete data security. The all new RoboForm comes with Chrome and Safari browser support, iPhone/iPad and Android support, as well a brand new RoboForm Everywhere license for use on unlimited computers and mobile devices. RoboForm 9.7.7 changelog: Show RF Desktop unlock UI when user selects "Unlock" in RF Desktop UI. Fixed blank icon appeared in the Windows taskbar for RF Editor. Miscellaneous bug fixes. Download: RoboForm 9.7.7 | 42.2 MB (Free, paid upgrade available) View: RoboForm Website Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • LG G5 was the last memorable phone I had. The Samsung and Pixels and have had since have been disappointing and boring.
    • Isn't the CPU used to calculate the parity for the RAID? If so, the combination of SSDs and 10GBe might make the CPU more important
    • yeah GSMA began working to enable end to end encryption between android and iphone last year and apparently a new standard was developed. apple has said that they would implement this in "future software updates" but i haven't heard anything since march, the time this was all reported on. shortly after, i read on forbes that the FBI suggests not sending texts between iphone and android because they're unencrypted. i use signal to chat with my wife but i'd rather just use messages tbh (she has an iphone), i'm not really a 3rd party guy haha
  • Recent Achievements

    • Reacting Well
      SteveJaye earned a badge
      Reacting Well
    • One Month Later
      MadMung0 earned a badge
      One Month Later
    • One Month Later
      Uranus_enjoyer earned a badge
      One Month Later
    • Week One Done
      Philsl earned a badge
      Week One Done
    • Week One Done
      Jaclidio hoy earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      438
    2. 2
      ATLien_0
      157
    3. 3
      +FloatingFatMan
      149
    4. 4
      Nick H.
      64
    5. 5
      +thexfile
      62
  • Tell a friend

    Love Neowin? Tell a friend!