Groups | Blog | Home
all groups > flash actionscript > october 2005 >

flash actionscript : stop(); command not working in Main timeline


theoriginaldrizz
10/9/2005 9:13:21 PM
Flash MX 2004 - authoring back and forth between PC (Win XP) and Mac (OSX)

SWF is IGNORING stop(); COMMANDS in the MAIN TIMELINE!!!

I have an application (that is of course due today) that has a problem
ignoring stop(); commands farther down in the timeline.

Seems to be a compiler error as the problem was occurring sometimes when
generating a test SWF. It would behave more like a slide show than an
application. To remedy the problem I was able to do various combinations of
"save as", "save and compact" or re-typing part of an Actionscript and then
saving...

However, now every time I generate a SWF, it repeats the same error of
ignoring all stop() commands past a certain point in the timeline.

These script do also contain various functions that manipulate various
movieClips onstage, and all was working just fine a few versions ago.

I have tried the following to try and remedy the error:

moved the stop(); command to a different layer in its own keyframe.
tried this.stop(); to point to the main timeline.
tried moving the stop(); to the beginning or end of actionscript in the
keyframe.

Has anyone else ever had this problem and found a solution?

TIA,
theoriginaldrizz

//sample of what I have in the suspect keyframes on the top layer of the main
timeline:

//this.stop(); //- had it here originally, with only intermittent errors that
would resolve after save as on the file

_global.prevLabel = "myPrevLabel";
_global.nextLabel = "myNextLabel";

//init user data as object prop
_global.userData.answers.weight = 0;

/*this.weight_mc.continue_btn_mc.onRelease = function() {
// store Weight
_global.userData.answers.weight = this.weight_mc.pet_weight.data
trace("this.weight_mc.pet_weight.data="+this.weight_mc.user_weight.data);
_global.aDirection = "Continue"
play();
}*/
this.weight_mc.back_btn_mc.onRelease = function() {
_global.aDirection = "Back"
play();
}
this.stop(); //HAVE TRIED IT HERE TOO...
kglad
10/9/2005 9:22:55 PM
theoriginaldrizz
10/9/2005 9:29:38 PM
I can't post a link to the FLA due to my NDA with the client... I don't know
that I can post a SWF...

Let me see if I can create a SWF that is doing the same thing...

I have a feeling that it is a file corruption, as the problem was intermittent
but now ignores stop after a certain point...

Let me get back to you... in a minute...

Thanks for quick response...
AddThis Social Bookmark Button