Hi, this is what i'd like to accomplish:
I'm creating a splash page. I have 3 images that i'd like to gradually fade into the next image. How can I do that??
Thanks...
Forget the Nobel Peace prize, I just want to take over the world!!
billwatson, you're action tween script shows me how to fade in, but what I want is:
image1 [fade into ->] image2 [fade into ->] image3 [fade back into ->] image1, and so forth...
Forget the Nobel Peace prize, I just want to take over the world!!
billwatson, hi i tried that. I got it fade-in and fade-out (with the same image) but on your code...on my code, I get an error:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances
on (release) {
And I created a button also. I did:
1) Selected 'pushButton' from components
2) Did F8 (convert to symbol -> button)
3) Selected Frame1
4) And then I added this code...
This is the code I entered:
on (release) {
clearInterval(showclip);
fadeclip = setInterval(fade, 100);
function fade() {
clip.hen--;
message.text = "Alpha = "+clip.hen;
if (clip.hen<0) {
clip.hen = 0;
message.text = "Alpha = 0";
clearInterval(fadeclip);
}
}
showclip = setInterval(fadeIn, 100)
function fadeIn(){
clip.tiger ++;
message.text = "Alpha = " + clip._alpha;
if (clip.tiger >100){
clip.tiger = 100;
message.text = "Alpha = 100";
clearInterval(showclip);
}
}
}
Forget the Nobel Peace prize, I just want to take over the world!!
billwatson, it works, errr kinda...image1 phases out and image2 phases in, but then image3 just appears...how can I get image2 phase into image3, then image3 phase into image1??
And lastly, right now the movie works when you click the button, can I make it into an onload movie?? I want the image phasing to start and keep going (kinda like a loop) when the .swf file is loaded...I tried on (load) but that did not work...
Forget the Nobel Peace prize, I just want to take over the world!!
billwatson, hi, sorry for the late reply, been busy all of a sudden...
Well, I got the thing to work the way I wanted, with some tweaking of the idea/script...
One last help, how can I make it so that movie runs as it loads in the browser?? As of now, I have it as on (release) which requires the pressing of a button...I want to be able to have the movie load on its own...
Once again, thanks...
Forget the Nobel Peace prize, I just want to take over the world!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.