A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flash xml vs. loadVars

  1. #1
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347

    flash xml vs. loadVars

    I am just curious. Currently i load data into flash using the old loadVars("some.php");

    that spits out a
    list of variables like

    =&image1=mypic.jpg&name1=mypicname&image2=myotherp ic.jpg....

    then iterating through that list in flash and calling my images and info looping...

    I have not used XML in flash so I would like to know more. Any help or links in the right direction are appreciated.

    TIA

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Loadvars is easy, but not very extensible if you want multiple applications to use the same XML file.

    Also XML allows for more detailed data structures (Eg nested information etc).


    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    thankis.

    is there any performance difference?

    yea... i kinda thought about it a while and realized much more things can do with an XML. Easier to read and write probably too.

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    XML is more complex and I would guess is slower (I haven't measured it), but XML doesn't create local variables either.

    To parse the XML flash uses a lot of string routines and these where sped up in Flash 6 (MX). Flash got probably 10+ times flaster at parsing XML than Flash 5.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center