Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Unload Movie But Sound Keeps Playing



hey,

i have a main swf and in it i have actionscript on the first frame to load and external swf into a mc. the external swf (Intro.swf) plays and on the last frame of the file i have it set to unloadMovie() and return to the main movie and start at the frame labels "start". everything works great but the sound from the Intro.swf plays which i don't understand because it should be unloaded. i tried a stopAllSounds() but it didn't work. the intro contains three layers 1: imported quicktime animation, 2: intro song, 3: actions layer... guess what that's fer?!

here's my code


Code:
stop();
stopAllSounds();
this.unloadMovie();
_level0.gotoAndPlay("start");
thanks
kurt



FlashKit > Flash Help > Flash MX
Posted on: 08-03-2005, 12:13 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

UnLoad A FLV Sound Wont Stop Playing
I have a swf that loads into _level 1 of another swf (_level0). The swf loads an FLV in, using the Flash 6 and 7MediaDisplay, and exporting to Flash Player 7.

When I click button, that loads another swf into the same level (_level1) . The FLV unloads along with the swf, but the sound from the FLV keeps playing . . .Is there code to "unLoad and FLV" or something like that ?

Thanks.

Playing A Movie On UnLoad
Hey,

I want to be able to have a site where each button loads a movie, but when you press another button it unloads the movie then loads the other movie. How do I get the movie that is already loaded to play through to the end before loading the new movie.

For example I would like a bar to move to a different place for each page, but I would like the bar to return to a central position first before the next movie loads, is this possible and how do I do it?

Also (sorry long question) is there a way of moving a movie clip to a specified location using the x and y co-ordinates but getting it to tween to a space, this is the only other way I can think of creating the effect I am after.

Thank you very much for your help.

-turner2000

I Would Like A Movie To Unload Itself After Playing
hi all

I have used the following script to load a movie

but.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("scene_1.swf", "container");
container._x = 150 ;
container._y = 20 ;
}

this works great, but now when the movie scene_1.swf is finished playing I would like the movie to unload automatically and return to the mainstage continue playing the scene

is this possible?

thanks in advance
toddot

How To Have A Movie Unload Automatically When It Is Done Playing
hi all

I have used the following script to load a movie

but.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("scene_1.swf", "container");
container._x = 150 ;
container._y = 20 ;
}

this works great, but now when the movie scene_1.swf is finished playing I would like the movie to unload automatically and return to the mainstage and continue the scene on the mainstage

is this possible?

thanks in advance
toddot

How To Have A Movie Unload Automatically When It Is Done Playing
hi all

I have used the following script to load a movie

but.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("scene_1.swf", "container");
container._x = 150 ;
container._y = 20 ;
}

this works great, but now when the movie scene_1.swf is finished playing I would like the movie to unload automatically and return to the mainstage and continue the scene on the mainstage

is this possible?

thanks in advance
toddot

Help To Auto Unload A Movie Clip That Is Playing An Flv.
I'm looking for help to unload a movie clip automatically after the flv file in the clip is finished playing. I'm just using "loadMovie" to start the clip. The clip that contains the flv(Paul.swf) uses the flv playback component. I can unload the clip with a button but I need it to unload on its own upon completion of the flv if possible.

stop();
loadMovie("Paul.swf", mcPaul);

btnStopMovie.onRelease = function() {
mcPaul.unloadMovie("Paul.swf", mcPaul)
}

Any advice will be greatly appreciated.

Unload Movie After Movie Stop Playing
Is there a way to unload a loaded swf in level 15 immediatly after the timeline ends playing in specific loaded swf ?? Also is there a way to trigger an action from _level 0 after the loaded movie has reached a certain frame with _currentFrame._level15 ??

Thanks.

Urgent Help Movie Unloads(mp3 Player) But Sound Won't Unload- Xml Based
this is for my final project and it was due yesterday !!
I am using an mp3 player (xml) and it works GREAT! I load a swf in a container clip and it is excellent!
Problem -
"if " the mp3 is "playing" when the movie gets unloaded(by pressing a site button to go to a different area on the site)-it continues playing with no player and no way to stop the sound.
I have tried everything.
I have tried to target the player and callback function that is used to "stop music" but it doesn't work.
I did set the player mc 's linkage set for export-

Maybe I need help targeting the loaded swf.
I have it loading it in a mc container named "soundloadermc".
unloadMovie("soundloaderclip");WORKS
When I unload the container it actually unloads the mc fine.

BUT THE SOUND WON'T stop!!
in the loaded swf (mp3 player's actions) -in the mp3 player fla are 3 things at start of script defines sound object:

music = new Sound(this);
trkInfo = new Date();
playing = false;
paused = false;
loading = true;
so I tried to TARGET the swf from my main timeline and set the playing to false
tried- music.stop();
---no luck at all--
does xml have anything to do with it?

Please help anyone !!
I have to turn this in asap !!
Thanks

When A Sound Stops Playing So It Can Start Playing Another Sound :Monitoring Playback
I'm attempting to do a very simple thing and I'm very perplexed. My girlfriend is an opera singer and all I'm trying to do is advance the audio track when the song finishes playing to go to the next frame. On the surface it seems easy, however I can't seem to figure it out. Perhaps you can help?

Check out the movie here: http://www.earthgrid.com/earthgrid/valentina.html


Here's my code its on frame 2 in the movie



Code:
stopallsounds();
s2.close();
s3.close();
var s1:Sound = new Sound();
s1.loadSound("Agnus_Dei.mp3", true);
s1.start();
stop();
Explanation:: the flash movie has buttons that allow you to navigate between the 3 different music tracks.

when you click on a button, first I close the loading of the previous track, ie. s2 and s3, if they are still loading.

What I'd like to do is insert a command that advances to the next track (which happens to be on the following frame, 3) ONLY when the first audio track is finished PLAYING, not finished 'loading'

something like:
s.addEventListener(Event.SOUND_COMPLETE, gotoandplay (3);
);

so that when Agnus Dei finishes playing it goes to the next frame which starts the next track.

but that' doesn't seem to work.

I found this URL in Adobe's support site:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000283.ht ml

it says this:

Your application might want to know when a sound stops playing so it can start playing another sound, or clean up some resources used during the previous playback. The SoundChannel class dispatches an Event.SOUND_COMPLETE event when its sound finishes playing. Your application can listen for this event and take appropriate action, as shown below:


Code:
import flash.events.Event;
import flash.media.Sound;
import flash.net.URLRequest;

var snd:Sound = new Sound("smallSound.mp3");
var channel:SoundChannel = snd.play();
s.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);

public function onPlaybackComplete(event:Event)
{
trace("The sound has finished playing.");
}
>> However, when I try to paste in this code into a frame in Flash CS3 it gives an error saying I have to put it in a 'package'
I tried that, putting this code into a file and saving it as a .as file


I really don't get how to do this Package thing in CS3, so I couldnt get the example to work.

If so please contact me Please help!

Playing Sound When Movie First Loads
i have a small mp3 player, that loads an external movie via LoadMovie, the path to the file is changable via a text file, which is loaded into variables via LoadVariable

i have the LoadVariables in a new layer called Actions

i tried putting the loadmovie after the loadvariables, but it doesn't seem to work..

i was wondering if anyone knows how i can get it to play the movie when it first starts


loadVariablesNum ("data.txt", 0); is the line in the actions layer for the variables

loadMovieNum (songpath, 1); loads it into level 1

whats wrong? im new to flash :P

Sound Clips Playing When Movie Loads?
Hi,

For some reason, when I load four movie clips using loadMovie() and then use tellTarget to play a specific one, the first sound clip of each seperate file is played as the movie starts. So basically, the expected movie plays, just with 3 other sound clips playing in the background.

Does anyone know why this happens? Its driving me frickin nuts!!

Thank you very much for easing my mental anguish =)

John

No Sound When Playing Flash Movie From Website
Hi,

I have a webpage with a flash movie embedded in it. The movie runs fine but no sound is being played, and it can't seem to find the sound files. I know the sound files are in the right place because I can play the movie using the flash player from the directory where the webpage resides. I am calling the flash movie with this:

<OBJECT id="Processing" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="600" width="600" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
<PARAM NAME="_cx" VALUE="21167">
<PARAM NAME="_cy" VALUE="15875">
<PARAM NAME="FlashVars" VALUE="21167">
<PARAM NAME="Movie" VALUE="VH_1to1F.swf">
<PARAM NAME="Src" VALUE="VH_1to1F.swf">
<PARAM NAME="WMode" VALUE="Window">
<!--<PARAM NAME="Play" VALUE="-1">-->
<!--<PARAM NAME="Loop" VALUE="-1">-->
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="always">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<EMBED src="VH_1to1F.swf" WIDTH="500" HEIGHT="600" ALIGN="">
</EMBED>

Any suggestions?

Thanks,

Chris

Disabling Backgroun Sound While Playing A Movie
Hi, sorry if this has been asked before but I didn't find anything with the search function.

I have a flash website that plays a background sound on the home page. I would like to be able to disable the sound when the user clicks a button to start a movie then re-enable the sound when the movie finishes playing, but I'm not quite sure how and any help would be appreciated. Thanks.

Sound Playing / Load Movie Question
Hi,

I created a simple sound player as .fla called Music.swf

In the library I had my track I wanted to play - had named the linkage of it "track", & added start and stop buttons. The code was similar to this:


ActionScript Code:
song = new Sound();song.attachSound("track");song.start();


And the buttons were basically just song.stop() and song.start().

Now when I published it worked fine, the music stopped and started as I wished with no problems.

However I then tried to load this movie (Music.swf) into another .swf both on a dif layer and into a movie clip the music didn't play either time, nor did the buttons work.

Why is this?

PS. (I found away round this problem, but I would like to know anyway )

Sound Pauses Wen You Stop The Movie, And Doesnt Keep Playing?
Ive seen in other flash movies that if you you pause it, the sound also stops, but whenever I do it the sound still plays. If you insert it in actionscript will that work? And if so, how do you do it?
Thanks In Advance

Unload A Swf When Done Playing
Hi,
I am building a flash movie that acts as a launcher for several swf's that a friend built. The swf's were exported from captivate and I cannot edit them. I currently have my navigation movie working great and I can launch the swf's by using the loadmovie object.

The issue is the main navigation movie I am loading the others into has an animation loop I would like to be able to return to when a swf is over. I would like to be able to unload the swf's when they are done playing so I can return to an animation loop in the navigation movie until the user clicks to open the next movie.

Is there a way in action script to figure out when a loaded swf is done and then unload it?

Here is the code I am using to load the swf's

ActionScript Code:
on (release) {
    loadMovie ("PIC_MP2.swf", "holder");
}

Thanks in advance

Unload Movies While Playing....HELP
I'm in dire need of some assistance here ...

attached is the file I'm using.. now I'm loading my movies in the empty movieclips located at the top left of the screen...

What I hope to achieve is not to 'harshly' unload the movies but have them unload while playing and 'ending sequence' so to speak ..

I hope I make sense ... anyone help?

thanks!

Finish Playing Mc Then Unload Swf
Hi I'm new (as if you can't tell by my post)

I've searched numerous threads and can't seem to find the answer. I've created an intro mc (images fading in). It stops on frame 30. I've created buttons with functions that will load other swfs. The problem is that they won't play the remainder of the mc (images fading out - frames 31 to 60) and then unload the swf. It just dumps the swf.

on (release) {
_root.mcname_mc.gotoAndPlay("31");
unloadMovie("movie1.swf");
loadMovie("movie2.swf", 0);
}

Any help would be appreciated.Thanks!

Media Component Keeps Playing On Unload?
Hey,

Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.

I am loading the video into a new level, using this on the button:

code:
on (release) {
// unload anything in gallery
unloadMovieNum(2);

// load new movies
loadMovie("interview_play.swf", 2);
}


Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.

code:
unloadMovieNum(2);


Now, this remove the interview from being seen, but the audio keeps playing!

I thought I could just stop the sound but this doesn't do anything:

code:
_level2.stopAllSounds();


What's going on? How can I completely remove this video interview?

Cheers,
Chris

Media Component Keeps Playing On Unload?
Hey,

Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.

I am loading the video into a new level, using this on the button:


ActionScript Code:
on (release) {     // unload anything in gallery     unloadMovieNum(2);          // load new movies     loadMovie("interview_play.swf", 2); }


Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.


ActionScript Code:
unloadMovieNum(2);


Now, this remove the interview from being seen, but the audio keeps playing!

I thought I could just stop the sound but this doesn't do anything:


ActionScript Code:
_level2.stopAllSounds();


What's going on? How can I completely remove this video interview?

Cheers,
Chris

Media Component Keeps Playing On Unload?
Hey,

Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.

I am loading the video into a new level, using this on the button:


ActionScript Code:
on (release) {     // unload anything in gallery     unloadMovieNum(2);          // load new movies     loadMovie("interview_play.swf", 2); }


Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.


ActionScript Code:
unloadMovieNum(2);


Now, this remove the interview from being seen, but the audio keeps playing!

I thought I could just stop the sound but this doesn't do anything:


ActionScript Code:
_level2.stopAllSounds();


What's going on? How can I completely remove this video interview?

Cheers,
Chris

Media Component Keeps Playing On Unload?
Hey,

Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.

I am loading the video into a new level, using this on the button:


Code:
on (release) {
// unload anything in gallery
unloadMovieNum(2);

// load new movies
loadMovie("interview_play.swf", 2);
}
Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.


Code:
unloadMovieNum(2);
Now, this remove the interview from being seen, but the audio keeps playing!

I thought I could just stop the sound but this doesn't do anything:


Code:
_level2.stopAllSounds();
What's going on? How can I completely remove this video interview?

Cheers,
Chris

Unload A Movie Clip Instance? Not Unload Movie
I'm new to this so probably doing it totally wrong, anyway....

I've go 4 buttons with 4 movie clip instances behind them. They are menu buttons eg About Us, contact Us, Products and Departments. When I click on "aboutus" it sets the mc "aboutus" playing which opens a tv screen graphic and then added the text for the profile of the company. This is fine. However, I now want to click on the "contactus" button which should unload or made the "aboutus" mc disappear and load the "contactus" tv screen and text contained in the "contactus" mc instance. Currently whenever I click on another button then just load on top of each other.

Any help appreciated.

Dynamically Unload An External .sfv File When Done Playing
Hello - I'm dynamically loading an external .sfv file into my flash movie, but would like it to unload once it's done playing. I can't find any documentation on this. Does anyone know the code? This is what I'm using to load the .sfv file:

// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status.text += "Status (NetStream)" + newline;
status.text += "Level: "+infoObject.level + newline;
status.text += "Code: "+infoObject.code + newline;
};
// Attach the NetStream video feed to the Video object:
my_video.attachVideo(netStream);
// Set the buffer time:
netStream.setBufferTime(5);
// Being playing the FLV file:
netStream.play("josh.flv");


I would also like to unload the .sfv file if someone clicks a "back" button. Any help would be greatly appreciated!

Thanks!

Flash Player Not Playing Not Playing Properly Low Bitrate Sound
Hi,
I have created a flash audio player which can play streaming audio (mp3) files and it takes data from external xml file. Everthing is working fine. But when i used a low bitrate mp3 file (size 600 kb, time 3min approx) , it plays the audio with max speed and get ended in 30 seconds. The same audio file is playing normally in windows media player, or winamp,etc.
Plese give me some idea what is happening ........
Thanks,
Gunjan

Flash Crashing Browsers On Unload While Playing Stream
I've set up the most basic test case while troubleshooting ongoing crash reports.

- drag FLVPlayer onto the stage
- add the following code to frame 1 so you can play in a bare FMS 3 server:
import fl.video.*;
VideoPlayer.iNCManagerClass = fl.video.NCManagerNative;
- set your path to any FLV file via RTMP to FMS3 (our is linux)

I can crash any browser just by repeatedly reloading the page with that movie in right as it loads. Eventually, with enough repetition, it will crash and take down the browser with a fault in "Flash_EnforceLocalSecurity". If you have video on every page of your site, you can see how this might become a bit of a problem...

Network latency will increase the frequency of crashes.

I've been chasing this for months in our own player (AS2). Finding the same thing with such a simple test case in a bare clip using the native AS3 component is really surprising.

How Do I Check To See If A Sound Is Already Playing Before Playing When Pressing Play
Okay, i really need some help on this. I have a play button where if clicked will play the sound over the top of it when its already playing, if that makes any sense. the sound is already called on the first frame. if the user clicks the play button again, it will play over it.

heres my play button code. i need to know what to add to add to make it check to see if the audio is already playing. My audio sound is named myMusc.

ActionScript Code:
on (press) {
if (playing != true) {
if (paused != true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(0, 999);
}
if (paused == true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(myMusicPosition, 0);
_root.myMusic.onSoundComplete = function() {
myMusic.start();
};
}
}
}
Thanks

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

Unload After Sound?
How can I have a Movie Clip Unload after the sound file is done playing?

I Used

_root.thirdSound.start();
playing = true;

to start the sound!
I want thew movie to unload and go back to the root timeline!

Thanks
Coccinelle

Unload After Sound?
I'm looking for the Action Script to unload the Movie Clip onced the sound is done playing!

Inside the MC I call on the sound using

firstSound = new Sound();
firstSound.attachSound("Madonna02");
_root.firstSound.start();
playing = true;

I just want the MC to Unload once it's done!!

Thanks in advance...

Unload Sound?
when using the function loadSound(), is there any way I can UNload that sound?
Thanks

Stoping And Playing Sound At A Particular Point (using Sound Object)
Hi,

I have a movie in which i have a voice over and some animations which is in sync with the VO. I have a play button and stop button.

I am using the sound object method to play the sound and the animations are in timeline.

I have to stop the movie at any point in time and when i click on play the sound should start from the point where it stopped..But it is not happening.

Please help me..

am having a deadline today..

lamus

How To Unload Sound From Memory
Dear Flash-gurus!

I need a command to unload the sound file from the memory. Can anyone help. I have made an internal mp3 player and I use the following script but after some time memory becomes overloaded. So I need a command to unload sounds which are not in the use (maybe delete command will help, but I don't know how to use it):

on (release) {
if (playing == undefined or playing == false) {
music = new Sound(this);
music.loadSound(tracks.firstChild.childNodes[2].attributes.path);
title = tracks.firstChild.childNodes[2].attributes.name;
if (pause == true) {
pausePos = ((slider.dragger._x/200)*music.duration)/1000;
music.start(pausePos, 0);
pause = false;
} else {
music.start(0, 0);
}
playing = true;
gotoAndPlay(2);
}
}


Thank you.

How Do You Unload A Non Targeted Sound?
Here is a problem, I can unload a targeted sound with no problem. But since I am puling video from another server - there is no real sound to target.

My problem is when I load a video and load another video - The sounds from both videos are over lapping.


Any help would be appreciated.

Load And Unload Background Sound
I have my bkgd music in a movieclip-I also created a button on the main movie to mute and unmute the sound, how do I get this to work?

I tried a script (stopallsounds)it works for a few seconds then the music starts up again??????

Unload Sound In Looping Animation
Hello.

I hope you can help.

I have created a movie that loops. The movie shows a foot tapping on the floor. The user of the site is supposed to be able to change the sound when the foot hits the floor.

I have attached two sounds, and I have created a button, that loads one sound into the movie. The sound, then, is triggered, when the movie reaches the keyframe, that contains the sound. So far so good. Now I want to make a button that stops the sound from being played, when the movie reaches this keyframe. I have tried a simple "stop sound" command, but the sound continues. The perfect solution would be if I could simply unload the sound, but this is not possible.

How should I do this ?

Perhaps I have done it all wrong from the beginning ?

Please help - I hope you understand what I am trying to do...

/Anders, Denmark

Mediacontroller Sound Doesn't Unload
hi,
i am working on a slide presentation, with audio commentary. There are several swf's each with a separate mp3, which i am playing with media controller. I am loading each swf file on a base swf. Problem is the sound of a particular swf doesn't stop even when it's swf is unloaded. So when the next file is loaded, two simultaneous audio tracks can be heard.

i tried putting stopallsounds on the button which loads the next swf, but it doesn't work either. and i could find only one person with the same problem on a thread, but without any solutions.

any help is welcome,
thanks,
kaa

FLVPlayback Component Sound Not Stopping With Unload()
I am loading in external .swfs, some of which contain their own FLVPlayback component and play .flv files. The problem occurs when I unload() the .swf - the sound does not stop and keeps playing, doubling up the sound if I load the same swf again...

Any suggestions?

Thanks,
Elliot

Check If Movie Clip Finish Playing Before Playing Next
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.

I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.

I know it's all done with variables but just cant figure out how to put it together.

here is what i have so far.

menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();

}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}

thanks for any help in advance

°°°keep The Sound From Playing If It Is Already Playing
Hi FlasherZ,

I add this code to my buttons but it didn't work - can you fix it. Do I have to define a variable "playing" in the first frame???

I read this tutorial, chapter "How to Start, Stop and Loop a Sound Object" and everything works fine but if I hit the on button I hear 2 sounds playing, if I hit the button again, I hear 3 sounds playing at the same time - U know what I mean, so I wanted to use the code in the tutorial with the variable "playing".

Here is the link to the tutorial:
http://www.kennybellew.com

I would appreciate some advices.

Omitofo-
Attila

Load Movie & Unload Movie With A Large Amount And Gotoplay(2)
working on a website and i stuck on a sort of problem. and i hope someone can give me an advise about it.
trying to explain this as clear as i can.

i have a bar where i want to load different movieclips in.
when i load one movie clip called for example: concert1.swf i want the other movie clip called concert2.swf gotoandplay(2).
these movieclips get loaded from hitarea's in a different part from the site.
these say:
tellTarget ("_root.frontmovieclip.concert1") {
gotoAndPlay(2);
}
if you select an other button it says :
tellTarget ("_root.frontmovieclip.concert1") {
gotoAndPlay(6);
}
tellTarget ("_root.frontmovieclip.concert2") {
gotoAndPlay(2);
}

this all will work fine. the problem is i have 42 concerts. so this would mean i would have to tell each hit area an entire list of 42 telltargets that would go play frame 6 or 2 if i want them in random order.

now i was thinking is there a way that if you press concert1 that it load that movie and tell anyother concert that is already there to go play 6.

so that i don't need 42 lines but only 2.
something like:
tellTarget ("_root.frontmovieclip.concert2") {
gotoAndPlay(2);
}
tellTarget ("_root.frontmovieclip.variableconcert") {
gotoAndPlay(6);
}
and that in concert2 it can say it should go to the variableconcert when it's done playing.

you can check what i mean at http://exuo.tripod.com/poging3.html (past concerts, deftones)

hopefully someone can give me some advise and if you need more info please ask.

Playing Out QT With Sound
Does anybody know if there is a way to play a QT with sound direct from Flash. I have a video that needs to sync exactly.
The playout is via hard drive/CD-ROM not the web. I was wondering if you can make a pop-up window that will execute the file?.
I'm Stumped!

Playing With Sound
I have 4 faders on a screen. each fader has a start and stop button. using the normal action script I can get 4 different files to play. PROBLEM the stop button on each fader will stop the music for any song even thought it is assigned to another, and any fader will change the music for any song. how do I get the fader to only control the song it is assigned to and to get the stop button to stop on the song it is assigned to? Thanks in advance

Playing A Sound?
hello,
im really stuck here, i'm designing a "phone/keypad" style navigation and i have used actionscript to make the user dial a certain extension, which is displayed in a box, to get to a certain page, and if they type in a wrong code, the box resets itself. BUT, i want to have a sound to play if the user enters a wrong code. the code i have used is below, PLEASE HELP.

on (release) {
switch (password) {
case "121" :
gotoAndPlay("contact", 1);
break;
case "122" :
gotoAndPlay("about", 1);
break;
default :
password = "";


I look foward to all your replies! i got a feeling this is gonna be easy, but i just cant see the wood for the trees!

Thanks
Yoda

Sound Not Playing
Hi-
I have a movie with three sounds: wind, rain and thunder. The rain is a movie clip with the sound embedded. The wind is just a sound on the main timeline. The lightning is a graphic with a keyframed thunder sound on the main timeline so they are both in sync. All sounds begin with "Event".

For whatever reason, the thunder does not play, even with a preloader. How would you best handle this?

I moved the thunder sound into the lightning movei clip and it seems to work fine. Why wouldn't it in the main timeline? Too many sounds?

Also, with the lightning clip, should the thunder sound be "stream" or "event". Help!! How would you best handle these sounds?

Thanks!!

-Rob

Sound Not Playing.
I created a sound movie with an mp3 file. The movie has a volume slider included in it. The file is named "bgsound.swf". I created this movie with this script:

s = new Sound();
s.attachSound("backsound");
s.start("0", 3);

When I test this movie, everything works fine.

My problem is when I load it into another movie, I can see "bgsound.swf" graphics, but I no longer have any sound. I loaded "bgsound.swf" onto the other movie trying each of these scripts:

loadMovieNum ("bgsound.swf", 1, "POST");
loadMovieNum ("bgmusic.swf", 1, "GET");
loadMovieNum ("bgmusic.swf", 1);

None of them worked. HELP!

I am using Flash MX.

Sound Not Playing HELP
i'm working on a flash site where i call an mp3 file using this script:

mySound = new Sound(this);
mySound.loadSound("http://..sample2.mp3", true);
mySound.start(0, 999);

this file works it is 256k i then change it to the song file which is 3.2mb and it won't play at all ... is it because of the size ?? anyway i can play this 3.2mb mp3 dynamically ???

Copyright © 2005-08 www.BigResource.com, All rights reserved