Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2005
    Posts
    1

    Default Flash Dynamic text v Static Text w/ XML

    I'm new to flash so this may be a very easy answer to this question.

    I'm loading xml data into my flash movie and the data loads fine but it's not visible when I do a test.

    I know the xml data is loading because if I select the area where the text should be and copy and paste it to to note pad the data then becomes visible.

    However if I create a static text and enter some garbage data I can see the garbage text.

    I'm not sure what I'm doing wrong, I have tried changing the color thinking it may be the text color clashing with the background color being the reason I cannot see the text but that has not worked either. Any suggestions would be greatly helpful.

    --Thanks
    IP

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: Flash Dynamic text v Static Text w/ XML

    ameikle
    Sorry, I missed this post. Are you still having problems with this?
    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Thumbs up Re: Flash Dynamic text v Static Text w/ XML

    Just as a heads-up, ActionScript 3.0 will be coming out relatively soon. For those of you who aren't aware, XML becomes INSANELY easy to handle with AS3.0 - much like handlers available in pretty much every other language out there. They gave some demos of handling at Flash in the Can 2006 and it looks like it's finally going to be at the point where it makes sense to use XML in Flash. Yay!
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: Flash Dynamic text v Static Text w/ XML

    Hi Deep

    Great to hear from you again. I'm not really into xml but would appreciate any links for "thicko's".
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  5. #5
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default Re: Flash Dynamic text v Static Text w/ XML

    Hi Egg,

    Yeah, I've been away for a while...work is definitely piling up! But as for XML, from what aspects are you looking for info? Do you mean XML within Flash? Or XML in general? If it's XML in Flash, Actionscript.org has a decent tutorial:

    http://www.actionscript.org/tutorial...ML/index.shtml

    but as you can see, it's ugly trying to use XML in Flash as of AS 2.0. When AS 3.0 comes into Flash 9, it's going to allow us to reference items within the XML document by their tagname! That will make things WAY easier. Right now you have to look at XML as a tree, and parse the tree to get any information that you want. While that's great if your data is structured as a tree, it's EXTREMELY rare that you would use XML to represent tree structures. And if I'm losing you by talking about tree structures, don't worry - it's not really all that important. Suffice it to say the way Flash parses XML right now is terrible. It's honestly easier to use something like PHP to parse the XML document, then pass the information to Flash in something that you can read in a LoadVars type object. It's a shame to say this but, unfortunately, it's true.

    If you're looking for info on XML in general, and you don't mind reading technical docs, there's nothing better than the w3c's specs on XML. (http://www.w3.org/XML/) It's techy, but it's got all the details you need. If you want something more student-friendly, try http://www.w3schools.com/xml/xml_whatis.asp - that's not a bad primer.

    It's a shame that AS1.X and AS2.X have been so bad at parsing XML. It closes off a powerful way of representing data to Flash developers.
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

  6. #6
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default Re: Flash Dynamic text v Static Text w/ XML

    Incidentally, for ameikle, did you ever figure out the colour issue? If not, please feel free to post the file and we can certainly have a look at what's going on.
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

 

 

Bookmarks

Posting Permissions

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