ActionScript 2.0 :: Can't Get It To Just Pause/mute The Music?

Sep 2, 2007

i have a problem with my music palyer i can't get it to just pause/mute the music. here's the code.

Code:
bgSound = new Sound();
bgSound.loadSound("ChrisBrow-RunIt.mp3",true);
playIt.enabled = false;

[Code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Mute Only Sounds / Music?

Jan 28, 2010

I am using the Sound class to play both music and sound in my game (.mp3). I am using the:

SoundMixer.soundTransform = new SoundTransform(0);

But, I will need something to mute only sound or only music, this would mute both.

View 1 Replies

ActionScript 2.0 :: Mute The Music With A Button?

Mar 9, 2011

I have some songs in the same folder as i have my .fla file. I call the .mp3 file on the first frame and i want to be able to pause it or stop it when i click on a button. I would appreciate the code for that. Or maybe any other suggestion on how i should add music to my .fla file.

View 9 Replies

ActionScript 2.0 :: Way To Mute Music Forever

Dec 1, 2011

I got flash player, integrated in website.When I go to my site, backround music start to play automatically But if I stop the music and go to other page of my site, music starts again.[code]...

View 4 Replies

ActionScript 3.0 :: Mute Only Sounds Or Music

Jan 28, 2010

I am using the Sound class to play both music and sound in my game (.mp3). I am using the:
SoundMixer.soundTransform = new SoundTransform(0);
But, I will need something to mute only sound or only music, this would mute both...

View 2 Replies

ActionScript 3.0 :: Start A Music With Animation In Mute

Nov 1, 2010

I'd like to start a music with my animation in mute (volume 0), and then, use a "ON/OFF" button to hear the sound (volume 1 or 0).

View 6 Replies

ActionScript 3.0 :: Music Embeded Or It Should Be! Mute-volume Control?

Dec 7, 2009

I have an .mp3 file which is supposed to be embedded in the timeline. Since it is 6 minutes long, it not practical to run it streaming  on to the 7,200 frame. Consequently, in order to get it to run I have set the property to Event rather than sound. Also I have set it to repeat 99 times. How can I put in a volune control, or mute button. Can anyone help as I am quite new to this.

View 1 Replies

ActionScript 3.0 :: Audio Toggle - Mute / Play Music Again In SWF?

Dec 30, 2011

I call it a hiccup because the code works; but it's backwards. When I hit the audio button it plays the music and when I hit it again it stops the music. I wish for the music to play automatically when you enter the SWF and then you hit the button to mute the music if you wish; and then hit the button again to play the music again.

Here is the code I have:
toggleButton.addEventListener(MouseEvent.MOUSE_OVER, rolloverToggle);
toggleButton.addEventListener(MouseEvent.MOUSE_OUT, rolloutToggle);
toggleButton.addEventListener(MouseEvent.CLICK, toggleClick);
toggleButton.buttonState = "On";
var song:Sound = new TitleMusic();
[Code] .....

View 7 Replies

ActionScript 2.0 :: Mute Background Music To Play The VIDEO

Sep 2, 2008

how to change this on my 'flash template' and how to successfully mute the background music as my VIDEO starts to play.

I have uploaded my FLA file so that you can see what the problem is:

[URL]

The background music is set as per TEMPLATE that I got. I would like to add a quicktime movie to the website, under the page titled "TRAILER" - and have tried to do so myself by adding the QUICKTIME to the project through another SWF that I got elsewhere (a different 'template' so to speak).

The original quicktime file that I wish to add is available here:

[URL]

I'd like to be able to stop the background music when the viewer visits the TRAILER page of the site, as that is when the trailer starts to play. The music can stop abruptly, that is fine.

I'd like for the music to continue to play (either from the start, or where it was stopped) when any other pages are visited after watching of the trailer.

View 9 Replies

ActionScript 3.0 :: Mute The Music When A Person Clicks On The Video?

Nov 25, 2010

[URL]

I have a small problem I want to mute the music when a person clicks on the video page so they dont have to manually click the speaker to shut the sound off to hear the video. As well when they leave the page I want the music to continue playing. The music does not have to start over again, I just want it to mute while on the video page.

I tried using this: SoundMixer.soundTransform = new SoundTransform(0);

But it even mutes the video sound.

And I tried this: SoundMixer.stopAll();

It does kill off the background music, but I dont know how to turn on the music again when you leave the video page.

I prefer to use: SoundMixer.soundTransform = new SoundTransform(0); as it is easier to work with and you can adjust the volume as you like.

The music script and the video script

This is my action script for the music:
// Assign The URL to the mp3 to play
var req:URLRequest = new URLRequest("101-jakatta-

[Code].....

View 14 Replies

ActionScript 3.0 :: Pause And/or Mute A Sound?

Sep 2, 2008

i'm trying to pause and/or mute a sound, with little success.i've found out that something like 'sound.play(pausePosition)' might fail on sound-clips with low sampling-rate.however when i try to mute a sound with a 48000Khz sampling rate it simply won't work.

i've tried both -

soundChannel.SoundTransform.volume = 0
- and -
SoundMixer.SoundTransform.volume = 0

however both won't mute the sound and when traced return 1.

View 1 Replies

ActionScript 3.0 :: Mute/unmute The Volume For An Internal Aif Music File Using A Button?

Mar 9, 2009

I need the code to mute/unmute the volume for an internal aif music file using a button.

View 2 Replies

ActionScript 1/2 :: Mute/pause Sound On Multi Audio Players In One Page

Aug 28, 2010

im using this player [URL] for my site and i am also using [URL] i have 2 instances of advanced player in one page and the backround player. I want to pause the other players when one of the 2 advanced players are playing, something like that: if myadvancedmp3player1 is playing (if i press the play button), pause myadvancedmp3player2 and pause backround_music. if myadvancedmp3player2 is playing, pause myadvancedmp3player1 and pause backround_music

[Code].....

View 5 Replies

ActionScript 1/2 :: FLVPlayback: Disabling VolumeBar, Seek, Play/pause, Mute, Fullscreen Buttons?

Feb 15, 2012

Is there a way to disable/enable the buttons in FLVPlayback component? I got a flv files loaded into a fla file and the swf file then loaded onto the main fla file which where I want to disable/enable the FLVPlayback button at certain time.

View 7 Replies

ActionScript 2.0 :: How To Pause Music

Oct 13, 2011

I have a song inside a folder and I load it with actionscript , Is any way to make it pause ?

View 4 Replies

Professional :: Pause Bg Music As FLV Plays?

Aug 24, 2010

I would like to pause the background music as an FLV with audio plays and have the bg music restart (if possible) after the FLV stops.
 
The website is: iamnvjones.com and the flv movies are on "about me" and contact" page.
 
The way the site is setup now....when a visitor clicks "music off", it turns off the sound for the background music and FLV movie.

View 1 Replies

ActionScript 2.0 :: F8 Pause Music Located In An External SWF

Jan 18, 2010

I have a site that loads an external mp3 player. Now I want to pause the sound when the "video" button is pressed. In the mqin swf file, there is a movie clip called "MP3_Player", in that clip is the loaded mp3 player. I used this method to call the mp3 swf file.[code]Now what path/s do apply to the button in the main swf file to get the music to pause.

View 2 Replies

Play / Pause Music With Single Button?

Sep 28, 2009

I'm extremely new to Flash and I am making a website and want to have a single button that when pressed pauses or plays a music file. I was able to create one that works by following a tutorial that I found online but the problem is that the button is on the main timeline so as I move away from it, it stops working. I think that it would work better if I was able to make a movie clip out of the button so that it doesn't sit on the main timeline and will keep working no matter where I am on the timeline. All I need is one button that pauses and plays music when pressed. I also want to be able to have a "music on" line of text and "music off" line of text depending on whether the music is playing or not.

View 4 Replies

IDE :: Play / Pause Music With Single Button?

Sep 29, 2009

'm extremely new to Flash and I don't really know how to code yet.. I'm making a website and want to have a single button that when pressed either plays or pauses the music file. I found a tutorial that worked but it has two buttons (one for play and one for stop). You can see the tutorial here:[URL] I'm hoping that someone can tell me how I might be able to change the code so that a single button acts as both play and pause (i.e.; If music is not playing then play, if music is playing then stop).

View 2 Replies

ActionScript 3.0 :: Music Player - Play / Pause Specific Song

Nov 27, 2010

At the moment, I am attempting to make a music player that will play a specific song of my choosing. I am stuck at the part where you can pause the sound, and then play it in the same place. I have tried many things such as using the timer utilities. Right now, when I pause it, it stops, and when I press play, it plays from the beginning.
stop();
var channel:SoundChannel;
var soundCheck:Boolean = true;
var song:Sound = new Sound(new URLRequest("song.mp3"));
channel = song.play();
[Code] .....

View 1 Replies

ActionScript 3.0 :: When The PlayVideo Functions Is Called , Pause The Music Player?

May 30, 2011

I have an issue with my videoplayer i can't seem to fix. When the playVideo functions is called I need to pause the music player.I tried some possibilities but flash keeps giving me an error.what I need to add to pause the music player when the video player starts and let the music continue when the video player closes ?

var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;[code]....

View 2 Replies

Actionscript 3 :: Play Pause Button In A Flash Music Player?

Nov 10, 2011

I'm trying to make a simple music player with only one button for Play & Pause the music. What I have now is a MovieClip with:

1st Keyframe: active state for play Button
2nd Keyframe: active state for pause button
3rd Keyframe: hover state for play button
4th Keyframe: hover state for pause button

The script works OK, and play and pause the music without problems as expected.

The problem comes after the second click in the play/pause button when the alternance between two states becomes chaotic. The button never returns to the play state although the music was paused.

This is the code:

/**** Objects and Vars ****/
var AutoPlay:Boolean = false;
var isPlaying:Boolean = false;

[Code].....

View 1 Replies

ActionScript 2.0 :: Play / Pause Buttons To Stop Then Start Music?

May 23, 2005

How can I get the pause button to stop sounds and music, and the play button to start them up again? As of now, it only stops the animation, and lets the music continue.

View 1 Replies

Recommend Simple Streaming Music Player With Just Play - Pause And Stop?

Feb 24, 2010

I just need something simple, where there is only pause, play and stop buttons. I usually load the music within the flash movie and play from there, but I would like to build one where if you press play, the music loads and plays streaming on the spot. I have got a couple of more complex streaming style mp3 players but I would like to use a simplified streaming version. Any recommendations or code that I can just add to a button?

View 1 Replies

ActionScript 3.0 :: Pause Whole Video (including Music) Without A Billion Lines Of Code?

Jul 15, 2010

I made this music video, and now I'm trying to give is some UI controls. I have a play and replay button at the start and the end. But I want to have a pause/play button available to users all the time. I know how to do that for one object at a time, but I have around 80 layers. How do I make it so it will pause the whole video (including the music) without a billion lines of code?

View 9 Replies

ActionScript 2.0 :: Create A Flash Music Player - Play - Pause - Stop - Volume And Show The Track?

May 12, 2008

the player needs to have a play, pause, stop, volume and also needs to show the track I'm currently listening to (play list).

View 1 Replies

Actionscript 2.0 :: Mp3 Player - Keep The Mute State Unchanged When The Songs Are Playing Until The Mute Button Is Pressed Again

Feb 3, 2009

I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.

View 6 Replies

Implement A "pause" Button For Music In Flash Game?

Sep 7, 2010

I'm making a flash game, and I want to make a button. When I click on it, pause the music. When I click again, resume the music.

View 1 Replies

ActionScript 3.0 :: Mute Button Toggled To "mute" By Default?

Aug 5, 2010

So i have a flv playing on a flash load. I need the mute button toggled to "mute" by default.

Code:
my_FLVPlybk.muteButton = mutebtn;

that is the mute button instance i am using.

View 1 Replies

ActionScript 2.0 :: Music Separate From Flash File / Still Have Start Stop Music Buttons?

Oct 11, 2009

I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?

View 2 Replies







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