04-10-2003, 11:56 AM
|
#1
|
|
Registered User
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
|
sound event complete now play
I need to find control between sounds and movies. I have not worked with sounds before and now I have to. I have been reading other posts but don't understand the functions. I have a movieclip place the sound inside it. I have my main scene1 animation. Now I need to place the sound on the first frame, stopping the animation until that sound clip is finished. Then continue the animation.
Please help me, I really need to understand this. I know it is hard to believe, but I have been using flash for over 2 years in some pretty complicated animations, but have never used sound! No beeps, plunks, or whistles, so I am humbled and hope you will have pity on me!
|
|
|
04-10-2003, 12:04 PM
|
#2
|
|
flashing vampire
Join Date: Dec 2001
Location: nowhere
Posts: 1,406
|
Re: sound event complete now play
Quote:
Originally posted by zorn01
I need to find control between sounds and movies. I have not worked with sounds before and now I have to. I have been reading other posts but don't understand the functions. I have a movieclip place the sound inside it. I have my main scene1 animation. Now I need to place the sound on the first frame, stopping the animation until that sound clip is finished. Then continue the animation.
Please help me, I really need to understand this. I know it is hard to believe, but I have been using flash for over 2 years in some pretty complicated animations, but have never used sound! No beeps, plunks, or whistles, so I am humbled and hope you will have pity on me!
|
it seems much urgent.  actually the simpliest way to do this to drag the loaded sound into frames directly and set it stream, then it will play if there are enough frames and stop if it reaches the very end frame.
hope this helps~
__________________
Never end on learning~
|
|
|
04-10-2003, 12:19 PM
|
#3
|
|
Addicted To FLASH
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
|
this code is for MX
ActionScript Code:
//first frame
stop()
mySound = new Sound()
mySound.attachSound("koko")
mySound.start()
mySound.onSoundComplete = function(){
play()
}
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
|
|
|
04-10-2003, 12:21 PM
|
#4
|
|
Registered User
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
|
I thought about it later and figured I should have said that I know how to add frames and then extend the movie to fit. But the truth is that the sound file is 205 frames, and I was trying to learn a smoother way to handle sounds. I would like to try to learn something new and increase my knowledge on better ways to do things. If I add frames to accomodate the sound my movie will be over 500 frames long and it just seemed like there might be a better way.
I sure do appreciate your quick response and help.
|
|
|
04-10-2003, 12:29 PM
|
#5
|
|
Registered User
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
|
farafiro , this seems like the code I need. I put it on the first frame of my animation and replaced "koko" with the name of my soundclip movie "soundclip" but it did not play. So tried the original name of 21.wav for the name of the sound file, but it did not work either. Any suggestions on what I'm doing wrong?  Also I have to render this out as Flash5, but am using Flash MX.
Last edited by zorn01; 04-10-2003 at 12:32 PM.
|
|
|
04-10-2003, 12:41 PM
|
#6
|
|
Addicted To FLASH
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
|
zorn, this code would work only for MX
also, for the sound, koko, is the linkage name of the sound, u know how to do that, don't u??
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
|
|
|
04-10-2003, 12:45 PM
|
#7
|
|
Registered User
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
|
no I am not sure what the "linkage of the sound" is? If I use this code and render the movie out as Flash 5 it won't work? If it won'dt work as Flash 5 it won't do me any good, but I would still like to use the code you are offering, just to learn.
|
|
|
04-10-2003, 12:53 PM
|
#8
|
|
Addicted To FLASH
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
|
it won't work for the onSoundComplete() function, also the linkage:
from the library, chose the sound, right click, likage, right a name
if for flash 5, I guess u should stick to sound frames in a mc
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 06:17 AM.
///
|
|