* I am wondering*

Out of context: Reply #3

  • Started
  • Last post
  • 6 Responses
  • 187LockDown0

    Very Nice..

    It's not as hard as you might think, but you have to know a good deal of actionscripting to be able to get that effect. When you roll over the buttons change from Month names to abbreviations all contracting in width to a specified value (width).

    The easign you see is just basically knowing how far you have to reduce the size to get to a desired width , taking that toatal dividing by a number getting a smaller number decrease that size on every onClipEvent EnterFrame.

    Also the button rolled over is doing the same thing in reverse, getting bigger. Each movieClip (button) has to be aware of where the other buttons edges are and resize accordingly to match up with the button next to it.

    Also there is probably more behind these buttons than the actionscript to get the elastic effect, you also have a piece of code that is probably dynamically displaying text from an xml file the buttons names themselves also are xml. Flash probaly finds todays date and the buttons reflect the specific month and surrounding months.

    Allot of work. I cannot think of where to start psuedo coding something like that?

View thread