Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next sound Prob 3

Status
Not open for further replies.

Izzo

Technical User
Feb 22, 2001
38
US
Congrats Oldnewbie on your hard work.

I have a "Main" movie.
I have a "Sound" movie.

The sound movie is started via "loadMovieNum" from the main movie and it works great!
The "Main" movie has a preloader and it works!...but...
the sound movie needs a preloader also.
Actually..the main movie doesn't really need a preloader because the sound movie is bigger.
Since the sound is loaded via main where would I put the preloader?
Is it possible to preload the sound and then onload the main movie? or what?

..Izzo..


 
IZZO you've lost me here! Put me in context!
I'd say put the preloader on the head of your sound movie... But I could be out in the woods!
An url? Is this your same soundtest page?
Only sound in this whole thing? Is this only background sound?

As I say, bring me up on what's happenin'... I have other worries for the time being, can't keep but trackin' you!

B-) "Who's that guy with the shades... What's he trying to prove!”

 
IZZO...would it be possible for me to see an example of the script that you used to call your sound movie. I have a similar situation with a button that will turn the sound on and off. can this button be used to call the movie also. Please help me here as I am a bit frustrated after trying everthing I can think of and so far it is not working.

A star is waiting for my saviour.X-)

Anyone else with suggestions can also reply. Thanx in advance!
 
Come on guys! Try to explain a little more!

You're stuck with problems and have been coping with them for so long... It seems to me you forget that we ain't hanging around behind your shoulders on this, and although the way you explain things might seem clear to you, it's not allways clear for us... Or for me at least!

What's your final goal? Do you want to have background music looping while your movie is playing. Or is the sound movie the whole thing?

The way you're doings things now, you might get an good answer on a specific problem... But then again that answer may be totally off in regard to the total project!

Do you see what I'm getting at?

B-) "Who's that guy with the shades... What's he trying to prove!”

 
sorry oldnewbie....I will try to explain better...

yes I want this 3 minute mp3 to loop in the background while the user is using the site.

I simply want to call the sound movie from the main movie and have it stream in the background. I also want an on/off button.

I can successfully accomplish this feat when the sound is on the same movie as the main content and the on/off button works great but at times when using certain buttons and frames the movie gets all mixed up with the rest of the animation and starts playing double.

I figured I could put the sound on a separate movie and accomplish the same goal. However I am having a little trouble calling the movie and telling it which frame to go to.

With the help of you guys I am slowly starting to understand the way flash works but am still having a little trouble with the sound and being able to use a separate movie for it.

Hope that helps you understand my dilemma anyway.

 
Jeff,
I can help you with your prob.
Make a second movie save it as "sound.fla" (1 layer, 1 frame)and in frame 1 put your sound. That is all your sound movie will consist of.
Then in your main movie put a "loadMovieNum" action in a frame where you want the sound to start.
Then set the settings like this:
URL: sound.swf (make sure it is .swf)
Location: Level 1
Variables: Don't send

(I have Flash5, but I believe ver4 has the same basic settings)

Now make two buttons for the music on and off.
Assign a "onMouseEvent" and "LoadMovienum(1)" for the music ON button and assign a "onMouseEvent" and "unLoadMovieNum(1)" for the music STOP button.
That's it!
However 3 minutes is a long clip and like oldnewbie says, streamin sound doesn't work very well. Try an "event" sound and loop it say 900 times. You might want to cut your music clip up in a sound editing program.
-----------------------------------------------------------
That's the way I have my movie and it works like a charm...but... My problem is that the sound movie is bigger than the animated movie. I have a preloader on the animated movie which works great, but the sound arrives later because it needs more time to load.
I tried the preloader on the sound movie to load the sound completely..then start the animation movie. Again works great BUT...now there's a gap loading the animation.

I would like to completely load both movies before they start, so they start at the same time.

Oldnewbie...relax! I know you have alot to do and think about rather than follow us around remembering what we did and such. I am trying to present each question as a brand new problem which reqires no memory or history of previous questions.
I think what I need to do is get an intermediate Flash book and study some more.

..Izzo..

 
Izzo...

Have a look at these:

I've been trying to get at them myself, but to busy answering all of your questions.

Went quickly over the first 3, and this guy uses empty clips rather than levels... Guess you have to see it yourself.
This technique might be helpfull!

Got to go in town...
Will be back at day's end!

B-) "Who's that guy with the shades... What's he trying to prove!”
 
Thanks Izzo. I finally did get the sound movie to work very, very, late last night(or should I say Early this morning).

I gave you a star for your Advice.
 
If you're trying to load two movies and have them synch to play together just use a getbytesloaded preloader in both movies and variables sent between each to let the other movie know its ready to go. Then , when both have told each other they are ready, they'll move on in-synch.

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
interesting....
I will investigate this..sounds like that's the way to go. I will try that and post back to this thread for the benefit of other readers.
Thanks.

Izzo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top