all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

Illegal operation crash using loadvars and loadmovie


Illegal operation crash using loadvars and loadmovie Tejaswi
9/5/2005 9:10:42 PM
flash actionscript:
I have created a flash piece that uses loadvars and loadmovie to load text and
images on a rotating basis. When viewd in browsers it either crashes the
browser or gives the following message in Gecko browsers:

Shockwave Flash
The plugin performed an illegal operation. You are strongly advised to restart
navigator.

My code uses arrays to store the text and image data and then uses the code
below to change the loaded content.

Can any one give any advice about this?
Thanks
Chris



function setLeft(){
loadMovie(leftImage[counter], leftPhoto);
leftFeature.header.text = leftTitle[counter];
leftData.load(leftText[counter]);
leftFeature.buttonText.text =leftLabel[counter];
leftFeature.link=leftUrl[counter];
}
Re: Illegal operation crash using loadvars and loadmovie kglad
9/5/2005 9:17:29 PM
Re: Illegal operation crash using loadvars and loadmovie Tejaswi
9/5/2005 9:34:41 PM
this is the loadvars definition:

leftData = new LoadVars();
leftData.onLoad = function(success) {
if (success) {
leftFeature.copyHolder.text = this.content;
} else {
trace("Error loading data");
}
}



Re: Illegal operation crash using loadvars and loadmovie Tejaswi
9/5/2005 9:39:02 PM
Re: Illegal operation crash using loadvars and loadmovie NSurveyor
9/5/2005 9:53:52 PM
Try commenting out certain parts of the code. For example, comment out the
loadMovie, see if that stops the error, if not, remove the comment and comment
out the leftData.load(), try finding specifally is causing it to crash.
Re: Illegal operation crash using loadvars and loadmovie Tejaswi
9/5/2005 9:56:49 PM
Re: Illegal operation crash using loadvars and loadmovie Tejaswi
9/5/2005 11:30:41 PM
AddThis Social Bookmark Button