Jump to content
Search Community

thelbc

Members
  • Posts

    4
  • Joined

  • Last visited

thelbc's Achievements

0

Reputation

  1. Hi there, I have a problem when using ImageLoader with a XML file. The XML : <?xml version="1.0" encoding="iso-8859-1"?> My As3 code : var loader:XMLLoader = new XMLLoader("data.xml", {name:"xmlDoc", onComplete:completeHandler}); function completeHandler(event:LoaderEvent):void { trace("load complete. XML content: " + LoaderMax.getContent("xmlDoc")); var myText:String = LoaderMax.getContent("text001"); trace("This is myText" + myText); var image:ContentDisplay = LoaderMax.getContent("image001"); addChild(image); } loader.load(); The trace statement on the variable myText works but I got an error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChild() Like if my image ContentDisplay was empty. What am I missing? Thanks in advance, J.
  2. So obvious! Ok it's decided I'm gonna read the documentation. Thanks for your time.
  3. Hi there, I just get my hand into your new tool and so far it works like a charm. I was just wondering what is the best way to add the content of a SWFLoader to stage when I want without specifying any container. var loader:SWFLoader = new SWFLoader("../deploy/main.swf", {name:"mainSWF"}); I tried different way but I can't find out how. Cheers, J.
  4. I totally agree! Thanks to you and the forum's search function, my problem is fixed now. Best. Jk_
×
×
  • Create New...