Two MovieClips with actions cause Flash CS4 to crash?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AutumnsDecay
    New Member
    • Mar 2008
    • 170

    Two MovieClips with actions cause Flash CS4 to crash?

    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:

    Code:
    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:

    Code:
    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?
  • AutumnsDecay
    New Member
    • Mar 2008
    • 170

    #2
    As it turns out, it's just a flaw with CS4. Back to CS3 for a loooong while.

    Comment

    Working...