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.
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++;
}
}
}