This tutorial aims to teach you one of the basic underpinnings of Flash. Fading in both ActionScript and tweened Flash.
Fading Objects
This tutorial will teach you how to fade symbols along the timeline which can as you probably well know create some fabulous effects used in the motion picture industry.
Step1:
Create a New flash Document in the standard document dimensions 550px width and 400px height.
Step2:
Use the Text Tool to create a Static Text Box with the text saying something like “Now you see me now you don’tâ€.
Step3:
Right Click the text box and select convert to symbol from the context menu.
Step4:
Click on frame 10 and press the F6 key which is used to create a new keyframe.
Step5:
Now click on the dropdown box entitled colour: with the value of none and change the value to alpha which will show another box with a percentage click this box and type 0 then hit enter.
Step6:
Click on frame 1 and select Insert->Create Motion Tween
Step7:
You have just mastered fading out an object to fade in you would hae frame one with a alpha effect of 0% and the end of the tween frame with a value of 100% or with the default alpha settings
Alternative Step1:
Create a New flash Document in the standard document dimensions 550px width and 400px height.
Alternative Step2:
Use the Text Tool to create a Static Text Box with the text saying something like “Now you see me now you don’tâ€.
Alternative Step3:
Right Click the text box and select convert to symbol from the context menu and select MovieClip as the type of symbol.
Alternative Step4:
Now in the properties panel assign the MovieClip the name “fader”.
Alternative Step5:
Create a rectangle box from the shape tools. Then Right click and convert to a Button Symbol.
Alternative Step6:
Go to the Actions Panel(F9) while focused on the rectangle box.
Alternative Step7:
Enter The Following code
on(press){
fader._alpha = 0;
}
Alternative Step8:
You have just experienced how to make objects invisible in flash at runtime. This can be done for forms and even NPC’s in games. Have Fun and don’t be afraid to play around.