# How to make this effect

**URL:** <https://forum.kirupa.com/t/how-to-make-this-effect/23303>\
**Category:** flash\
**Created:** [June 16, 2003, 5:45am UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303 "2003-06-16T05:45:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaihangkk](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kaihangkk](https://forum.kirupa.com/u/kaihangkk)\
**Post date:** [June 16, 2003, 5:45am UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/1 "2003-06-16T05:45:21Z")

</div>

I want to know how to make a preloader with a image that would change its colour during loading

---

<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:** [June 16, 2003, 7:01am UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/2 "2003-06-16T07:01:54Z")

</div>

Wat kind of image? Picture? A flash symbol like a square or sumthing?

---

<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:** [June 16, 2003, 2:12pm UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/3 "2003-06-16T14:12:06Z")

</div>

You could try to make an extra movie clip called load\_mc or something alike. Then make this clip 100 frames long and sync it with the percentage it has to do onload.  
You can adjust the load\_mc and make it however you like.

---

<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:** [June 16, 2003, 5:07pm UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/4 "2003-06-16T17:07:24Z")

</div>

you mean something like this? [http://oddin.home.ro](http://oddin.home.ro) ?  
Just make a movie out of the picture then play around with the RGB and alpha pallete in the actionscript.The second option would be to make a movie clip out of the picture and then to make more frames and change the RGB values in each frame.And as i final touch you make them play random.If you wanna do it according to how much of the movie has bein’ loaded then you will need a lot of patience and to master the if code 🙂

---

<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:** [June 16, 2003, 9:16pm UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/5 "2003-06-16T21:16:29Z")

</div>

you already know how to grab the “loaded” value, use that value (and the fact that it is a certain distance between 0 and 100 - how convenient) to add certain amounts of R G and B into the mix.

Maybe something like this:

where “perc” is your percentage (between 0 and 100);

[AS]myClipCol = new Color(myClip);

Red = 0;  
Green = 255\*(perc/100);  
Blue = 255;

myClipCol.setRGB(Red\<\<16 | Green\<\<8 | Blue);[/AS]

That will fade your clip from blue to aqua blue as loader goes from 0 to 100.

-not tested-

---

<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:** [June 16, 2003, 9:33pm UTC](https://forum.kirupa.com/t/how-to-make-this-effect/23303/6 "2003-06-16T21:33:07Z")

</div>

tested - it works.

(though you’ll note I faked the “perc” value - works the same)
