This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > July 2007 > MP3 Sound





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author MP3 Sound
metaphiz

2007-07-17, 6:16 pm

I've added mp3 sounds to my animation by placing them on the stage and
positioning them in the timeline. But they don't correspond exactly to events
in the animation and I need them to. How can you control more exactly when the
sound is played? I've got some objects 'dropping' down to a flat plane and I
need the sound to happen as soon as they 'strike' the plane.

crisbosch

2007-07-17, 10:15 pm

The best way to control sound is by creating sound objects via ActionScript:
sound = new Sound();
sound.attachSound("soundID");

Then you would call the sound every time an event takes place on the stage via
the start() command:
this.onRollOver = function() {
sound.start();
}

Hope this helps.



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews