ActionScript 3.0 :: Overlapping Sound - Home Button - Get The Music To Loop?

Dec 16, 2009

Everytime I click on my home Logo the music overlaps and plays again. How can I stop this? and... How can I get the music to loop? (I've tried the mySound.play(0,10000); code but it didn't work)

[Code]....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Sound - Add A Music On / Off Button

Sep 13, 2004

I've put this scipting at the beginning of of my flash file, but now I want to add a music on/off button. One button. What scripting do I use for the button?

[Code]...

View 8 Replies

ActionScript 2.0 :: Sound Overlap In Music On/off Button?

Nov 4, 2009

I'm having is everytime I click on the home button it goes back to the first frame and replays the music, it overlaps which is very annoying and the buttons are made unclickable. Here is a link to my site [URL]

The AS2 code i used was

bgSound = new Sound(this);
bgSound.attachSound("sound 2");
bgSound.start(0, 99);

[Code].....

View 3 Replies

ActionScript 3.0 :: Music Loop Fade Out By Button Between Scenes?

Jul 4, 2011

I have a infinite music loop and I am trying to have btn_start trigger a fade out on the music along with its original gotoAndPlay.I have two scenes, "opening" and "animation". btn_start and the following code are in the "opening" scene.the fade out will play along with the first couple seconds of "animation" since the gotoAndPlay connects to frame 1 of "animation"Can this be done? lights of how to proceed this.

stop();import flash.net.URLRequest;import flash.media.Sound;var url:URLRequest = new URLRequest("subtle.mp3");var snd:Sound =
new Sound(url);snd.play(0,

[code].....

View 3 Replies

ActionScript 2.0 :: Loop Button Code Not Quite Right For Music Player?

Mar 26, 2011

I thought I had this one right until I listened a little closer. Below is the code that I am using to make a loop button for my music player. At first, using everything but the last line, seemed to work perfectly, until I realized that the music wasn't starting over from the very beginning. Basically I'm using a pause command, followed by a resume command to keep the pressing of the loop button from playing the song over itself, if it'scurrently playing. So in that respect, it works great. But when the song ends and estarts, it starts only from the point of the song when I pressed the loop button. So I'm trying to figure out how to make the 2nd time that the song plays and each additional time after that, play from the very beginning of the song. While still being sure that the song does not play over itself, the first time it's played.

Code:
loopbutton_up.onPress = function(){
mySongPosition = _root.mySong.position/1000;

[code]....

View 8 Replies

ActionScript 2.0 :: Soundtrack In Flash MX - Button Will Loop Its Own Music

Oct 28, 2002

I want to create a movie clip with 5 buttons in it..... each button will loop its own music, how to do this step by step.

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

ActionScript 2.0 :: Stop Sound Loop From One Button By Clicking New Button?

May 22, 2011

I want to stop the sound loop from one button by clicking new button. Does anyone know the code that would stop one button's sound from looping by just clicking another button (for another sound)?So you have these buttons:button 1 button 2 button 3 button 4and after clicking "button 1" a sound loops. when i click "button 2" i want the sound from "button 1' to stop.

View 2 Replies

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 2.0 :: Fade Out A Sound Loop Without Using A Button?

Sep 28, 2006

I have a small presenttion that have a Loop of a song starting to play on the Scene 1. The sound plays in loop along the several scenes and I want it to Fade Out on Scene 12. Is there any way to Fade Out without using a button to do that? I have tryed the Fade Out on "Effects" (on Properties panel), but doesn't work...

View 6 Replies

IDE :: Sound On/Off Button; Loop; Auto-play?

Jun 23, 2008

I'm almost done building a full flash site where it navigates by position of timeline.I just need a simple on/off button for a soundloop to loop and play automatically. the on/off button just simply turns it off (toggle is optional). on it doesn't have to resume, just start the pool again.

View 14 Replies

Professional :: Sound Duplicates On Top Of Itself When Returning To Home Page?

Apr 27, 2011

i have a question about loading an mp3 in flash. the mp3 is loading & playing fine, but if i click a button to go to a new frame, and then click another button to return to the home page, a new copy of the same audio clip is loaded over the one that is already playing, thus causing two audio files to play at the same time. it will keep loading a new copy of the audio clip every single time i return to the home page. how do i go about correcting this? the following is the code i am using:

[Code]...

View 7 Replies

ActionScript 3.0 :: How To Stop Overlapping Sound

Apr 4, 2011

I wanted to know how to write As3 so that the sound that I place on a timeline doesn't overlap? Or is it best off the timeline? I've tried putting each song into it's own place on the timeline but there are labels and when a new song plays, the old one continues. If I just have one song on the entire timeline, whenever I move across different labels, the song overlaps.

View 4 Replies

ActionScript 3.0 :: Stopping Sound From Overlapping?

Aug 31, 2009

How can I control sound in flash so that:

1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap?

2) the music doesn't overlap when going back to the homepage where the music first started playing??

I'm currently using the code below but the music overlaps when I press the play button more than once while the music is playing and when I go back to the page where the music started playing...

Code:
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0; // pause button
mySound.load(new URLRequest("that_tune.mp3"));

[code]....

View 2 Replies

ActionScript 3.0 :: How To Stop Sound From Overlapping

Aug 31, 2009

How can I control sound in flash so that:
1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap??
2) the music doesn't overlap when going back to the homepage where the music first started playing??
I'm currently using the code below but the music overlaps when I press the play button more than once while the music is playing and when I go back to the page where the music started playing...:o

Code:
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0; // pause button
mySound.load(new URLRequest("that_tune.mp3"));
//mySound.play();
[Code] .....

View 4 Replies

IDE :: Overlapping Sound Vs. Andio Not In Sync?

Dec 30, 2011

I am aving a problem managing the sound in my application. Here is the situation.I have ten frames in the main timeline and on each frame is a movieclip, inside of which i need to put sound (Each movieclip plays a different sound). Currently I load the sound dynamicly from library and everything works fine - the application plays sounds according to the current frame.

Problem is that each of the movieclips contains also an animation (two characters talking) and I need the animation to be synchronized with the sound. And since I am loading the sounds via actionscript, it has no sync and when the framerate drops on slower computers, the animation lasts longer then audio. To solve this, I tried to put the sounds directly into each timelines of the movieclips and set the "Sync" property to "Stream", but the result is, that when I call the gotoAndStop(5); method, all the sounds placed in movieclips in the previous frames (frames 1 to 4) play as well and all the sounds are playing at the same time.

View 1 Replies

ActionScript 2.0 :: Stop Sound From Overlapping?

Feb 10, 2005

ok im trying to make the sound on the scene stop when the scene stops.because it keeps on going through even when the scene itself stops...i have an on and off buttin but i need it to stop when the scene stops on start over instead of overlapping when the scene is played again...

View 1 Replies

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

ActionScript 2.0 :: Sound Is Played Twice Overlapping Eachother?

Jan 20, 2005

Im using MediaPlayback-component to load MP3-files into and play them.

I use this code to call it:

myMediaPlay.setMedia("SOUND.mp3", "MP3");
myMediaPlay.play(0);

Problem is that the sound is played twice overlapping eachother (some of the mp3 is played first,interrupted, and then restarted again to finish fully).

View 4 Replies

ActionScript 2.0 :: Music Overlapping With "kirupasound"

Mar 19, 2010

Ive been developing a flash file (actionscript 2.0 in Flash CS4) to import into a website Im designing. So far I am using this action:

[Code]...

in my buttons in order to play individual sound files. The sound files are playing great but they overlap one another. How can I can either create a stop button or modify the code so that when the user clicks on the next sound button, the old music stops and the new begins? Sorry - this is my first week of flash - I normally deal with just graphical design.

View 1 Replies

ActionScript 2.0 :: Make A Simple Image Loop For A Home Page Of A Website

Jul 21, 2010

Im trying to make a simple Image loop for a home page of a website.

I have flash loading the images dynamically thru loadmovie

the Images load fine, but they go on top of everything else.

Is there a way to get them on a lower layer?

View 3 Replies

ActionScript 3.0 :: Flash Overlapping Objects - Loop To Add The Map Elements On The Stage

Apr 13, 2011

I'm working right now on a map generator. I stumbled on a very annoying problem. I'm using the for loop to add the map elements on the stage. But when the "forest" area begins to be to thick all trees begin to overlap.

View 1 Replies

ActionScript 1/2 :: Home.swf That Is Inside Home.html?

Jul 27, 2009

I have a home.swf that is inside home.html.inside home.swf there is a btn with the following
 
cinema_btn.onRelease = function() {loadMovieNum("video_main.swf", 0); 
inside video_main.swf  is the following 
loadMovieNum("video1/reels.swf",1);
 
the idea is to load reels.swf in level1 on top of video_main.swf in level 0 why reels.swf size looks much larger even though all swf's are 900 x 800?

[Code]...

View 2 Replies

IDE :: Can't Loop Music And Tween

May 25, 2009

when I create a new Tween/Graphic symbol it turns into an old tween I already used (Ex: Two tweens, when trying to use the second one it reverts back to the first one). Both of them are on the same layer called "Text", also it seems to be fixed when I put the second tween on a new layer. But if I do this I will have at least a good 50 layers of text :S.

Second problem is I want my background music to loop throughout the whole video, my project has multiple scenes and I am baffled as to how to make the music play throughout.

EDIT: my project has to be 45 seconds and the music loop I'm using is about 17 seconds.

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

Professional :: Home Button Not Working

Aug 25, 2011

I've developed a small portfolio website, and have created a "home" button, but I can't get it to program correctly. I've tried using the Action Script to Go To and Stop at Frame feature, but it doesn't work. I need the "Home" button, whenever pressed to take the viewer BACK to frame 10.

View 3 Replies

ActionScript 2.0 :: Slowly Mute The Sound Gradually Step By Step Up To The Loading Of The Home Page

Nov 7, 2009

I have a flash template in Flash AS - 2 , with a initial sound that triggers at the very beginning in full sound. Now what I want to slowly mute the sound gradually step by step up to the loading of the home page. How can I do that? Worthless. I attached a very simple fla with sound. There is a stop action and at this point the home page is loaded.Now how can I mute the sound slowly upto this point.

View 5 Replies

ActionScript 2.0 :: RPG Battle Music Loop?

Mar 28, 2009

well i was wonder how this could be done in flash or if its even possible with sound from the library..have the intro part of the song play first then loop the actual music for the duration of the scene.

View 2 Replies

Non-copyright Music And Sound Effects

Sep 26, 2009

Yeh, does any 1 know where i can find good non-copyright music? I have search araound on google, but i wanna check here, i am scared of virus and im not that person some download whithout ceck if its virus on the site or not...
 
So: Do you know where i can get much on-copyright music and soundeffects whithout virus???

View 2 Replies

ActionScript 3.0 :: How To Toggle Sound Off/on Of A Music

May 31, 2011

The user should be able to toggle on or off the sounds button where clicking (on) will turn on the sounds while the button's label will be changed to 'off'Initially the sound is off.

View 4 Replies







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