ActionScript 2.0 :: Background Sound On And Off When Video Playing?

Jun 1, 2011

does anybody know how to stop background sound when clicking play button for a video and when the video is finish how to turn background sound again on?

View 1 Replies


Similar Posts:


Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

ActionScript 3.0 :: Sound Keeps On Playing In The Background?

Feb 16, 2012

I am developing a cd presentation for someone. It has audio, video, images, text embedded in it.Client doesn't want external data which can be easily accessed & copied. He wants all data should be in the exe itself.Now, when i embed video in it, sound keeps on playing in the background and even overlaps.I am attaching link to my .fla file.

View 9 Replies

ActionScript 3.0 :: Background Sound Not Playing In Embedded File

Jul 1, 2009

I've got a game I made just to play with AS3. But I'm having an issue with the sound. Playing the swf file will play the sound, but when embedded I hear nothing. The code for calling the sound:

Code:
import flash.media.SoundMixer;
SoundMixer.stopAll();
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;
[Code] .....

View 4 Replies

ActionScript 2.0 :: Playing Sound In Flash Site Background

Oct 10, 2002

How do I get a sound to play throughout the entire flash site in the background? Go to [URL] and you will see what I mean. Its a great site by the way! In this "crucial limit" site, he has tunes playing in the background, and they keep playing despite how deep you navigate through the site, no matter what button you press, the song continues to play without stopping. [URL]

View 2 Replies

ActionScript 3.0 :: Video Player Playing In Background?

Sep 15, 2011

I have a video player program, there is a list page and a player page, once you click on an item in the list it takes you to the player page and it loads the correct video from a streaming server for you, easy peasy When each item is picked it finds the corresponding item in an XML file and loads my video player source with the XML data url
 
function beginLoad():void {      this.addChild(videoPlayer)          videoPlayer.source = myXML.video[videoIndex].@url; }
 
(it has nothing to do with this function not happening on mouse event, this is only the part that happens when it loads)My issue is that if you are fast enough and click to return to the list page before the video has started playing, the video will play in the background, even though the code actually removes the video player child from the stage the code on the button to return to the list page is
 
function navToList(e:Event):void {      videoPlayer.stop();      videoPlayer.parent.removeChild(videoPlayer); }
 
there is more code in the button but none of it relates to the videoPlayer item why on earth it continues to play is beyond me, surely if there is no videoPlayer componen on the stage (and this is the only one) then the video has no ability to play whatsoever is there a specific command to tell the videoPlayer item to stop everything and just return to a blank state, do I set its 'source' to nothing?

View 1 Replies

ActionScript 2.0 :: Fullscreen Video Playing At The Background?

Oct 19, 2010

i have a fullscreen video playing at the background.


Code:
//makes loader visible on initial load
bufferClip._visible=true;
//create NetConnection for playing video

[Code]....

and upon clicking a button, i want to goto a frame and will need to remove the video from that background mc (or rather make the video stop or disable the background sound.)

View 1 Replies

ActionScript 2.0 :: Unloading The Video Player And Stopping It Playing In The Background

Jan 23, 2011

I'm using for my video player, it loads and plays fine and it stop playing music on the main template when loaded. I have actually two requests: First: How do I pause the video when the player is loaded ?

Second: When the player is unloaded from the main template using root.main_mc.close_btn the video still playing in the background and the close button (close_btn) pause and play the music player each time it is pressed and from the same position it was left last time.

View 1 Replies

ActionScript 3.0 :: FLV Sound Tweening While Video Still Playing

Nov 20, 2009

How to create a sound object from the audio of an flv so that the sound can be tweened using Tweener while the video is still playing. In short, need to find out how to fade sound in a playing flv.

View 1 Replies

ActionScript 3.0 :: Video Sound Keeps Playing Even When Loader Removed

Apr 23, 2009

It's a simple slideshow of thumnails which load images on thumb press. It is working perfectly with images, but now I have to load aswf with a flv component. Again the swf with the flv loads, but if I play the video and then hit another thumb to load a new image, the video swf disapears, but I can still hear the sound playing in the back ground! How do I remove the sound?

I have tried unloading by
Code:
pictLdr.unload();
But its not right.

This is not all the code but where it needs to be looked at, the
Code:
closePressHandler
Is the point where I need the sound to stop playing.

[Code] .....

View 1 Replies

ActionScript 2.0 :: Stop Audio Sound When Video Is Playing?

Jan 19, 2009

I want to stop my background music(audio) from playing when i click on a button which loads video[code]...

View 0 Replies

ActionScript 1/2 :: Fading Background Music - Video Sound Also Turned Off

Sep 20, 2010

I have a flash file with a background music sound object, and I have a video player at a particular section on the timeline. When the playback head goes to the section with the video player, I would like the background music to fade, but of course, I need the volume to be up for the video. The code I have works find to fade the audio, but the problem is that the video's sound also turns off.

This is the code at the beginning of the timeline:
_global.volumeVar = 40; //Stores the current volume.
bgSound = new Sound(this); //This block works finebgSound.attachSound("music");bgSound.start(0,99);
bgSound.setVolume(0);
[Code] .....

Further down the time line, in the video player section, there this code, which works to fade the sound, but seems to turn off the video, too:
nInterval = setInterval(fadeOutSound, _global.volumeVar);

View 5 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

ActionScript 3.0 :: Stop Button Sound But Not Main Background Sound?

Aug 5, 2010

I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli

View 1 Replies

Flash :: Playing Sound From Data Acquired From Sound.extract()?

Aug 1, 2011

I'm trying to play a sound using a technique found here (play the sound by sampling raw sound data gathered from the original with extract()), with the difference that the mp3 sound is embedded in the swf, not loaded externally. This is my code:

var soundBytes:ByteArray = new ByteArray();
var mp3sound:Sound = Sound(new Sound1_design()); // this is the embedded sound
mp3sound.extract(soundBytes, int.MAX_VALUE);

[Code]....

This works, in a way, except that the resulting sound is distorted (it has a kind of a metallic ring).

View 1 Replies

ActionScript 2.0 :: [FMX] LoadSound - Sound To Keep Playing While The Rollovers Load Sound

Jun 22, 2003

I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.

But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.

[Code]...

View 3 Replies

Professional :: Stop A Sound From Playing If It Is Playing Already

Dec 6, 2011

ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.

View 2 Replies

ActionScript 3.0 :: Assign A Sound To A Soundchannel Without Playing The Sound?

May 4, 2011

The thing I don't understand is how to assign a sound to a soundchannel without playing the sound. All the examples I've seen do this.

Code:
_SoundChannel = _sound.play();
_SoundChannel.stop();

And how can I set a SoundChannel volume to zero before allocating a sound to it?

View 2 Replies

Javascript :: Video With Transparent Background On Page Above Image Background?

May 2, 2010

I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?

View 1 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

CS3 Sound Control - No Sound Playing?

Apr 16, 2010

I am trying to embed some sound controls, and have hit a dead end. I made my play and stop buttons, imported my mp3,, assigned it proper linkage, and inserted this AS2 :

[Code]...

The buttons are named "play_btn" and "stop_btn" respectively. When I export it or preview it, hitting the play button does not do anything.... I hear no sound. What could be up with this?

View 4 Replies

Media Server :: Get Sound Level Of Each Clients Who Are Streaming Video And Sound?

Oct 20, 2011

I am using a flash app. I can send and receive streaming data to FMS by using this app, like the chart I attached. [URL] This app uses RTMP to access to FMS. I want to upgrade this app to display sound level of each client. Is it possible by using Actionscript and FMS? If so, which class should I use?

View 3 Replies

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

ActionScript 2.0 :: Preloaded Video Already Starts Playing While Preloading (at About 30%), But Without Showing The Video?

May 2, 2005

I've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:

Code:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");[code].....

View 6 Replies

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

Jun 2, 2010

I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.

View 3 Replies

Actionscript 2.0 :: How To Detect When Video Finished Playing To Play Next Video

May 31, 2010

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();

[code]....

View 1 Replies

Actionscript 2.0 :: Detect When Video Finished Playing, To Play Next Video?

Aug 17, 2009

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();

[Code]....

View 1 Replies

ActionScript 3.0 :: Video Buttons Not Work Unless Video Playing

Jan 20, 2010

I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.

Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....

View 15 Replies

ActionScript 2.0 :: Put Together A Class For Playing Video Using The Video Object?

Aug 23, 2008

I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.

Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;

[code].....

I am getting the following error with this script.

Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.

View 3 Replies







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