View Full Version : fade
helpmenow
January 31st, 2002, 07:06 AM
How do i tint the whole movie to white, or change to 0% alpha, over 10 frames from a button?
I want the whole movie to slowly change to white when i click a button, from the frame the movie is currently playing..
upuaut8
January 31st, 2002, 08:05 AM
What's your experience level? Do you know how to use Action script?
helpmenow
January 31st, 2002, 10:16 AM
I know some yea, but im no expert.
If i get some instructions i can probably do it..
Th3Cleaner
February 1st, 2002, 12:49 PM
Depends on how interactive the Flash Page is:
there are a few differnt methods to do this I will show Basic Basic Basic way to do it.
I will show you whats called "Frame by Frame Animation" for one button only.
create a new movie add 10 Key Frames
on Frame 1 and Frame 10 put a "stop action" (only frame 1 and 10).
create a "Button" (track as button) on Frame 1
right click it and where it says "Actions" paste code:
on (release) {
play();
}
Now click on Frame #2 (your button should be highlighted as well) go to the "Effects Tab" and set "Alpha" to 90%
Now click on Frame #3 (your button should be highlighted as well) go to the "Effects Tab" and set "Alpha" to 80%
Now click on Frame #4 (your button should be highlighted as well) go to the "Effects Tab" and set "Alpha" to 70%
Now click on Frame #5 (your button should be highlighted as well) go to the "Effects Tab" and set "Alpha" to 60%
Get the picture ?
Now click on Frame #10 (your button should be highlighted as well) go to the "Effects Tab" and set "Alpha" to 0%
You should know this is just Frame by Frame Animation and I am sure someone else will show you a better method.
With a name like Helpmenow You should recive alot of help :)
Good luck.
upuaut8
February 2nd, 2002, 12:15 AM
Thanks for the assist Cleaner. :) Good explination there.
ilyaslamasse
February 2nd, 2002, 07:36 AM
OR you can do that with Actionscript, because your method is quite long and as Supra would say, this is not reusable. I'll tell you how to trigger the fade with a button. It can pretty much anything else.
So create your clip, bla bla bla, put it on the scene and give it the instance name "myclip". Create a button and put it on the scene (NOT in the clip) and then right click it to open the Objects action panel. Write :
on (press) _root.check = 1 ;
Open the actions panel of your clip and write :
onClipEvent (enterFrame) {
if (_alpha > 0) {
if (_root.check == 1) {
_alpha -= 5 ;
}
}
}
This is not very reusable either, but I don't have the patience to make it a function.
pom 0]
Click the button under to see the effect
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.