ActionScript 2.0 :: Music Is On Loop But Starts Over Itself When Change Frame?
Apr 30, 2009
[URL]
I followed it exactly and the button worked fine with the music,
but then i stated to add keyframes, it works fine carys on playing on every keyframe i go to, but the problem is when i go back to the first keyframe the music still goes on which is good, but its starts again over the one thats already playing!
View 2 Replies
Similar Posts:
Apr 7, 2011
I have a flash game that I have videos between some, but not all questions.I would like to have background music that would play during the questions then mute, or turn off when the video is played, then turn back on when video is completed.If possible, but not required, a mute button could be created that would mute the music and would overide it turning back on as well.In other words the person takes the quiz, when the video plays it shuts off the music and starts it back up when video ends. And if possible, if they select to mute the music before the video plays it will not restart after the video completes.I did this in actionscript 2. The questions are on frames 1-50, the videos are on frames 100-110.I have it set up when a question is answered it goes to the video then back to the next frame for questions when it completes.
View 1 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
Oct 26, 2010
On my main SWF Home File i have 2 swf files are loaded into my (main home swf) and everything is runing smooth BUT the problem is when i want to watch the video the music is still playing i have to click on the button to stop music playing.
what i want is when i click on the video to play i want automatically the music to stop playing with out me clicking the mp3 button to stop the music playing.
NOTEKeep in mind i have 2 SWF files that are loaded in to the main swf file ...Home SWF is the main file
MP3 SWF << Loads on Home SWF
Video SWF << Loads on Home SWF
All i want is when the video is playing automatically stop the music and when the video is finish the music automatically continuing from where it was left.
View 1 Replies
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
May 18, 2010
when you play the short clips the sound of the site keeps playing in the background and the sound of the video plays over the top. Is there anyway to stop the website music when the clip starts to play and when stop or the clip finishes the website sound starts to play again. So you know what I mean the website is URL...
View 1 Replies
Aug 27, 2005
dayVal = day.value;
for(dayVal = 1; dayVal/7 != 1; dayVal++)
{trace (dayVal);
}
the loop starts at 0 and not 1 so the loop ends at 6 does any one know how to resolve this issue?? its so that what ever number dayVal is it will be rounded up to a number that is Divisble by 7 .
View 4 Replies
Nov 2, 2009
Weird problem going on right now. And I seriously don't know what this is about.
On my main timeline (new document)
I create a text. I convert that text to an image. I drag that image on my main timeline at frame 1.
Then I set opacity to 0%. Create a keyframe at frame 50. Then I Tween it. And at frame 50, I set opactity back to 100%.
When I test the movie (ctrl enter) it just doesnt show the tween AT ALL. It goes straight to the last frame.
When I just go to frame 1, and press enter. It does work like it's supposed to.
View 3 Replies
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
Jul 12, 2009
Sound Exported to Actionscript with name: shoot onPress:shoot starts?
View 3 Replies
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
May 19, 2010
I am new to Flash and was hoping for some help with an actionscript 3 problem. I have imported an FLV onto my timeline and I wanted to pause the first frame for 20 frames before it starts to play.
View 2 Replies
Jul 16, 2003
i want a mc to move onto frame 2 when an imported mp3 starts playing. i've found :
[Code]...
View 7 Replies
Apr 29, 2009
i just want to have my music looping forever regardless of the timeline stopping and starting. is this possible?
View 1 Replies
Jul 6, 2010
I have a flash movie that I need to read in a value from a PHP script in order to set which frame it starts from, I am using the following code:
[Code]...
The problem is this is not working - it won't get into the load event. If I run the PHP manually I get "&pageID=29". If I debug this locally I get "Who: undefined" in the trace output window. From all the example I have read, I seem to be doing this correctly but it just doesn't seem to be working. Flash: CS5 using Actionscript 2.0
View 2 Replies
Nov 22, 2011
How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
View 1 Replies
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
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
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
Sep 1, 2010
how do I keep something invisible until the frame of it tween starts then keep it visible until its unloaded?
onEnterFrame = function()
{
a1._visible = false;
}
if(Key.isDown(Key.SPACE))
{
a1.gotoAndPlay(2);
a1._visible = true;
}
View 1 Replies
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
Aug 21, 2011
How can i reset a frame so everything starts again instead of manually coding for everything to go back to normal positions because i have lots of objects and it makes it real hard.
View 1 Replies
Apr 8, 2006
I've got a site that is using loadSound to play some mp3s and it works fine. however, the sound starts to stream, and then replays itself like a second later. my guess is that its playing faster than the load is going and when it gets to the point where it hasn't loaded enough, it starts to replay it, but i'm not sure that that is the exact problem. my code:
[Code]...
now, i tried making a playTrack function that i can call with setTimeout and i put that in the onLoad in place of track.start(), but that didn't work either (i was hoping to not start playing the track for 3 seconds to give it some time to buffer).
View 1 Replies
Feb 19, 2003
I saw many flash web sites that has multiple music tracks to choose. I would like to learn this nice feature. Is there a tutor? how i can add multiple soundtracks for my flash presentation, I know how to add one soundtrack into my flash movie but i don't know how add several music tracks and how to make button to load one and unload the other.
View 1 Replies
Aug 11, 2010
I have created animated presentations (since now, I have just videos) for my seminars at the university with cinema 4D and I added some effects with After Effects (CS5). Now, I want to build an interactive presentation. That means:
- The (video projector) presentation starts with a video in a loop.
- When I click a button on the mouse/keyboard, the video finishes the loop until the end and
- show a transition video and
- start the next loop and so on...
[Code]...
View 4 Replies
Oct 22, 2003
ok i have a music off button...i want the text to change from "music off" to "music on" and for the actionscript code to change so that the music will turn on when you press on and not off when you press on.
Would I use attachMovie and just convert my button to a movieclip or is there another way? etc, loadmovie.
I know there is an easy answer to this and it is at the tip of my tounge.
View 3 Replies
Apr 19, 2011
I have a Flash 8 site that plays background music.I would like to be able to change the music depending on which page the visitor is on. So when the user clicks on a page on the menu and the site shows the page that the user selected, the music also changes depending on which page the user selected. Right now the music is on the main timeline and set to Loop.
View 5 Replies
Mar 8, 2012
Never thought waiting seven years to update my software would be such a relearning experience...lol In Flash MX to add audio into a movie clip, animation, etc, all you needed to was add the file to your library and drag it onto the frame in which you wanted the audio to play. However when I try this in CS5.5 nothing happens. I'm sure there's just a different implementation now, and I don't know what it is.
View 1 Replies
Nov 10, 2009
Im using as3 to start playing 1 music in the intro of my website... but i want that music to stop when he reatch frame 600...
View 1 Replies
Feb 4, 2011
I will like to add more music which changes automatically changes on this code as well as creating a button that manually changes the music forward and backward. How can i do that?
[Code]...
View 8 Replies