LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2006, 12:19 AM
krang krang is offline
Registered User
 
Join Date: Oct 2006
Posts: 1
Rep Power: 0
krang is on a distinguished road
How to attach Sound

hi, i'm new here...

i'm creating a photography site and one section is a photo gallery... i figured it would be a good idea to have a series of thumbnails, and when you roll over them, they animate like a camera shutter and make a Nikon camera shutter sound that was in sync with the animation... just so you have a vague idea of what i'm trying to do...

i put the sound within the shutterAnim_mc's timeline... the problem is that the sound will not play until the animation is done(the animation being within the same timeline), i even tried putting the animation later than the sound in the timeline, but that didn't work...

the code i used for that method looked something like this:
Actionscript:
someButton.onRollOver = function()
{
     shutterAnim_mc.gotoAndPlay("over") //shutterAnim has one label over
}
//the animation works fine, just the sound happens too late

i have also tried the attachSound method but that has not worked for me... using this method i cannot even get my sound to play...
Actionscript:
var Nikon: Sound = new Sound();
Nikon.attachSound(idname ="Nikon.wav");
//then calling it within the someButton.onRollOver = function() {
Nikon.start();
//i have also tried putting the camera shutter sound within it's own movie clip, just in case movie clips don't like to play sound AND animations... but that didn't work....

can somebody help me to figure out what the best method is to attach a sound to an event and be able to somewhat control the time when the sound will start? thanks!

Last edited by [PAUL FERRIE] : 10-13-2006 at 06:39 AM
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kenny Bellew Sound Object Tutorial jumpingJack Sound and Music 23 05-03-2011 07:37 AM
sound and loader problem maani786 Flash CS3 / Flash 9 0 12-11-2008 07:46 AM
Attach Sound Preloader Trouble FM Wannabe Sound and Music 2 03-15-2003 01:46 PM
My sound loops has silence at end...no good! Help pleeze. omkark Sound and Music 7 02-17-2003 09:54 AM
Sound starts over and over and over... yan Flash 5 Actionscript 1 06-26-2001 06:39 PM




All times are GMT. The time now is 05:25 AM.