Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-10-2003, 11:56 AM   #1
zorn01
Registered User
 
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
Question 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!
zorn01 is offline   Reply With Quote
Old 04-10-2003, 12:04 PM   #2
black
flashing vampire
 
black's Avatar
 
Join Date: Dec 2001
Location: nowhere
Posts: 1,406
Default 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~
black is offline   Reply With Quote
Old 04-10-2003, 12:19 PM   #3
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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
farafiro is offline   Reply With Quote
Old 04-10-2003, 12:21 PM   #4
zorn01
Registered User
 
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
Default

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.
zorn01 is offline   Reply With Quote
Old 04-10-2003, 12:29 PM   #5
zorn01
Registered User
 
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
Default

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.
zorn01 is offline   Reply With Quote
Old 04-10-2003, 12:41 PM   #6
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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
farafiro is offline   Reply With Quote
Old 04-10-2003, 12:45 PM   #7
zorn01
Registered User
 
Join Date: Aug 2002
Location: Pensacola, FL
Posts: 5
Default

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.
zorn01 is offline   Reply With Quote
Old 04-10-2003, 12:53 PM   #8
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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
farafiro is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT. The time now is 10:29 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.