# Is this possible to do using only Actionscript..?

**URL:** https://forum.kirupa.com/t/is-this-possible-to-do-using-only-actionscript/20989
**Category:** flash
**Created:** [May 15, 2003, 2:09pm UTC](https://forum.kirupa.com/t/is-this-possible-to-do-using-only-actionscript/20989 "2003-05-15T14:09:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chris\_2](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@chris\_2](https://forum.kirupa.com/u/chris_2)
#### Post date: [May 15, 2003, 2:09pm UTC](https://forum.kirupa.com/t/is-this-possible-to-do-using-only-actionscript/20989/1 "2003-05-15T14:09:00Z")

</div>

As part of my brief, I have to create a small flash movie that will load a random quote (which is actually a jpeg image), fade it in to view, display it for a length of time (probably only 3-5 seconds), fade it out and then load another random quote.

Is this possible to do, purely using actionscript?

I can randomly load an image - I used the “Random Background Image” tutorial on this site - but getting the fading/pausing/fading then moving to another quote has got me stumped.

The images are imported into their own swf file that is loaded into a placeholder movie on the html page.  
I tried adding in a for loop to the individual swf and the placeholder movie, to loop through alpha property of the image (just to fade up for the moment, till I get it working) - but this didn’t work at all.

I could use tweens for the fading, but this could end up a mess and more work than it needs to be as there could be quite a lot of quotes added over time.

Has anyone got any ideas on how to do this? Or am I going to have to go down the tween route?

thanks in advance for any help 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 15, 2003, 3:50pm UTC](https://forum.kirupa.com/t/is-this-possible-to-do-using-only-actionscript/20989/2 "2003-05-15T15:50:28Z")

</div>

Here’s a link to check out:

[http://gskinner.com/site1/default.asp](http://gskinner.com/site1/default.asp)

Navigate to laboratory -\> source code -\> FLAs -\> gPhotoFader

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 16, 2003, 12:25pm UTC](https://forum.kirupa.com/t/is-this-possible-to-do-using-only-actionscript/20989/3 "2003-05-16T12:25:31Z")

</div>

thanks, that helped me out! 🙂
