Hey there.
I have a flash project that I'm working on and I'm getting a weird error.
I have a flash document with two movieclips. Inside each movieclip is a dynamic text field, which will allow me to load text via variables.
My issue is this: when I have both movieclips, flash cs 4 crashes. if I delete on of the layers the problem doesn't exist.
The code for movieclip layer 1 is:
-
onClipEvent (enterFrame) {
-
System.security.allowDomain("http://www.autumnsolutions.org");
-
var xmlDataDate=new XML();
-
xmlDataDate.ignoreWhite=true;
-
xmlDataDate.onLoad=processXMLData;
-
xmlDataDate.load("http://www.autumnsolutions.org/xml-feed/Creative_Display.xml");
-
function processXMLData(success)
-
{
-
if (success)
-
{
-
currentWeatherDate=this.firstChild.firstChild.childNodes[0].attributes.DATE;
-
output_date = "Current weather forecast as of "+currentWeatherDate;
-
}
-
}
-
}
-
and the code for the second clip is:
-
onClipEvent (enterFrame) {
-
System.security.allowDomain("http://www.autumnsolutions.org");
-
var xmlDataForecast=new XML();
-
xmlDataForecast.ignoreWhite=true;
-
xmlDataForecast.onLoad=processXMLData;
-
xmlDataForecast.load("http://www.autumnsolutions.org/xml-feed/Creative_Display.xml");
-
function processXMLData(success)
-
{
-
if (success)
-
{
-
currentWeatherForecast=this.firstChild.firstChild.childNodes[0].attributes.FORECAST_TEXT_EN;
-
currentWeatherTemp=this.firstChild.firstChild.childNodes[0].attributes.TEMPERATURE;
-
output_forecast = "Forecast: "+currentWeatherForecast+" "+"Temp: "+currentWeatherTemp+"ºC";
-
}
-
}
-
}
-
I've given the XML variable different names, gave the text fields different names, etc... and no matter what with two clips it will crash.
Why?