ActionScript 2.0 :: Looping Music Wont Play?
Mar 29, 2005
I am loading a movie in another flash movie clip. The first movie "animation.swf" has background music that loops twice.Linked in the library as "Song" and played as below:
loopMusic = new Sound ();
loopMusic.attachSound ("Song");
loopMusic.start (0,2);
[code]....
View 4 Replies
Similar Posts:
Mar 29, 2005
I am loading a movie in another flash movie clip. The first movie "animation.swf" has background music that loops twice. Linked in the library as "Song" and played as below:
loopMusic = new Sound ();
loopMusic.attachSound ("Song");
loopMusic.start (0,2);
It plays fine, but when that file is loaded in the main movie using loadMovie the sound doesn't play.
View 4 Replies
May 1, 2009
Using Macromedia Flash Professional 8.
I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.
I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.
The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.
So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.
I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.
View 6 Replies
Apr 24, 2009
I am used to working in Flash MX but now have CS4. You use to be able to just drop an mp3 file onto a layer and it would loop continously now it's not doing that.I need help in a big way to loop this mp3 file in CS4.
View 3 Replies
Nov 16, 2010
how do i stop the music from looping in the code below???// Written.. Happy Chodingstop();// Assign The URL to the mp3 to playvar req:URLRequest = new URLRequest("images/song001.mp3");// Boolean value for button functions, to switch in the conditionalsvar isPlaying:Boolean = true;// Create the sound object
View 1 Replies
Sep 1, 2009
I've got a few questions about background music. Such as...
- How do you get music to loop in the background of a stopped frame (or multiple stopped frames)?
- How do you get the looping background music playing in a stopped frame to stop when a certain button is clicked?
- and How do you get music to stop playing in regular, non-stopped frames when a certain button is clicked (although it's probably the same as the above question...)?
View 3 Replies
Oct 1, 2010
I have a music track that I want continusuely playing and looping for until my 600 frames stop, then it stops. (by the way my frames/sec is a 1, not 24 like the default). Also it would be nice if in the last 5 seconds it could somehow fade away. How do I do this?
View 3 Replies
Apr 4, 2011
1.Is it possible to blend music looping from a frame lets say frame 1 to frame 10 and then having it not loop but go into the other frames lets say frame 11 to 21?
2.How can i get it to just either blend or loop, i know looping is possible but i've forgotten how, i haven't used flash since 06'
3.Is it possible to put two songs on one frame without making it sound really bad or jumbled up?
4.how can i put sound effects on a button, lets say you click something or get a coin in the game how can i make it so the 'coin noise' goes on the button?
View 2 Replies
Apr 29, 2009
I just want my loop to keep playing regardless of the timeline stopping and starting.
View 3 Replies
Feb 14, 2012
I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).
View 2 Replies
Mar 29, 2010
In AutoScript 2 how can I play music from URL?
mySound = new Sound();mySound.loadSound("");
and now how?
View 1 Replies
Feb 9, 2010
what is the code to play a music from library? AS2
View 2 Replies
Dec 19, 2010
I need to play three musical tracks one after the other in a circle. It is necessary that its are not loaded again and were in the cache. I use this code. Everything works fine on localhost, but only works after restart the app on the server. And wrong to re-download tracks every time.
[Code]...
optObj.music - it is the object with the parameters that is called when the app starts or when i call a function change the settings.
View 1 Replies
Jul 22, 2008
I have music (.mp3) in a .swf file that I'm loading into another .swf. When I play the .swf containing the music alone the music plays, but when I load the same .swf into another .swf there is no music.[code]...
View 6 Replies
Jul 17, 2009
The following code plays music when the H key is being pressed and when is unpressed the music stops...the problem im having is that its re-playing the music for every milisecond the H key is being pressed so its creating an endless loop of the sound1, how may I change the code to only play once the sound1 while the H key is being pressed and stop when is unpressed[code]...
View 1 Replies
Oct 9, 2007
in my game there are two labels, the "menu" label and the "game" label.i want to have one mp3(song) playing during the "menu" label and another (song) playing during the "game". So,while the player is in the "menu", if he clicks the "play" button the mp3(of the menu) must stop and the mp3(of the game) must begin.i have tried putting the command "stop all sounds" in "play" button's function, but it doesn't only stop the music that was being played (menu's mp3) but also the music that follows (game's mp3)
View 2 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
Aug 25, 2009
Flash CS4 Mac OS 10.4.11 - I am new to Flash and have always created small web animations in Image Ready. However, the Flash animations I have seen are so much smoother so decided to learn how to make one for next clients website. The animation keeps looping when I have specified in Flash that I want it to play once when page loads (see screen snatch attachment). Checked in 'Publish Preview' to see if it was just happening when the file was loaded into Adobe GoLive, but no, it does it in Flash.
I have tried saving in all the variations allowed but to no effect. The other thing that happens when checking the GoLive site in browsers is that for an instant before the animation begins, the background of the animation is white when I made the Flash document background a grey (F5F5F5), the grey background does kick in immediately afterwards. I have also attached the .swf file and a html file for general viewing.
Attachments: Screen Snatch.jpg (106.5 K)
free_session4.swf (2.5 K)
free_session4.html (9.6 K)
View 9 Replies
Dec 23, 2009
I am using flash CS4 AS 2.0.creating a button to stop the music on click and play the music on the next click. Sort of on and off music.
View 12 Replies
Sep 28, 2009
I'm extremely new to Flash and I am making a website and want to have a single button that when pressed pauses or plays a music file. I was able to create one that works by following a tutorial that I found online but the problem is that the button is on the main timeline so as I move away from it, it stops working. I think that it would work better if I was able to make a movie clip out of the button so that it doesn't sit on the main timeline and will keep working no matter where I am on the timeline. All I need is one button that pauses and plays music when pressed. I also want to be able to have a "music on" line of text and "music off" line of text depending on whether the music is playing or not.
View 4 Replies
Dec 16, 2009
I made a simple page with several buttons that play music, but then decided I wanted a video (flv) to first play automatically, and when that ends the page with the buttons appears. How can I do that? Right now I have four layers using one frame. Layer one has the AS code, two has the text, three has the buttons and the fourth layer has a background image.
View 7 Replies
Jan 6, 2011
I want to make on button play a piece of music and another one to stop the music. I manage to make buttons work for playing frames in the timeline, but how do I make the buttons play the music and stop it?
View 3 Replies
May 8, 2011
What action/script do write to make only the music stop looping?[URL]... Im using AS2 . Im kinda new to flash so can you please explain thoroghly.
View 7 Replies
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
Oct 11, 2009
I am making an interactive game for a school project that has an intro and a main part consisting of multiple scenes. I'm curious if I can have a song from my library play throughout multiple scenes. One song for the intro scenes, and another for the scenes that make up the actual game.
I also have a point in the game where you can get a 'game over' screen and an option to restart. I'm wanting the song to restart only at this point.
View 1 Replies
Nov 3, 2011
I have problem with the code below. its a flash mp3 player. I need to prevent it from autoplay from the start. but keeps on playing all the tracks after the user click on play. How can i fix this?
Code:
import flash.filters.DropShadowFilter;
var infostruc:Array = [];
var xmlData:XML = new XML();
[Code].....
View 2 Replies
Jan 26, 2004
I was wondering if it's possible for flash to play a music stream off of di.fm. They have a jazz stream that would fit perfect for the site I'm working on.
View 2 Replies
Sep 15, 2007
i want to create a small music player (that play only 1 song) which contains- a Play button - button symbol a Stop button - button symbol a title (show what song is currently playing) - movie symbol music - i guess movie symbol
the only problem i couldnt solve (the rest are working fine) is that the play and stop buttons arent working. the scripts i wrote for them are:
on(press){
a.play();
}
[Code].....
respectively, while "a" is the instant name for the symbol which contains the song.
i think i figured out that the problem is that in the music symbol there is only 1 frame (which contains the song- i just went to frame #1 and dragged to the edit screen the song from the library).
View 2 Replies
Aug 8, 2003
I've been workning on this footer for a friend and its all working how its supposed to but I noticed that if I play the swf and listen to music at the same time, the music will jump and skip and lag and stuff like that.
I'm on WinXP so I hit Ctrl+Alt+Del to check how much of the CPU was being used and it was up at 100%, when I closed the flash player, the CPU Usage jumped back down to around 5%
[Code]...
View 3 Replies
Sep 29, 2009
'm extremely new to Flash and I don't really know how to code yet.. I'm making a website and want to have a single button that when pressed either plays or pauses the music file. I found a tutorial that worked but it has two buttons (one for play and one for stop). You can see the tutorial here:[URL] I'm hoping that someone can tell me how I might be able to change the code so that a single button acts as both play and pause (i.e.; If music is not playing then play, if music is playing then stop).
View 2 Replies