Connecting Tech Pros Worldwide Forums | Help | Site Map

Two MovieClips with actions cause Flash CS4 to crash?

Member
 
Join Date: Mar 2008
Posts: 60
#1: Apr 4 '09
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:

Expand|Select|Wrap|Line Numbers
  1. onClipEvent (enterFrame) {
  2. System.security.allowDomain("http://www.autumnsolutions.org");
  3. var xmlDataDate=new XML();
  4. xmlDataDate.ignoreWhite=true;
  5. xmlDataDate.onLoad=processXMLData;
  6. xmlDataDate.load("http://www.autumnsolutions.org/xml-feed/Creative_Display.xml");
  7. function processXMLData(success)
  8. {
  9.   if (success)
  10.   {
  11.     currentWeatherDate=this.firstChild.firstChild.childNodes[0].attributes.DATE;
  12.     output_date = "Current weather forecast as of "+currentWeatherDate;    
  13.       }
  14.   }
  15. }
  16.  
and the code for the second clip is:

Expand|Select|Wrap|Line Numbers
  1. onClipEvent (enterFrame) {
  2. System.security.allowDomain("http://www.autumnsolutions.org");
  3. var xmlDataForecast=new XML();
  4. xmlDataForecast.ignoreWhite=true;
  5. xmlDataForecast.onLoad=processXMLData;
  6. xmlDataForecast.load("http://www.autumnsolutions.org/xml-feed/Creative_Display.xml");
  7. function processXMLData(success)
  8. {
  9.   if (success)
  10.   {
  11.     currentWeatherForecast=this.firstChild.firstChild.childNodes[0].attributes.FORECAST_TEXT_EN;
  12.     currentWeatherTemp=this.firstChild.firstChild.childNodes[0].attributes.TEMPERATURE;
  13.     output_forecast = "Forecast: "+currentWeatherForecast+"     "+"Temp: "+currentWeatherTemp+"ºC";    
  14.       }
  15.   }
  16. }
  17.  
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?

Member
 
Join Date: Mar 2008
Posts: 60
#2: Apr 4 '09

re: Two MovieClips with actions cause Flash CS4 to crash?


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