A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Really Hard To explain...

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    48

    Really Hard To explain...

    Im so sorry to bother you guys with this but is something that Im looking for quite a while.
    If you are so gentle to visit this template site
    http://www.hypertemplates.com/templates/11578.html you will see that everytime the person click (not the rollover effect) another button of the main menu (home and so on) the other goes back to the original state and doesnt matter in which button you are is going to be the same. How do you call this process? and how you could do it?

    I've been looking for the name of this effect and how to do it every where please be so kind to explain to me, at least the name of the effect.

    Thank you so much for your time and support.
    Regards.

    Sorry if my english sucks.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    FL, USA
    Posts
    442
    They're probably just tweens being played in movie clips. So if a user clicked on button 2, you'd want only buttons 1,3, and 4 to reset...
    Code:
    stop();
    button2.onRelease = function() {
    if(button1._currentframe != 1) button1.gotoAndPlay("fadeOut");
    if(button3._currentframe != 1) button3.gotoAndPlay("fadeOut");
    if(button4._currentframe != 1) button4.gotoAndPlay("fadeOut");
    }
    ...and so on for the other 3 button functions. You check the other buttons' _currentframe to make sure it isn't playing the "fade out" animation if it's already faded out.

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