ActionScript 2.0 :: Play Background Sound And Keep It Continuos

Oct 27, 2009

I have applied sound to my website in flash. I have different pages designed in different scenes. And sound control is present on each and every scene. I browsed through the net and found a tutorial which showed how to play background sound and keep it continuos throughout the navigation via different scenes. Inicially i had a problem where the sound restarted when i went to a new scene but now that problem is solved . My current problem is, when my site loads the music starts to play which is fine. Then when i press on the sound button to stop it . The action is to Start Sound and when i press it again It stops. But When i stop it and go to any other button and navigate to some other scene , the sound restarts.The sound sequence needs to be Stop on the first click and Play on the second.But i also want the sound to autostart when site loads. And i because i have different scenes i have applies a complicated action scrip from a tutorial.which goes as follows:-On the first frame of sound layer i have this action script --->

[Code]...

View 2 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 :: Restart/loop That For Continuos Slideshow?

Nov 4, 2010

how to restart/loop that for continuos slideshow:
  
import com.greensock.*;
import com.greensock.easing.*; 
TweenLite.to(t1_mc, 1, {x:-2.2, y:-103.5, alpha:0, delay:5});
TweenLite.to(2_mc, 1, {x:-3.1, y:-96.5, alpha:0, delay:10});
TweenLite.to(3_mc, 1, {x:-83.0, y:-108.8, alpha:0, delay:15});

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

ActionScript 3.0 :: Create Dynamic Sound To Play Sound-file?

Oct 14, 2009

It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.

But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!

View 9 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.

View 13 Replies

IDE :: Add Sound - Sound To Play On The 'Over' State

Mar 6, 2009

I'm trying to add sound to some buttons. It's just a little metallic 'klink' sound that plays on rollover. I only want the sound to play on the 'Over' state. So I've set up a layer (just for sound) for the button and I add my sound in the 2nd frame (the Over state). Everything is cool. All is good. And the sound plays on rollover. But the sound also plays when I click the button (i.e. it also plays on the "Down" state). Why? The Down state keyframe is completely empty. What's going on here? I've only put the sound in the "Over" keyframe, why does it also play in the "Down" frame (or when I click)?

View 1 Replies

ActionScript 3.0 :: Flash With Background Sound

Feb 16, 2010

I am a beginner at AS3 programming. I like to make a flash with background sound (*.mp3 files from *.xml list). Everything works fine, but when I press "onClick" button I got output error.[code]

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

Flash :: Add Background Sound To My Website?

Aug 29, 2009

I would like to add background music to my flash website, but i have tried many ways of doing so. currently what i have is one movie clip which consists of two frames - one has the play icon and the other with a pause icon and the sound file. however, after some time and also a few button clicks, the sound repeats and results in the sound playing over the previous sound.

View 3 Replies

ActionScript 2.0 :: Play Sound Like "stop All Sound" Option In Flash?

May 17, 2003

I want to use a sound loop in my flash movie. The movie has many scenes. And the problem is that when I go to next scene or different scene I hear the sound repeating twice. I mean sound does not stop from first scene and begins from the different scenes.Is there any way to play sound like "stop all sound" option in Flash.

View 6 Replies

ActionScript 3.0 :: Play A Sound File And Show The Progress Of The Sound File Being Played

Mar 16, 2009

I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.

View 3 Replies

ActionScript 2.0 :: Swapping - Play The Client Side Mp3 First Then Only Play Server Side Sound Object Alternately

Aug 9, 2004

I am new to actionscript. I have created a script that will play server side sound object and client side mp3 files alternately. Now, I would like to play the client side mp3 first then only play server side sound object alternately. However, I have no idea how can I do so. The following is the code that need to be swapped:

[Code].....

View 2 Replies

ActionScript 2.0 :: Stop One Sound With Background Music?

Apr 20, 2011

I'm triying to stop a sound of a button, while you hear a background music. The music is assigned in the timeline for the animation. When the animation stop at a specific frame (activity), the button are showed. At this point is all ok.

I don't understand... I am very specific to wich sound must stop. Is there a bug?

In AS 3.0 is more easy when you use the SoundChannel, but in AS 2.0 ?

View 3 Replies

ActionScript 2.0 :: Background Tunes - Sound Off / On Buttons

Nov 7, 2003

I have a .swf playing some background tunes, I have the soundsOff button working, but can't find
some basic action to get the sound started again?....what's the trick?

View 2 Replies

ActionScript 2.0 :: Background Sound And Button Sounds?

Aug 8, 2003

I made 2 sounds: background and button sound.This is the code:

_root.onLoad = function() {
backgroundSound = new Sound(this);
backgroundSound.attachSound("sound_root");

[code]....

View 3 Replies

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

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

Assemble Animation / Sound And Background Image Automatically?

May 16, 2011

I need to learn how feasible it is to automatically assemble Flash animations which take a background image, an animation (or a set of vector drawings that can be turned into an animation) and a sound file from a set of files. In other words, assume that I have the following set of files:

3 background images (let's assume JPG)
3 animations (no sound, no static background)
100 sound files (let's assume MP3)

So if I want to code something like:
for i 1 to 3
for k 1 to 3
take animation i
take background image k
for j 1 to 100
take sound_file j
resulting_swf = assemble (animation[i], background[i], sound_file[j])
save(resulting_swf)

Which will produce 900 Flash animations with different combinations of sound and background, what is the starting point? Are there some libraries (in Python, Perl, PHP, etc.) with good documentation and examples to develop something like that, some program that I can run from the command line?

View 2 Replies

Flash :: File Loads Much Before Than Its Background Sound In Website?

Sep 20, 2011

I have a website at [URL] The problem i'm facing is that after the preloader is done the homepage comes but the other menus still takes much time to load and the sound also take atleast 5 min ! :(

How can i make them all bind together so that after the preloader everything comes together at an instant completely !

View 1 Replies

ActionScript 2.0 :: Record Sound Through Microphone With Background Music?

Jun 22, 2009

I am developing an application in flash(AS2) with FMS/RED5. where i want to record sound through microphone with background music(Flash is playing mp3). is that possible in as2 ?

View 0 Replies

ActionScript 2.0 :: Pausing And Resuming A Background Sound On One Button?

Sep 14, 2010

I'm having problems with pausing and resuming a background sound on one button. I tried some examples from kennybellew.com tutorials, but it just wont work for me.I have done some button work before (toggling, turning layers on/off etc.), i just never had to deal with sound.

View 9 Replies

ActionScript 3.0 :: Create A Background Sound In Flash Website?

Oct 26, 2010

I'm trying to create a background sound in flash website. I created play/pause buttons and it works fine, but when the sound is over it stops. What I want is the sound to loop, not to stop. I tried different things but I can;t get it working as I wish. Here's my code:

Code:
var mySound:Sound = new dogg();
var myChannel:SoundChannel = new SoundChannel();
myChannel.addEventListener(Event.SOUND_COMPLETE, whenComplete);
function whenComplete(evt:Event):void

[Code]...

View 0 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 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 2.0 :: Background Music Class - Initiate And Attach Sound?

Jul 13, 2011

I'm working on a background music class and found that you cannot use the Sound class in a class file. Specifically, initiating and attaching the sound. Starting, stopping, getting the duration and such seem acceptable (though I haven't tested this yet). I've done a few searches and haven't found any work arounds other than when the class is called, hand it the sound object with the sound already attached, like this:

ActionScript Code:
import bgMusicClass;
var bgSnd:Sound = new Sound(this);
bgSnd.attachSnd("newWave.mp3");
var bgMusic = new bgMusicClass(bgSnd);

View 2 Replies

Get Swf To Play As Background Image?

Nov 17, 2009

I want to convert a .avi into a flash movie and import it into Dreamweaver as a background image so that it will expand in all different resolutions 1. what do I need to consider when building this in Flash (using MX 04)?2. What should my html look like in order to call this file as a background swf (and poss css file)?

View 7 Replies

Professional :: Ios Audio Play In Background?

Feb 6, 2012

I creat ios app using adobe flash pro cs5.5
 
is There any way to make it play audio in background like this:

View 2 Replies

Html :: Play Background Music Continuously?

May 22, 2010

I am playing a background on my webpage by using miniswfloopplayer, now I want the music to play continuously throughout the website, currently the music starts all over again when a page loads which is quite obvious. I am looking for a approach where I can avoid the above situation.

View 1 Replies

ActionScript 2.0 :: Load Mc On The Background And Make It Play

Jul 21, 2004

im using Flash pro 2004 and would like to make a mc to download on the background while the movie is playing, and when the movie gets to frame 200 to play thge loaded mc.

View 1 Replies







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