Jump to content
GreenSock

Search the Community

Showing results for tags 'contentDisplay'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. hello there, I'm getting an error when trying to get the Contents from an XML file as followers. Here's the code: LoaderMax.activate([imageLoader, XMLLoader, DataLoader, MP3Loader]); var loader:XMLLoader = LoaderMax.parse("viet_alphabet.xml",{name:"viet_alphabet", onComplete:parse_xml,estimatedBytes:20000}); loader.load();[/size][/font] [font=verdana,geneva,sans-serif][size=5]function parse_xml(event:LoaderEvent):void { //trace (event.target.content.letter); //var xmlList = event.target.content.letter; var firstLetter:ContentDisplay = LoaderMax.getContent("b"); trace (firstLetter); and a bit of the XML data: <?xml version="1.0" encoding="UTF-8"?> <data> <LoaderMax name="VietnameseAphabet" load="true"> <letter id="b" audioPath="assets/sound/alphabet/b.mp3"><![CDATA[b]]></letter> <letter id="c" audioPath="assets/sound/alphabet/c.mp3"><![CDATA[C]]></letter> <letter id="d" audioPath="assets/sound/alphabet/d.mp3"><![CDATA[D]]></letter> Any ideas? Cheers, Ben
×