Timeline cut out problem

Hi,

Please have a look at thefla attached. I have no idea why when I call tag.gotoAndPlay(“1start”) it works fine but tag.gotoAndPlay(“1start”) does not work at all - but it looks fine when in flash and I move along the timeline.

Any help most appreciated…

thanks

ash

None of your varibles have been defined. So its going to and playing nothing.


this.onEnterFrame = function(){
	//_root.testText = this._currentframe+" "+(_root.testText).substr(_root.testText.length-20);
	//only start this once the intro is complete
	if(_root.introComplete)
	{
		//after 10 seconds play finish the run
		if(loopCount == 240)
		{
			//increment the counter
			loopCount++;
			//create the frame label for the fin run
			var target:String = currLoc+"fin";
			//_root.testText = target+" "+this._currentframe;
			//play the fin run
			this.gotoAndPlay(target);
			//_root.testText = this._currentframe;
		}
		//after a further 3 seconds of blank, bring in a new animation
		else if(loopCount >= 312)
		{
			//_root.testText = _root.testText+" "+this._currentframe;
			//reset counter
			loopCount = 0;
			//create frame label
			//test if at the end of the animations, if so reset
			if(currLoc >= 3)
			{
				currLoc = 1;
			}
			else
			{
				currLoc++;
			}
			var target:String = currLoc+"start";
			_root.testText = target+" "+this._currentframe;
			//play the next run
			this.gotoAndPlay(target);
			_root.testText = _root.testText+" "+this._currentframe;
		}
		else
		{
			//increment the counter
			loopCount++;
		}
	}
}

Hi,

Sorry I menat to say:
tag.gotoAndPlay(“1start”) works fine but tag.gotoAndPlay(“2start”) does not.

Is there any reason for this? “1start” only exists as a frame label, same as “2start” - I don’t need to define these as variables, do I?

thanks

ash

Also I have run traces on the current frame. It appears it is definitely playing through from 2start onwards - its just not visible.

thanks

ash

Problem solved. The second run of animation relied on dynamic text fields - which had no characters!

sorry for the waste of time…