I created a function and reinserted the original XML call within it. Then I call the function.
//Reload the XML file function reLoadXML(e:Event = null):void { var feedXml = "xml/screen1_zone1.xml"; //*****Begin DynaSign Variable // Check if parameter from Dynasign Player exists var media_rss_url = stage.loaderInfo.parameters["media_rss_url"] if (media_rss_url!=undefined) feedXml = media_rss_url; xmlLoader.load(new URLRequest(feedXml)); //End DynaSign Variable***** } //Reload the XML file after 15 Minutes of play TweenLite.delayedCall(3, reLoadXML); //short for testing purposes
Problem is I get a white screen on reload but output shows there is still loop event happening from the trace(getTimer()/1000); call. Am I calling the function in the wrong place? Or incorrectly?