IDE :: Get The Button To Stop Both Audio And Visual?

May 10, 2009

creating a button within a movie clip that will pause both the images (bmps) on the screen and the sound, which is being loaded by AS3.Here's the code for my sound.

Code:
//This assigns an abreviated name to the StorySongBook class which is inside the StorySongBook.mp3 properties.
var sbs:StorybookSong = new StorybookSong();[code].....

How do I assign this to a button on the stage though (event listener?) and get the button to stop both audio and visual?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: FLVPlayback Does Not Display Visual, Just Audio?

Oct 31, 2006

I'm working on a Flash Projector CDROM with around 10 FLVs. These FLVs are loaded dynamically into the SWF projector using actionscript from the CD. There are 10 buttons to load each movie into the same FLVPlayback instance.

However, when I click the button to view/load the FLV, sometimes the video does not display but the audio can be heard playing. Furthermore this is happenning erratically and on randomly. It seems to get worse as the CD has been playing for a longer period.

This sounds like an issue of Flash clogging the computer's memory. Is there a way to get around this without using a 3rd-party software like Jugglor? [URL]

View 2 Replies

ActionScript 2.0 :: FLVPlayback Does Not Display Visual Just Audio?

Dec 12, 2003

I'm working on a Flash Projector CDROM with around 10 FLVs. These FLVs are loaded dynamically into the SWF projector using actionscript from the CD. There are 10 buttons to load each movie into the same FLVPlayback instance.However, when I click the button to view/load the FLV, sometimes the video does not display but the audio can be heard playing. Furthermore this is happenning erratically and on randomly. It seems to get worse as the CD has been playing for a longer period.This sounds like an issue of Flash clogging the computer's memory. Is there a way to get around this without using a 3rd-party software like Jugglor?

View 1 Replies

ActionScript 2.0 :: MP3 Streaming Player - Audio Buffering Visual?

Nov 28, 2009

I have written a little MP3 streaming player. Nothing big. But on some file, it takes longer to fill enough of the buffer before starting to play. My construct is fairly simple...

var player:Sound = new Sound();
player.onLoad = function(success:Boolean):Void {
if (success) {
// do something;
}}
player.loadSound(musicURL,true);

Since I have specified streaming, this will auto play as soon as the buffer is full. What I'd like to do is play a little animation or something while the buffer is filling so the user won't think the player has hung.

View 9 Replies

Professional :: Stop Audio When Roll Off A Button?

Jan 13, 2011

I have a button that when the user rolls over it, it plays a 3 second piece of audiothat works fine.When the user rolls off though, the audio still plays, that, if the user rolls over the button several times you get multiple instances of the auduo until they all play out.

View 2 Replies

ActionScript 3.0 :: Stop Streaming Audio Using A Button?

Oct 9, 2009

Sometimes I get ahead of myself and have to stop and say how the hell did I do this before? I'm referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping from a btn. But how do I stop audio that is streaming inside a layer from a button ?

var my_sound:Sound = new Sound();
my_sound.load(new URLRequest("yoursoundfile.mp3"));
var my_channel:SoundChannel = new SoundChannel();

[Code]....

View 3 Replies

ActionScript 3.0 :: Video Component Audio Can't Stop When I Use Back Button

May 20, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play, I'm not an expert on as3.

I have tried a lot of code in the function below ( like "stopAll();" ) but nothing seems to work.

View 1 Replies

ActionScript 3.0 :: Audio Controls - Add Play/stop Music Button On The Page?

Jun 15, 2009

I am trying to add a music track to some of the pages of my flash website, I imported the mp3 file to the library and dragged it on the stage and it plays when I test it. I want to add play/stop music button on the page, I dragged buttons from the video components to use, but I have no idea where to start with the code??

View 1 Replies

Professional :: Link Audio To Button To Make It Play And Stop On Click?

Mar 2, 2010

I am trying to connect audio to the button so when I click on the button music it starts playing and when clicked again music stops.

View 5 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 Replies

ActionScript 3.0 :: Play / Stop Button - Current Audio File To Play The Next One

Feb 27, 2012

I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?

[Code]...

View 1 Replies

Visual Studio 2008 :: Write Flex 3 Code In Visual Studio?

Jun 26, 2009

how to build and compile flex 3 projects in visual studio? I prefer that environment to Flex Builder 3.

View 2 Replies

Visual Studio :: Cannot Compile Flash With Amethyst IDE For Visual Studio 2010?

Sep 19, 2010

I create their basic Flash app with their Flash IDE for Visual Studio 2010 http:[url]....When launching the run button, it launch flash but with this error within Flash CS4: The following JavaScript error(s) occurred:

t line 6 of file "FlashApplication1.jsfl": Cannot find file file:///C:/temp/FlashApplication1/FlashApplication1/FlashApplication1.as.

View 1 Replies

Audio Won't Stop When Previewing?

Jun 24, 2009

So, I have a 3 minute mp3 file on my stage; the idea is to provide background music for my animation. So I go to preview the animation, and everything works fine, until I stop the preview. Then the audio keeps playing on and on. If I hit the preview again, obviously the music starts up again, and then won't stop, in a vicious circle of death that has me fleeing from the room.
 
To make it clear, I'm not previewing the audio file, I'm previewing the entire animation with the audio file on the stage. 

View 1 Replies

ActionScript 3.0 :: Audio Will Not Stop Playing?

Aug 3, 2009

I made a simple audio player following a tutorial on Youtube. It seems pretty good, except that the tutorial just starts and stops the sound file. I need it to be playing and for it to pause and resume.As it stands now, the music does play, but the pause button does nothing.Here is the script:

Code:
var loadSnd:URLRequest = new URLRequest("http://jeffreyworthington.com/intro_music.mp3");
var thisSnd:Sound = new Sound();

[code].....

View 6 Replies

ActionScript 3.0 :: Audio Keeps Repeating And Won't Stop

Dec 14, 2011

I have a .fla that plays music until a certain text object (start_course_txt_mc) is visible. Then I want the music to stop and the narration to begin. I can get all that to happen. The problem is that the narration keeps playing over and over, but it is only playing about 3-4 seconds of an audio file that is about 30 seconds long.

function unBlur()
{
var my_bf:BlurFilter = new BlurFilter(0,0,1);

[code]....

View 3 Replies

IDE :: How To Stop Flash Video Audio

Jul 6, 2009

I have a video on my site (progressive download, flv file, imported using flash cs3 video encoder) and I used the FLVPlayback component with a simple skin. The video works great, my only problem is that I want the sound to stop when I click on other buttons on the page. The way I designed the site (maybe not a great set up) everything is in one big swf file, so when you click on another button on the page to show another project, the sound from the video file (that is no longer showing) is still playing.URL...

View 10 Replies

ActionScript 3.0 :: Stop FLV Audio Playback On Navigation?

Jan 22, 2009

So my FLV videos play just fine, however when I click on any of the navigation buttons to visit another section of my website, the audio keeps on going. There must be some simple AS to stop the audio once a button is clicked. As it is now, the user has to stop the FLV video manually by clicking the stop button on the FLV playback component.

View 5 Replies

ActionScript 3.0 :: Video Audio Won't Stop Playing

Jul 8, 2008

I'm trying to build a simple portfolio website, which displays images and videos. I imported a video, and got it to play when a certain button is pressed. But when I press another button (to go look at an image, for example) the video's audio keeps playing. How do I make the audio stop whenever another button is pressed?

View 2 Replies

Make Audio To Stop Playing Soon After Loading?

Feb 25, 2010

I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...

View 1 Replies

ActionScript 3.0 :: Audio From Flv Player Won't Stop Playing?

Nov 17, 2010

I have a swf loading in another swf that has a video player in it. When I remove the swf from the stage, the swf goes away but the audio from the swf keeps playing. Is there a way to tell that swf to stop playing from the parent swf?

View 7 Replies

Flash AS3 Audio Player Seems To Just Stop Working

Nov 16, 2011

So far my code stops the sound but once it has stopped the sound no longer works. I don't see any errors reported. It is as if the event listener no longer listens...
stop();
var soundClip:Sound = new Sound();
var sndChannel:SoundChannel = new SoundChannel();
var soundClipCompleted = false;
var isPlaying = false;
soundClip.load(new URLRequest("tune.mp3"));
[Code] .....

View 2 Replies

ActionScript 3.0 :: Stop Audio Embedded In Timeline?

Aug 10, 2010

I've been given FLAs that contain audio embedded within the timeline. It's been a long while since I've had to deal with audio in this manner and I'm running into a problem.

The basic setup is this:

- There are 3 movie clips within the FLA

- Each movie clip contains embedded audio within the timeline

- The audio plays as soon as each movie clip begins

Here's my issue:

On the main timeline, there is a 'back' button which allows the user to move to the previous movie clip.

When the user clicks this button, it does move back to the previous movie clip; however, the sound does not stop which results in 2 audio files playing at the same time.

If I were calling the sound utilizing SoundMixer/SoundChannel, I know how to ensure the audio stops, but since the audio is embedded within the timeline, I'm not quite sure the best way to make sure the audio stops when the preceding movie clip is called.

View 5 Replies

ActionScript 2.0 :: Cannot Stop Audio On Empty MovieClip

Oct 22, 2010

I am using some code I found through a web search to play a YouTube video inside an empty MC:
this.createEmptyMovieClip("video_mc", 12);
this.video_mc.loadMovie("[URL]");
video_mc._x=50;
video_mc._y=280;

Problem is, I can't seem to get it to stop playing. I can have tried:
video_mc.removeMovieClip();
And it removes the video on the screen but the audio from it keeps playing and won't stop. Check it out here: [URL]
Click on VIDEO, start the video playing and then click on one of the other menu options and you will see what is happening.

View 9 Replies

ActionScript 3.0 :: Stop Embedded Audio From Playing?

Jun 27, 2011

I have a section of a site that has a voice over when you get to a page. I have a play/pause button that works fine, and plays and pauses the audio voice over. I have about 9 other buttons on this page that all have 'SoundMixer.stopAll();' in order to stop the embedded audio. This works the first time you click a button, but any button after that restarts the embedded audio.

Is there a way to make it so that Flash knows not to restart the embedded audio?

Do I need to make a sound variable and set it to 'false'. I am not sure what to do, or how to do it.

View 8 Replies

Actionscript 3.0 :: Video Component Audio Won't Stop

Jul 27, 2009

I have a video component play on frame 1. When my movie goes to frame 2, the audio continues to play even though the video component is no longer on the stage.

View 14 Replies

ActionScript 2.0 :: Sound Object - Specifying Only Certain Audio To Stop

Nov 14, 2005

I am creating a flash project which contains video on a few pages. The project also contains background music which loops continuously. The goal is to have the background music stop whenever the user is on a page containing video and for the music to play again when the user leaves said page. The script I created works to stop the music, but it also stops the audio contained within the video and causes the video player (by proxxus) to lock up.

Here's the setup:
Library:
music.wav - linkage = "myMusic01"

Main Timeline:
Code:
//-- create a variable to determine if the current movie contains video
var currMovie:String = "notVideo";
//-- start playing sound object
myMusicMc.myMusic.start(0, 999);
[Code] .....

On the actions layer of the movie clip containing my navigation controls snippet of the callback used
Code:
videoLink_mc.onRelease = function() {
_parent.prodDetail_mc.gotoAndPlay("video");
_root.currMovie="Video";
}
on all the other buttons currMovie is set to "notVideo".

View 12 Replies

ActionScript 3.0 :: Command To Stop Audio In Swf Video On The Stage?

May 28, 2009

I've inserted a flv video ( from Import to stage)  on the 1st fotogram( my homepage), and then I've extended it for 24 fotograms( because I set at the beginning 1 second = 25fps).If I play the video (with the play button of the "flash prebuilt player") without stop it and I'll surf toward another page the sound still playing, how can I fix? I mean I'm in the homepage, I start the video with the play button on the "flash prebuilt player" and if I don't stop the video and I surf towards another page the video disappear but the audio is still playing on the background. Which command ? I've try with stopAllSound(); on the fotogram 25 but it doesn't work and the audio is still playing.

View 1 Replies

Stop Video Audio When Clicking On New Page Of Site

Aug 5, 2009

The situation is I have a number of pages with a single movie clip on each, however once the movie is playing and you click the home or contact buttons for example, it will go to the correct page but the movies sound keep playing in the background. So I've got a code, but I just get an error sayign tanmovstop() does not have a body. I'm very new to action script so am very lost! I'll be extremely grateful. The code on the sites main buttons is as follows, with tanmov being the movie whos sound I want to stop:

[Code]....

View 1 Replies

ActionScript 1/2 :: Stop Attached FLV Audio When Leaving Frame?

Mar 11, 2010

I have an embedded video object in a single frame. A script attaches an external FLV file which plays upon entering the frame. When I leave the frame to go to other parts of the movie, the music from the attached FLV continues. How can I stop the audio when I leave the frame?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved