Article

Home » Design and Layout » Flash Tutorials » Flash Script - Fading Text Effect

About the Author

SitePoint

View all articles by SitePoint...

Flash Script - Fading Text Effect

By SitePoint

July 24th, 2003

Reader Rating: 7.5

Download the sample files here, then follow these steps to create this great effect...

1. Create any text of your choice, and convert the text to a movie clip.

2. Right click the movie clip, and insert these actions:

onClipEvent (load)
{
this._alpha = 20;
}
onClipEvent (enterFrame)
{
ax = Math.abs(this._x-_root._xmouse);
ay = Math.abs(this._y-_root._ymouse);
incr = Math.max(ax, ay);
if (incr<=80)
{
this._alpha = 100-incr;
} else {
this._alpha = 20;
}
}

3. Copy this movie clip.

That's all you need to do! Play the movie, and move the mouse over the text to see the effect at work.

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Rate This Article

  • 1
    Poor
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
    Great

Comment on This Article

Have something to say?

Post A Comment

You need to be a member of the SitePoint Forums to comment on this post. Sign Up

Already a member? Post using your SitePoint Forums account: