# Simple Actionscript, why is it being so difficult

**URL:** <https://forum.kirupa.com/t/simple-actionscript-why-is-it-being-so-difficult/70694>\
**Category:** Uncategorized\
**Created:** [November 16, 2004, 4:25pm UTC](https://forum.kirupa.com/t/simple-actionscript-why-is-it-being-so-difficult/70694 "2004-11-16T16:25:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)\
**Post date:** [November 16, 2004, 4:25pm UTC](https://forum.kirupa.com/t/simple-actionscript-why-is-it-being-so-difficult/70694/1 "2004-11-16T16:25:59Z")

</div>

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…

```auto

  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:

```auto

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

```

Any ideas?

Cheers,  
Chris
