Forum Moderators: open

Message Too Old, No Replies

on(rollOver) play movieclip

play animation on(rollOver)

         

rees18

7:01 pm on Mar 1, 2008 (gmt 0)

10+ Year Member



I have a number of buttons in the centre of my main screen. Upon a rollover I want a movieclip (located in the top right) to play from a specific scene, dependent on which button was rolled over.

Of course, when the mouse rolls out I want everything to reset to how it was before any rollovers happened.

At the moment I am playing about with passing variables from the main scene to the movieclip, but with no luck.
I hoped that the following would work; on(rollover) assigned to a specific button North America, aka 'nam'
//
on(rollOver) {

_global.continent_var = nam;
}
//
Then inside the movieclip I can use an if statement to determine which variable is loaded, so to speak. Then use a gotoAndPlay to go to a specific scene.

Any help would be greatly appreciated. Note: I am still somewhat a newbie with Flash.

p.s. I am using Flash CS3, ActionScript 2.0.
p.p.s. The buttons in the centre of the main scene are grouped.
Simon Rees