ActionScript 2.0 :: Stop Sound While Changing Scene?

May 18, 2004

I have created an into to my flash site. I have put the intro in one scen and the main site in another. While the visitor watch the intro, he has the option to click "Skip intro", then he goes directly to the main site scen.In the intro scen I also have added a sound trackSo, I would like to find a way to stop the sound when the visitor click the "Skip intro" button and are linked to another scen. Right now the sound continue to the end of the sound track, even though I click to change scen. Does anyone know how to do this?

View 1 Replies

Similar Posts:

Stop Sound From Going Into Next Scene While Keeping Button Sound?

Oct 19, 2010

I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.

Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.

View 3 Replies

ActionScript 2.0 :: When I Move To The 2nd Scene, The Sound Stop Looping?

Apr 30, 2004

My swf works with scenes. In the 1st scene i build a sound object :

PHP Code:

mysound = new Sound();

but when i move to the 2nd scene, the sound stop looping... I could restart it using _root.mysound.start(0,loop) but it would restart the sound when you move from scene1 to scene2 so cut it up in the middle and restart which isn't so nice..

View 1 Replies

Professional :: Video Sound Won't Stop When Changing Frames On Timeline

Nov 19, 2010

I've been making the transition from AS2 to AS3 for the last week and am making progress. But I'm having a problem that hopefully someone can help me with. I'm using Flash CS5. I have a fairly simple Flash website I'm working on. I have sections on the timeline like Home, About, Photos, Media ... all set up using labels for each of those sections. Everything is working fine but when I go to my Media section where I have a video placed (using the flv component) I'm having a problem as follows:

The video auto plays fine when I go to the Media section but when I attempt to leave the section and go to another the sound of the video doesn't stop. It continues to play when I go to another section and if I go back to the section it starts again. The video is not there when I go to another section which is the part that's confusing me. In AS2 when I did this the video and the sound both stopped because you went to another section on the timeline. Why is the sound of the video not stopping in AS3?

View 28 Replies

Codes To Stop Sound In Movie Clip When Changing Keyframe On Main (parent) Timeline?

Feb 29, 2012

Is there some codes, to stop sound in movie clip, when changing keyframe on main (parent) timeline ?

View 1 Replies

Sound Plays From Next Scene, While Playing In Current Scene?

Mar 27, 2001

i am making an animation, i have about 8 scenes. for some reason it starts playing the sound from the next scene in the middle of the current scene. why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it.

View 4 Replies

ActionScript 3.0 :: Go To Next Scene After The Video Play And Stop In The First Scene?

Apr 2, 2010

I need the video (scene 1) after play & stop will automaticlly go to scene 2. The scene 2 is a rotate images and will stay all the time to rotate in scene 2.

import; import; var foo:ExtendedFLVPlayback = new ExtendedFLVPlayback(); = "SkinOverPlayMute.swf"; foo.startMuted = true; //set this to false, or not at all to start it unmuted foo.source = ""; foo.autoPlay = true;


View 1 Replies

ActionScript 2.0 :: Can't Get Sound To Play In Any Scene After 1st Scene

May 3, 2010

I'm having trouble getting any sound to play in my second scene. I'm using actionscript in the first scene to fade in the music, then fade it out after they click the button.

Here's the code on layer 1[code]...

Problem: I tried adding a sound to the stage in scene 2 but nothing plays when i test the movie, expect for the music in scene 1. I tried creating another sound object in the first frame of scene 2 but i get the same result.

View 2 Replies

ActionScript 2.0 :: Changing From Scene 1 To Scene 2

Apr 24, 2008

im on scene 1, and i made a button which i want so when i click it, on release it will switch the whole flash movie to scene 2 but they doesn't seem to work.i want it to go to Scene 2, Layer 1, Frame 1. i renamed my scene2 layer 1 to 'fishwater' then i put this code on my button [code]

View 9 Replies

ActionScript 2.0 :: Stop Scene Loop Without Stop();

Feb 8, 2007

I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();

for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.

I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.

View 3 Replies

Changing From One Scene To Another Without Buttons

Oct 23, 2010

I'm creating a game in which you have to click/shoot the correct number as it passes by and when the scoreboard reaches 2 certain scores I need the scenes to change. I've managed to make it work for one scene where when the score hits 10 it changes to the next part of the game. However I also need to make it so that when the score hits -5 the scene changes to the "Final Score" scene where the player is taken if they lose. When I tried to use the same script I used the first time I just didn't know where to place it and it didn't work. How can I have 2 scripts working on the same timeline so that if the score reaches 10 the game proceeds but if it reaches -5 the game ends?

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 2.0 :: Changing Scene With Variable?

Jan 11, 2012

trying to make my first game using flash. I have done the main thing, setup a character which can be moved by the user to catch some falling balls. Every time a ball is caught, the score goes up by 1. To count and display the score, i have used a number variable called "caught" defined in the main timeline with initial value 0. The main timeline has only 1 frame and stopped by codes in the level "action". The "caught" variable is used in many movieclips in the scene and its value changes as the character catches the ball.

Now when the score is 10, i want to go to a new scene that shows a "congratulation you win" animation. For this, I have wrote the following code in the movieclip of the main character -

onClipEvent (enterFrame) {
if (_root.caught == 10) {
gotoAndPlay ("Scene 2",1);

But this does not work. The score goes upto 10 and then beyond 10.Is there anyway I can use the value of a number variable to determine when to play a particular scene?

View 4 Replies

Actionscript 3.0 :: Changing Scene After Php Event?

May 15, 2011

I made a flash login in flash cs5 following this tutorial ( completed code at the end)and I was wondering how I can use the "this is the user bio" retrieved from the php to change to a different scene. What i am trying to do is have the scene change after a person logs in sucessfully

View 2 Replies

ActionScript 2.0 :: Changing Something In Unvisited Scene?

May 1, 2003

can I let a button change an mc in a scene that hasn't been visited yet?

View 4 Replies

ActionScript 2.0 :: Sound - Stop Button To Allow The User To Stop Mid Song

Mar 13, 2007

i have programed a play button using:


now i am trying to program the stop button to allow the user to stop mid song....

View 4 Replies

Sound Stop All Sounds Works / Then Sound Starts Again?

Jan 5, 2010

I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?

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

Changing A Flash Scene When Highlighting A CSS Button?

Nov 4, 2009

I have a menu that is HTML/CSS. When I mouse over a menu item, I would a Flash header to change scenes accordingly.

Is this possible, and if so, how would I go about doing it?

I will be using Flash 8. I know how to animate, but I know nothing of ActionScripting. I'm a web designer, not a developer.

(I'm aware I could make the menu in Flash as well, but I personally don't care for having navigation set in a Flash .swf.)

View 3 Replies

ActionScript 1/2 :: Changing The Value Of A Variable In Movieclip From Scene?

Nov 13, 2009

i have a probleme changing the value of a variable in movieclip from my scene. i explain: I have combobox on my scene containing categories,and in the scene i load an xml file containing links to php files that work with the combobox.Also on the scene i have a movieclip "filmstrip", inside this movieclip on the first frame i have a script loading the php file selected in the scene. i use a load() function with a variable "theUrl" inside like this : T.load(theUrl);.In my scene i want to change the value of "theUrl" inside the movieClip filmstrip. I tried filmstrip.theUrl = url; But it doesnt work
the xml file
<?xml version="1.0" encoding="ISO-8859-1"?>

View 7 Replies

ActionScript 3.0 :: Changing Scene When ComboBox Changed?

Jan 14, 2010

I'm a complete newbie to Flash and programming, so please forgive my lack of knowledge! I have been trying for a good couple of hours now to do what I'd think would be a simple task - change scene when the value in a comboBox is changed.This is the code I have:

dropdown.addEventListener(Event.CHANGE, changemade);
function changemade(event:Event):void {


View 3 Replies

ActionScript 1/2 :: Object Staying After Changing Scene?

Oct 23, 2010

i am making this simple drag and drop game using flash cs3 using as2.i got 4 games and it has the same codes but different game type.. basically it uses drag and is the problem, when i finish the game, and press the back button to go to the selecting game scene, the last object dropped in the previous game stays and appears in the scene after that.
below is the as2 code i am using.
// global variablesvar tabbingON = false;var draggingON = false;var selectedPiece = 0;var totalPieces = 10;var total = 0;var mySound = new Sound();var origPos:Array = new Array();var justHit = false;var offset = 50;var counter = 0;
 // function callsinitGame();


View 4 Replies

ActionScript 2.0 :: Object Staying After Changing Scene?

Oct 23, 2010

okey i am making this simple drag and drop game using flash cs3 using as2.

i got 4 games and it has the same codes but different game type.. basically it uses drag and drop.

here is the problem, when i finish the game, and press the back button to go to the selecting game scene, the last object dropped in the previous game stays and appears in the scene after that.

below is the as2 code i am using.

HTML Code:
// global variables
var tabbingON = false;
var draggingON = false;


View 0 Replies

ActionScript 2.0 :: [FMX04] Changing Background For A Image With One Click On EVERY Scene?

Jan 8, 2006

I have set up ma flash project to have various scenes. One of these scenes is a page whereby when a user clicks on a button he/she can change the background image on every scene in my project.On each scene i have made a layer called 'background' and drawn a black rectangle which is the default background. This has been converted to a graphic using F8.What i'd like to be able to do is when the user clicks on the button he/she can change this default background to 1 of 4 photo's i have in my library.i have tried the code:

on (release)
colorchange = new Color("/rectangle");


View 3 Replies

ActionScript 3.0 :: Different Sound For Every Scene

Oct 21, 2009

Seems like I'm having a hard time getting this done. I have a file (a website with an Intro and a Website) with two scenes and I'd like to have one different soundtrack for every scene. Problem is if I set the sound for the intro (a 7 sec mp3 file set on loop), it plays throuhout the 2nd scene, which I don't want. I'd like one sound looping through the Intro as long as the user clicks the Enter Site button to access the website where another music is played. Seems like a huge task to be done in AS3.

View 6 Replies

ActionScript 3.0 :: Stop A Scene From Playing?

May 6, 2010

How can I stop a scene from playing until I tell it so?

View 4 Replies

Stop Running Actionscript In The Next Scene?

Oct 16, 2011

I'm running a school project which involves flash product.I have used the slide show from[url]....php nad everything works fine, but th slideshow is seen on all the scenes, begginin with this scene wheere it only meant to be seen.I do not really know how to stop this, smth like "stop all actionscript from this scene, when going to the another".

View 1 Replies

ActionScript 3.0 :: When Navigate To A Scene / It Just Stop

Sep 13, 2011

When I navigate to a scene, it just stops at the first frame.Even though i tried to recreate the scene by copying a working scene still not works.It works with the Test Scene, but not with the Test Movie.

View 1 Replies

IDE :: How To Stop Video At Scene Change

Mar 22, 2009

I have a video player in a multimedia presentation I am building in Flash, which is almost complete and just having one problem. When I change the page (scene change), I can still hear the audio form the video. The Video is still playing, how can I stop this?I was thinking if I added a stop function to all the buttons that link to different pages, but I don't know how to refer to the FLVPlayer. Somethink like

Bio_btn.addEventListener(MouseEvent.CLICK, StopVideo);
function StopVideo ????????????????{


View 1 Replies

ActionScript 2.0 :: Doesn't Stop When Going To Next Scene

Dec 20, 2009

I put an actionscript to make a "matrix effect" on the timeline, but it won't stop playing. It's just repeating over and over again. Even when I'm going to a next frame. Is there a way to stop the script from playing?

This is the code from the "matrix effect":

for (i=0; i<=463; i++) {
this["digit"+i].the_depth = i;


View 4 Replies

Copyrights 2005-15, All rights reserved