…perhaps not for the experienced, but for me.
What I am trying to do is when my intro movie has finished playing, I want the main timeline to stop for one second, displaying the end of my movie, before it continues. This way I won’t have to make 24 frames with the image in it, which helps keeping my .swf small.
This is the AS code in the frame where I want the timeline to stop:
**stop();
function Delay() {
var sTime = _root.sTime;
var curTime = getTimer()/1000;
if (curTime-sTime>2) {
clearInterval(_root.delayInterval);
gotoAndPlay (50);
}
}
this.onEnterFrame (50) = function {
_root.sTime = getTimer()/1000;
_root.delayInterval = setInterval(Delay, 100);
}**
And this is the code output I get:
**Left side of assignment operator must be variable or property.
this.onEnterFrame (50) = function {
**
Perhaps someone can explain what the message means so that I can correct it.