Hi gang !
I am VERY new to Flash so please bear with me :puzzle:
I have been trying to add a sound (music) to an animated .gif file so the music only plays when the mouse cursor is over the file. When I right click on the .Gif to edit …the only edit option in the drop down box is " edit with ois " .I don’t see where to add the keyframes to start the sounds.
I can add the music to the file in a sound layer but it plays as soon as the .Gif is opened. What am I doing wrong?
I suggest you make the gif into a movie clip symbol. Then create a sound object with the corresponding sound linkage file. So that when a “onRollOver” events occurs on the movieclip (gif) you then play the sound.
Do you see what I mean?
I forgot to add …Also how do I get the music to stop once the mouse cursor moves off the button so to speak. I have been playing with the “Adding The Sound” tutorial and have got the sound to play when the cursor moves over the button but I cant for the life of me figure out how to get it to stop when the cursor moves away.
I’ll give it a shot Michael . Thanks!
I forgot to add …Also how do I get the music to stop once the mouse cursor moves off the button so to speak. I have been playing with the “Adding The Sound” tutorial and have got the sound to play when the cursor moves over the button but I cant for the life of me figure out how to get it to stop when the cursor moves away.
Also include an “onRollOut” event. For example something along these lines
gifName.onRollOver = function() {
musicObject.start();
}
gifName.onRollOut = function() {
musicObject.stop();
}
I don’t know why but I am not getting keyframes labled down, ect…even after changing the gif to a movie symbol.:puzzle:
OK, Scandalous, just a n00b mistake. Put the code into the first frame. If you don’t see the timeline, click the text that says timeline near the top of the screen