I am loading external swf when i click menu buttons that their URLs are taken fron an XML file.
Than i get this error on the output panel.
ReferenceError: Error #1069: [COLOR=“DarkRed”]Property link not found on flash.display.LoaderInfo and there is no default value.
at classes::core/imageLoaded()[/COLOR]
I think is caused from the [COLOR=“Red”]contentLoaderInfo[/COLOR].
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(e:Event):void
{
if(imageHolder.numChildren > 0) {
imageHolder.removeChildAt(0);
}
imageHolder.addChild(e.target.link);
also my xml file structure is:
<mainlinks>
<mainlink title=“portfolio” link=“portfolio.html”>
<sublink title=“kitchen tools” link=“pictures.swf”/></mainlinks>