Groups | Blog | Home
all groups > flash (macromedia) > february 2005 >

flash (macromedia) : Music keeps over lapping


coil
2/27/2005 8:30:37 PM
I have probably the simplest animation in the world on a web page where text
fades in from the right while music plays. The animation consist of 2 time
lines one for the text and the other for the music. Once the text is in
position there is a stop action in the last frame. Which in theory the music
should play over and over even though the action has stopped. What's happening
is that the swf file runs on the web but the music starts to play over itself.
This does not happen when i run it in the test environment. Yeah, yeah, i have
cleared my cash :-) I woudl like it to loop forever even though the animation
has stopped. Any idea why this is happening? I have never had this happen
before. Thanks! coil
pwiop
2/28/2005 1:05:12 AM
Id suggest you control the music loop using action script rather than dragging
the loop to the stage.
right click your sound in the library and select "export for actionscript" it
will then have an identifier name which you can choose to change if you wish

on the timeline wher you have the text animation type the following
var mySound = new Sound()
mySound.attachSound("soundName")
mySound.start(0, 9999)

typing 9999 means that the loop will repeat that many times before stopping

good luck
AddThis Social Bookmark Button