Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 2.0 :: Stop Sound While Changing Scene?


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 (Posted: May 18th, 2004)

Sponsored Links:

Related Forum Messages For Flash category:
Stop Sound From Going Into Next Scene While Keeping Button Sound?
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.

Posted: 10-19-2010, 09:38 PM

View 3 Replies!   View Related
ActionScript 2.0 :: When I Move To The 2nd Scene, The Sound Stop Looping?
My swf works with scenes. In the 1st scene i build a sound object :

PHP Code:

mysound=newSound();
mysound.attachSound("thesound.wav");
mysound.start(0,loop);[code].....

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..

Posted: April 30th, 2004

View 1 Replies!   View Related
Professional :: Video Sound Won't Stop When Changing Frames On Timeline
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?

Posted: Nov 19, 2010 6:59 AM

View 28 Replies!   View Related
Codes To Stop Sound In Movie Clip When Changing Keyframe On Main (parent) Timeline?
Is there some codes, to stop sound in movie clip, when changing keyframe on main (parent) timeline ?

Posted: Feb 29, 2012 6:46 AM

View 1 Replies!   View Related
Sound Plays From Next Scene, While Playing In Current Scene?
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.

Posted: 03-27-2001, 09:21 PM

View 4 Replies!   View Related
ActionScript 3.0 :: Go To Next Scene After The Video Play And Stop In The First Scene?
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 fl.video.VideoState; import fl.video.VideoEvent; var foo:ExtendedFLVPlayback = new ExtendedFLVPlayback(); foo.skin = "SkinOverPlayMute.swf"; foo.startMuted = true; //set this to false, or not at all to start it unmuted foo.source = ""; foo.autoPlay = true;

[code]......

Posted: Apr 2, 2010 1:18 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Can't Get Sound To Play In Any Scene After 1st Scene
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.

Posted: 05-03-2010, 07:51 PM

View 2 Replies!   View Related
ActionScript 2.0 :: Changing From Scene 1 To Scene 2
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]

Posted: 04-24-2008, 11:12 AM

View 9 Replies!   View Related
ActionScript 2.0 :: Stop Scene Loop Without Stop();
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.

Posted: February 8th, 2007

View 3 Replies!   View Related
Changing From One Scene To Another Without Buttons
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?

Posted: 10-23-2010, 10:58 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Stop Button Sound But Not Main Background Sound?
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

Posted: 08-05-2010, 06:24 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Changing Scene With Variable?
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?

Posted: 01-11-2012, 04:35 AM

View 4 Replies!   View Related
Actionscript 3.0 :: Changing Scene After Php Event?
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

Posted: Sun May 15, 2011 6:45 pm

View 2 Replies!   View Related
ActionScript 2.0 :: Changing Something In Unvisited Scene?
can I let a button change an mc in a scene that hasn't been visited yet?

Posted: May 1st, 2003

View 4 Replies!   View Related
ActionScript 2.0 :: Sound - Stop Button To Allow The User To Stop Mid Song
i have programed a play button using:

[Code]...

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

Posted: March 13th, 2007

View 4 Replies!   View Related
Sound Stop All Sounds Works / Then Sound Starts Again?
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?

Posted: 01-05-2010, 09:19 AM

View 2 Replies!   View Related
ActionScript 2.0 :: Play Sound/stop Sound Button?
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.

Posted: February 13th, 2007

View 13 Replies!   View Related
Changing A Flash Scene When Highlighting A CSS Button?
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.)

Posted: 11-04-2009, 11:13 AM

View 3 Replies!   View Related
ActionScript 1/2 :: Changing The Value Of A Variable In Movieclip From Scene?
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"?>
<slideshow>[code]....

Posted: Nov 13, 2009 10:21 AM

View 7 Replies!   View Related
ActionScript 3.0 :: Changing Scene When ComboBox Changed?
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:

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

[code].....

Posted: Jan 14, 2010 6:08 PM

View 3 Replies!   View Related
ActionScript 1/2 :: Object Staying After Changing Scene?
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.

---
// 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();

[code]....

Posted: Oct 23, 2010 12:13 AM

View 4 Replies!   View Related
ActionScript 2.0 :: Object Staying After Changing Scene?
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;

[Code].....

Posted: 10-23-2010, 06:30 AM

View 0 Replies!   View Related
ActionScript 2.0 :: [FMX04] Changing Background For A Image With One Click On EVERY Scene?
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");

[code]......

Posted: January 8th, 2006

View 3 Replies!   View Related
ActionScript 3.0 :: Different Sound For Every Scene
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.

Posted: Oct 21, 2009 8:50 AM

View 6 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved