I want to know how to make a preloader with a image that would change its colour during loading
Wat kind of image? Picture? A flash symbol like a square or sumthing?
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.
you mean something like this? 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
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-
tested - it works.
(though you’ll note I faked the “perc” value - works the same)