Skip to main content
Known Participant
November 12, 2008
Question

advanced Animated buttons

  • November 12, 2008
  • 2 replies
  • 333 views
I'm trying to create some buttons that slide out to reveal the second level of navigation.
I have a btn in Flash called btn_1and a movieclip containing the animation for my rollover.

how can I get the movieclip to play when btn_1 is rolled over and then return to normal when the cursor rolls off?

If anyone knows of any tutorials
This topic has been closed for replies.

2 replies

Known Participant
November 13, 2008
I have inserted the code you gave me:
btn_1.on(rollOver) = function()
{
movieclip.play();
}

btn_1.on(rollOut) = function()
{
movieclip.gotoAndStop(1);
}

I'm getting four compiler errors now:

Expected a field name after '.' operator.
Ned Murphy
Legend
November 13, 2008
btn_1.onRollOver = function()
{
movieclip.play();
}

btn_1.onRollOut = function()
{
movieclip.gotoAndStop(1);
}