Get Sound / Music To Keep Playing Through A Scene Transition?
Feb 1, 2010
I'm trying to build a sort of flash based portfolio that will allow the user to control what they view. I want some background music to play under all of this, but when the user goes to a particular scene or frame of animation the music will stop or skip as they move.
Is there a way to get the music to just play in the background in an endless loop regardless of which scene or frame they jump to or another way to get a similar effect? I'd really like it to be interactive rather than just a preset slide show.
View 4 Replies
Similar Posts:
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
Jan 3, 2009
here is a slightly modified version of a mp3 player that i want to stop playing when you go to another scene. i tried making the back button call the same function that pauses the music when you hit the pause button butp.s. the code for the back button is on the button
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);
[code]....
View 1 Replies
Sep 3, 2010
i made a webiste with bg sound, home, portfolio, gallery, contcts. This are the links. when click portfolio, which contain a flv file, when clicking the flv file bg music stop and video will play smoothly.But if i navigate to other links the sound from the flv remains their and my bg music not playing also..
View 1 Replies
Apr 21, 2004
I've been messing with this for almost six hours now and am at the end of my wits. I need a flash mp3 player that follows the following guidelines:
*all encased within its own movie clip
*loads four different songs, one after the other (event)
*each song displays its own loader
*user scrolls through song selection and plays available (loaded) ones
*first song plays when loaded and continues to the others
any tips on where to go with this? do I create four different sound objects since later songs are loading while the first are playing?
View 5 Replies
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
Feb 9, 2009
I want a scene to play for 10 seconds before playing the next scene and have no idea how to do this using script (action script 2). I know I can just extend the timeline out so it takes 10 seconds for the scene to play through, but I'd prefer to do it with script.
View 5 Replies
Oct 29, 2004
i have seen external swf movie transation tutorial in [URL] but i am looking for internal transation ( between two or more scene in one movie )
View 8 Replies
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
Dec 5, 2009
I would like to apply a transition effect to a group of selected layers. Essentially between each scene of my intro.Can anyone shed some light on the best approach to do this effectively?
View 1 Replies
Dec 25, 2011
I got this animation homework. I wanted to put a couple of bgm in it. I placed the first one, and it refuses to stop when the scene ends. I place the music in a individual frameline but it doesn't stop when frames end. So, I insert a keyframe behind it, and put this codes :
import flash.media.SoundMixer.*;
soundmixer.stopAll();
In which I got the errors : definition of flash.media.SoundMixer could not be found (twice), for line 1 access of undefined property soundmixer, at line 2. I also tried stopAllsounds; , which is also undefined (even after I import flash.media)
(ps: there is hardly any codes inside this animation - it only has the codes for the replay button)
View 1 Replies
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
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
Jul 7, 2010
The first time I change from state A to B it doesn't play the transition. After the first transition, the same state change does play the transition.
Before I let state B load, it parses an xml file and maps it to objects. When this is done, the state changes. Maybe it has to do with the parsing of the xml. But I can confirm that parsing is done, before it changes the state.[code]...
View 6 Replies
Aug 1, 2003
my question is why the transition animation sosen't work on this code i already read the tutorial at kirupa, but im using diffrent code
View 5 Replies
Apr 10, 2011
I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
This is the code that creates one of the sound objects
[Code]...
View 3 Replies
Apr 19, 2010
I would like to know, how i can see if a music is already playing?
View 6 Replies
Oct 3, 2009
So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;
Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.
View 2 Replies
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
May 1, 2011
I am creating a Flash app that searches xml for music data such as track, artist and file location of the mp3. The results are returned as a radial tree visualisation.
I am attempting to create a functionality where each node in the tree, is clickable and this will play the track. At the moment when i click, it seems to play all the tracks at the same time and crashes. I think this is because of the node event listener -
[CODE]
newNodeSprite.addEventListener(MouseEvent.CLICK, playMusic);
[/CODE]
[Code].....
View 5 Replies
Oct 10, 2011
I'm playing the game League of Legends and I decided to make an iPhone application that let's you pick a champion (a character in the game)picture and play the sound for it. I downloaded all sound and images, loaded them into the library, and now I only made 4 champions just for testing.This is my code for AS3 when you click on the button to play the sound.[code]When you click on the picture again, It will play the sound once again and if you mass click it will mass play it (I want it to stop playing current one, then start playing the new one if you double tap it).When you click on 1 picture, it will make the sound, ok.. but when you click on ANOTHER picture, It will play the second image sound AND the first image sound together (Mixed up. I want it to make it so it stops playing the first one, then plays the second one).
View 14 Replies
Jul 5, 2011
I've got a project I'm working on in Flash / AS3 and I was hoping to find a way to have the program run a search through a publicly accessible API using an artist name and pull an MP3 sound clip that the user could play. I looked through Amazon's API but it didn't seem like it could accomplish this. It also seemed pretty daunting to integrate into flash.
View 1 Replies
Apr 11, 2011
okise i have make a button, i will play a song ,if i clicked the button.
my code:
// i imported the song inside flash and agelink it named(BGM1)
var M1:BGM1 = NEW BGM1
[code]....
View 9 Replies
Apr 30, 2011
I am creating a Flash app that searches xml for music data such as track, artist and file location of the mp3. The results are returned as a radial tree visualisation. I am attempting to create a functionality where each node in the tree, is clickable and this will play the track. At the moment when i click, it seems to play all the tracks at the same time and crashes. I think this is because of the node event listener -
ActionScript Code:
newNodeSprite.addEventListener(MouseEvent.CLICK, playMusic);
View 0 Replies
Sep 17, 2006
when i click my button the first time my transition MC works fine but when i click it to another button it works fine too.when i click back to the first button it shows not the transition but only the completed transition so i get no animation.[code]
View 1 Replies
Aug 1, 2011
I'm trying to play a sound using a technique found here (play the sound by sampling raw sound data gathered from the original with extract()), with the difference that the mp3 sound is embedded in the swf, not loaded externally. This is my code:
var soundBytes:ByteArray = new ByteArray();
var mp3sound:Sound = Sound(new Sound1_design()); // this is the embedded sound
mp3sound.extract(soundBytes, int.MAX_VALUE);
[Code]....
This works, in a way, except that the resulting sound is distorted (it has a kind of a metallic ring).
View 1 Replies
Jun 22, 2003
I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.
But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.
[Code]...
View 3 Replies
Dec 6, 2011
ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.
View 2 Replies
Jan 14, 2012
I have produced an app for iOS but when it loads the music from the iPhone doesn't stop.
I have read on forums that if an app contains sounds that the iPod will fade out but it doesn't for me. I have tried loading the sounds dynamically (these sounds don't play at all if the iPod is playing) and embedding them into the movie. Nothing seems to work sadly. I have ensured that I have all the recent updates for flash and the air packager and I can't find a solution to this anywhere.
View 1 Replies
Mar 17, 2011
How would I play an audio file throughout the entire clip that I am making? It is a recording of myself narrating a video, so it has to start as soon as the video star
View 3 Replies