Search tutorials
Adding the script
The script will manipulate the original photo's transparency. Go into the main timeline and place an instance of the 'assembled' movieclip. Keep the movieclip selected and go into the actions panel. Enter this script:
onClipEvent(load)
{
dir = 0;
speed = 6;
original._alpha = 0
this.onRollOver = function()
{
dir = 1;
}
this.onRollOut = function()
{
dir = -1;
}
useHandCursor = false;
}
onClipEvent(enterFrame)
{
temp = original._alpha + speed*dir;
original._alpha = Math.min(100,Math.max(temp,0));
}
| » Level Basic |
|
Added: 2004-07-27 Rating: 9 Votes: 85 |
| » Author |
| The author is the founder of 5 1/2 services, specializing in outsourcing services in Flash, actionscript and PHP. |
| » Download |
| Download the files used in this tutorial. |
| Download (356 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!