Disappearing Button
Description: Creating a button that fades out on mouse over
Author: John Bezanis
Added: January 29th 2007
Version: Flash 8
Total Views: 4216
Views in the Past 7 Days: 56

Select the Rectangle Button and draw a rectangle on the stage. Select the Selection Tool and single click the rectangle. Right-click Convert to Symbol. Set the type to button and the name to buttonbutton. Single-click the newly created button and insert the following code into the Actions tab:
- on(press){
- getURL("http://www.swfspot.com", "_self");
- }
- onClipEvent(enterFrame){
- if(this.hitTest(_level0._xmouse,_level0._ymouse)){
- if(this._alpha>0){
- this._alpha-=5;
- }
- }else{
- if(this._alpha<100){
- this._alpha+=5;
- }
- }
- }
Download Source File
Add a Question or Suggestion






