A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Our sample/scripts for all to use :)

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    91

    Ours sample/scripts for all to use :)

    As in this title. Here is my sample:

    Simple torch effekt

    And simple script, hm, moving back (or retreat, or withdrawing?) of animation.

    Code:
    //Paste this script to Mouse over:
    
    mc = element ("my_mc");
    mc.show();
    mc.play(); 
    mc.step = true; 
    mc.onEnterFrame = function() { 
          if (this._currentframe == this._totalframes) { 
             this.stop(); 
          }
       };
    
    //Paste this script to Mouse leave:
    
    mc = element ("my_mc");
    mc.step = false; 
    mc.onEnterFrame = function() { 
          if (this._currentframe == this._totalframes) { 
             this.stop(); 
          } 
          if (this.step == false) { 
             this.gotoAndStop(this._currentframe - 1); 
          } 
          if (this._currentframe == 1) { 
             delete this.onEnterFrame; 
          } 
       };
    Movie back(?) effekt

    With it that script You can make nice tree menu

    Simple tree menu

    Now is your turn
    Attached Files Attached Files
    Last edited by 3DH; 08-05-2007 at 08:11 PM.

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Mouse over & leave are nice.. I tried to create similar effect while ago for a gallery thumbnails,.. but failed as some mouse leave events somehow were missed and animation thus went nuts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center