ActionScript 1/2 :: When File Loads In The Browser - Music Immediately Plays And Loops Until Click A Button To Stop The Music

Mar 30, 2009

I downloaded a flash template and have modified it to suit our company but there is something that I can't do. When the file loads in the browser, music immediately plays and loops until you click a button to stop the music. On our video page, we have video
that we need to play that has sound in it. How do I get the background music to stop when my video plays without having to go up and stop the music manually. The videos are loaded via an external XML document and there are no buttons in the FLA file to link code to. the website is [URL]

View 4 Replies


Similar Posts:


ActionScript 1/2 :: Click On A Certain Button, It Plays A New Music Clip?

May 3, 2006

I want to make it so that when I click on a certain button, it plays a new music clip. I am trying to do it by selecting the button I want, then going into behaviors, then +, then Sound, Play Sound... It then asks for the instance of the audio file that I want to play... but I don't know what it is.

View 6 Replies

IDE :: Play Music File Once Only On Click Of Play Button Until Music Stops

May 1, 2009

Using Macromedia Flash Professional 8.

I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.

I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.

The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.

So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.

I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.

View 6 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

Professional :: Stop Music With The Click Of A Button?

Oct 13, 2011

I have a Start button on the title screen. I want the music to stop when you click on the start button. Also, I want for another music to start when you go to the next part of the animation and to stop when you click on another button.

View 5 Replies

Movie Clips And Background Music - Unable To Stop Music At The End Of The Animation?

Apr 30, 2011

I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.

1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.

2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.

Here's the file --> Pepper and the Vacuum of DOOM!

View 1 Replies

ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music

Dec 13, 2005

When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly

View 3 Replies

ActionScript 2.0 :: Stop The Background Music When One Loads A Specific Swf

Nov 24, 2006

1. I have a main.swf that loads external swfs. I am trying to stop the background music when one loads a specfic swf, and start the music when one leaves that swf. Here's the code I came up with, but it doesn't work.

[Code]...

View 1 Replies

ActionScript 3.0 :: Music Player - Loads An External File?

Apr 16, 2009

I've made a a music player in as3 that loads an external file:

var music:Sound = new Sound(new URLRequest("walk.mp3"));
var sc:SoundChannel;
var isPlaying:Boolean = false;[code]............

But i wanted the music to start as soon as you open the movie... how do i do it?

View 1 Replies

Create A Button To Stop And Play Music?

Dec 23, 2009

I am using flash CS4 AS 2.0.creating a button to stop the music on click and play the music on the next click. Sort of on and off music.

View 12 Replies

ActionScript 1/2 :: Button To Start And Stop Music?

Jan 26, 2012

I'm fairly new at AC2 (Yes, I need to update), and I have Flash CS3.I need to find out if I can have a button that when you click it, plays a music file, and then when you click it again, the music that was playing for that button would stop.I have a text box on top of a rectangle and I selected them both and converted them to a button symbol, named it MusicFile, double clicked on the new button, inserted a new keyframe in the timeline on "down" (where it says Up, Over, Down, Hit), and then dragged the music file from the library onto the button. It works fine, until I click the button a second time, and it just keeps playing as if I pushed play twice and two copies of the sound started playing.Is it possible to make the button play the music when it's clicked the first time, then stop the music that it was just playing the second time it was clicked?

View 1 Replies

ActionScript 2.0 :: Stop Music If A Button Is Pressed?

Sep 2, 2005

how would i stop music if a button is pressed? on (release) { stop.street.mp3?? or somthing like this?

View 2 Replies

ActionScript 2.0 :: Stop One Music File When Play Another?

Nov 23, 2009

I'm developing a band site and currently have all the song clips playing and stopping via start/stop buttons. The issue is that all of the songs can be playing at the same time if you don't manually stop the other songs. The idea would be to have a song stop automatically if a user pushed play for another song.This is all the AS I have on the button right now:

Code:
on (release)
{

[code].....

View 1 Replies

Flex :: Make A Button Change It's Shape With Every Click (music Button)?

Sep 20, 2010

I want to design a music button for a game like geochallenge

View 1 Replies

Played Back Music Automatically Stops When You Click Button

Apr 6, 2009

I recently used one of those XSPF Flash player buttons on a website and of course it worked, played back music automatically, stops when you click button... but one weird thing I noticed is the song being cut off before it ends... One song I have is 4 minutes long, and only plays for 1.5 minutes..

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 :: 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 :: External Music Files - How To Set Number Of Loops

Jul 28, 2004

I currently use:
Code:
mySound = new Sound();
mySound.loadSound("music.mp3",true);
1.) How do I set the number of loops?
2.) What is the Actionscript code to unload the sound?

View 5 Replies

Flash8 :: Music Only Plays For Part Of Song?

Nov 30, 2009

I've got a flash website that I've been using a little while nowIt was created for me, but I know enough on how to edit itHowever, I recently decided to add new music instead of the regular loops used beforeI added three full mp3's to the library and they are on the site and allbut it cuts off after the first minute of the song and it starts over

View 10 Replies

ActionScript 2.0 :: Fading Out Background Music While Video Plays

Jan 17, 2009

Here I've a sound track included in timeline from first frame (not in actionscript).

And after intro, I've a video button where I added a video with sound which starts to play by clicking

Now the problem is both background music & video sound mixing & creates a noise kinda combination.

I need a solution like fading out the background music if i click the video button & fading in when clicking some other button or navigating to other pages?[code]...

View 0 Replies

ActionScript 3.0 :: Music Sync Animation - Create A Music Animator?

Nov 9, 2010

I am trying to create a music animator. It will have bars that move up and down do the beat of the music. This is like windows media player where the music animations play. I want it to be verticle bars, where some are in sync with like the base and others are in sync with the tempo. Does anyone know of a tutorial for this? I am trying to emplement it within my website so that whatever music I am playing will auto control the bars and sync.

View 5 Replies

ActionScript 2.0 :: Streaming Music Using Flash, But After The 3rd Music Is Done, It Just Stops?

Feb 21, 2007

I am streaming music from my site using flash, but after the 3rd music is done, it just stops. Do i have to flush something or create a new music object for each 3 songs?

View 6 Replies

ActionScript 2.0 :: Music Loop - If Statement - Check Whether Or Not The Music.swf

Apr 5, 2005

I have 'Sound On' and 'Sound Off' buttons on mutiple scenes and I am playing the music loop in my flash movie by loading an external swf. When I move to the next scene the sound reloads which I do not want. How do I use an if-statement that checks whether or not the music.swf, that needs to be loaded is found and when it is found, go to a frame?

View 1 Replies

Flash :: Write An Application That Plays Music In The Background On IOS Using Adobe Packager For IPhone?

Feb 2, 2011

I would like my application to be able to remain running while the user goes and uses another application. (It will be playing music) Additionally, how to communicate w/ Cocoa Touch from this environment?

If you think this is not possible, which platforms are capable of this (other than the obj-c mac x-code route, which I am trying to avoid)?

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 2.0 :: STOPS The Music On FIRST CLICK Then RESUMES On The 2nd Click?

Mar 25, 2003

Is there an actionscript that STOPS the music on FIRST CLICK, then RESUMES on the 2nd Click? So everytime you click, SOUND STATES turns ON & OFF?

View 3 Replies

Stop Music Playing On My Website?

Apr 30, 2010

I've agreed to helping a friend out to make a few changes to her website.

One of the things I need to do is make the music turn off when you click 'musicff'. It doesn't work at the minute and for the life of me I can't seem to figure it out. Below is the coding on one of the frames [code]...

View 14 Replies

Flash :: Stop Music On Mouse Out?

May 10, 2011

I have a movieclip which has this script attached to it (plays a soundclip on hover) - problem is that if I move the mouse out I need to stop the soundclip. Right now it just starts again while its still playing (on mouse over) == not good.

I tried to make a MOUSE_OUT event and a .stop(); but it does not seem to work.

import flash.media.Sound;
import flash.media.SoundChannel;
//Declare a BeepSnd sound object that loads a library sound.

[Code].....

View 3 Replies

ActionScript 2.0 :: Unable To STOP The Music ?

Jul 2, 2009

I have a static page and have set a button to play a certain .mp3 file.The problem is, I can't figure out how to stop the sound, let say, pressing the same button again (and then pressing it again will start the sound all over again... which would be very useful)? I have 1 frame and 2 layers - a background .jpg and 2nd for play button, and actionscript for the button symbol so far:

ActionScript Code:
on(release)
{[code]...........

View 0 Replies

ActionScript 3.0 :: Play Music When Key Is UP Stop When Down?

Jul 17, 2009

The following code plays music when the H key is being pressed and when is unpressed the music stops...the problem im having is that its re-playing the music for every milisecond the H key is being pressed so its creating an endless loop of the sound1, how may I change the code to only play once the sound1 while the H key is being pressed and stop when is unpressed[code]...

View 1 Replies







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