troubleshooting Question

Expanding/Contracting Buttons on MouseOver/RollOut

Avatar of technicalcare
technicalcare asked on
Adobe FlashIllustration Software
9 Comments2 Solutions3379 ViewsLast Modified:
Hi,

I am creating a navigation menu in Flash in which my client wants an animation for the buttons on mouse over and on mouse roll out.  On mouse over, the button should grow taller, and on mouse roll out it should go back to the original size.  

The problem I'm running into is that I know how to create a movie and insert it into the "Over" tab of the button menu, but I cannot get the animation to slowly return to it's original dimensions.  Instead, it just snaps back to the starting shape abruptly, which is something I want to avoid.

I've tried coding for ScaleX and ScaleY, but I'm a novice at flash, especially the ActionScript part.  I also found the following code on this site, but am unaware of how to implement it.

on (rollOver) {
      this.gotoAndPlay("up");
}
on (rollOut) {
      this.gotoAndPlay("down");
}

In both cases, the button just flickers and does not grow as it should.  

Any help would be greatly appreciated, and while I await an answer I'll keep looking for new ways to get this working.    
ASKER CERTIFIED SOLUTION
Craybe

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros