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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load movie clips without playing?

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
I have a site that has music to listen to. I want to put in the first frame that these sound clips (external mcs) load but do not play. How do I do this?

Thanks all!
 
Just put a stop in the first frame...that's it

Have Fun...Sharky99 >:):O>
 
Right, I did that..but then the next problem occurs, the buttons that play the music will not go to the second frame...how do i do this? i put loadmovie, goto framex, but that just made the main movie change frames and and the mc in the 2nd frame was not activated.
 
I am actually getting a headache trying to figure out everything! This is not that difficult I know!

I just want, on a button being touched, that a certain mc, the second frame, plays! How on earth is this not possible? Nothing I am trying to do is working...

thanks for any help!
 
First... Are you talking of a movie clip or a loaded .swf on another level? Or even of a mc in a loaded movie on another level?

Second... If you do in fact have a stop action in the first frame, are you sure it's only on the first frame? In other words, do you have a blank keyframe on frame 2 and for the rest of the actions layer's lenght?

Normally you would simply use:

on (press){
_levelx.play(); // x being an integer... the level loaded
}

Regards,

wink4.gif
ldnewbie
 
The buttons are in an mc within the main movie. The sounds I am load are in separate .swf files.

Each of these sounds are very simple:

frame one: blank with stop()
frame two: music
frame three: blank with stop()

I have the first frame blank so that I can preload these sounds, so that they will be ready to hear when the user clicks on them.

 

...how do i do this? i put loadmovie, goto framex, but that just made the main movie change frames and and the mc in the 2nd frame was not activated.


If you used goto framex alone, it won't work! Only the main movie should move. You have, as I posted above, refer to the level you want to play:

If you've previously loaded the sound movie:

loadMovieNum ("sound1.swf", 5);

Then...

on (press){
_level5.gotoAndPlay(2);
}


Regards,
wink4.gif
ldnewbie
 
Thank you so so much for this help! I was pulling my hair out over this!

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top