|
||||||
|
||||||
Flash - Blurring a Picture
Free
Flash Tutorial
Method 2: Blurry Cat using ActionScript Fading
If you have used the Tweening Method (1) and followed all the steps above you have finished your Movie. For Method 2 you need to complete Steps 1 to 5 above except for step 4.
Step Six: The Button ActionScript
on (rollOver) { //when you rollover set the variable dir (which stands for "direction of fade"). In this case a dir of 1 will make the "Cat Fader" clip fade in (see below to see how dir affects the fading).
_root.dir = 1;
}
on (rollOut) { //upon rollout, change dir to -1 for a fadeout of "Cat Fader" (see below...)
_root.dir = -1;
}
on (release, releaseOutside) {
trace("Meow!"); //put your code to do something, like gotoAndPlay to another frame of your choice, here.
}
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|