Simple Actionscript, why is it being so difficult

Hi,

Just a quick question, I am trying to use the following on two movieclips, both of which are in the same scene but on different layers. I am trying to create an image slideshow that moves from one image, has a gap of about 10 seconds, then moves onto another…


  onClipEvent (load) {
  	_alpha = 0; // starting alpha
  	ALPHAend = 100;
  	speed = 15; // define speed of easing
  }
  onClipEvent (enterFrame) {
  	_alpha += (ALPHAend-_alpha)/speed;
  	stop();
  }
  

I am also trying to get a delay for this to happen without resorting to the timeline, but am having difficulty…I am trying to put one keyframe between each image and put the following:


  function doneDelay(){
  	play();
  	clearInterval(delay);
  }
  delay = setInterval(doneDelay, 1000);
  stop();
  

Any ideas?

Cheers,
Chris