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

Unloading and loading movies within movies

Status
Not open for further replies.

mechro99

Programmer
Nov 27, 2001
54
US
Hi, I've been using flash for a while, but never had a need for this function before. I'm trying to create a movie with an interface resembling a vintage radio.

I need to have a set of buttons, each loading a different movie (which will consist of only audio), and also unload the movie that previously was playing. The desired effect is to resemble switching channels on the radio.

Is this difficult to do?
 
very easy to do

create an empty movie clip, F8, position it on the stage, give it an instance name and you are set

on the buttons

on release(){
loadmovie("my.swf",instance name of clip);
}

when you click another button to load another swf the file already there is automatically removed
 
second thought

if the buttons are just loading audio files then no need for other swf's

just add to the buttons

on release(){
mySound = new Sound();
mySound.loadSound(" to file.mp3", true);
mySound.start();
}
true sets the sound file to streaming
 
If I do it that way, will it call up a media player device?
I don't want that to happen.
 
I can't seem to find the "load sound" command in Flash 5. Is it a new feature? I tried copying and pasting your code, but I'm getting errors.
 
yes that method is for mx

i'm not sure what, if any, the equivelent is in flash 5

you may have to go back to loading swf unless you can find how 5 handles sound or maybe someone else knows the answer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top