Flash Training: Blurring an Image

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash - Blurring a Picture

 

Free Flash Tutorial


Step 6    <<   Previous      Intro   1   2   3   4   5   6   7     Next   >>       >>   Webwasp Mates

 

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

  1. Select the invisible button by clicking on it: Button
  2. Open the Actions Panel and type the following code:

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.
}

         

Step 6    <<   Previous      Intro   1   2   3   4   5   6   7     Next   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 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.