Professional :: Making Buttons Play Music?
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
Similar Posts:
Nov 9, 2010
I have my mp3 audio clip and made my play and stop button. I am using cs4 and as3. I want to have the play and stop button on my main page but still have the music play when the users clicks onto one of the buttons which takes them to a new page.
View 6 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
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
Apr 20, 2010
What I am trying to do is have multiple play/stop buttons on one page. I've been watching tutorials trying to figure out the best way to do this, but it seems there are so many different ways. I am making the band's name as the play/stop button (one color as play, a different color as stop). I've successfully done that to one button. What I'd like to be able to do is add anywhere from 3-6 songs (all different bands/buttons) per page.
Also, if one song is playing and another song is clicked, I would like to stop the first song and start whatever one is clicked so there aren't multiple songs playing at one time.
And if it's not too much to ask, once one song is either done playing or another is clicked, if it could go back to the first state of the button, that would be amazing.
I will paste my code below for the button I have. If there is a simpler way to do it, I'm totally open to that. Like I said, there seems to be so many ways to do everything, I'm not sure which is best.
var loadSnd:URLRequest = new URLRequest("Song1.mp3");
var thisSnd:Sound = new Sound();
var sndTrans:SoundChannel = new SoundChannel();
thisSnd.load(loadSnd);
[Code]....
View 3 Replies
May 23, 2005
How can I get the pause button to stop sounds and music, and the play button to start them up again? As of now, it only stops the animation, and lets the music continue.
View 1 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
Jan 23, 2009
It seems so simple but Iam trying to do it actionscript 3.0 and don't know it very well.
[Code]....
View 1 Replies
Sep 16, 2010
How can I create a music flash file that will play on every page of the web site, I am going to have about 7 pages.
View 1 Replies
Oct 11, 2009
I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?
View 2 Replies
Apr 3, 2012
I have a document which is basically a catalogue page, and I'm trying to make it so that when you click on an image, a movieclip of the image fading in larger appears, so it will look essentially like it's been zoomed in. To do this I put the movieclip inside a button. I have the button working fine, when you click it, it does exactly what it's supposed to, but I have no idea how to set it so that when the button is clicked it stays in the 'down' position, so you don't have to hold the mouse down. And also how to get back to the main screen afterwards, since the movie does take up the entire stage when played. Is it possible to do this?
View 4 Replies
Jul 18, 2010
I'm just trying to make it so the video in my swf (the flv) does not immediately play when a web page opens. I have: imported the .mov into flash, creating a flv file
given it a skin converted it to a symbol (Movie Clip)
given it an instance name of movie_Clip
created an actionscript layer with the simple code of: movie_Clip.stop();
Shouldn't the clip be stopped upon opening the SWF file? How can I make it be stopped?
View 4 Replies
Jun 15, 2010
this is probably a daft question but I'm a complete novice so bear with me. I need to know if it's possible to upload a picture to my Flash stage (a row of buttons I made in photoshop) and then somehow select each of these buttons and turn them into working button symbols? Or do I have to (very annoyingly) upload each button as a seperate picture in a seperate layer before turning it into a button symbol?
View 10 Replies
Sep 8, 2010
I am importing a series of mockups of a website into Flash CS5 as symbols, and it already has elements drawn in Illustrator CS5 that I want to use as buttons. I want to place those symbols into the Timeline and just use simple AS3 to make it go from one mockup screen to the other to make it into a slightly more functional mockup. 1. How can I take the mockups done entirely in Illustrator and make the buttons functional?
View 2 Replies
Apr 16, 2010
I want to do something that is probably very simple, but I'm having difficulty.
I want to create an audio player with play, stop, and pause buttons that I can then import into Fireworks/Dreamweaver.
View 2 Replies
Dec 23, 2004
i'm making somekind of music / video player in flashmx2004. it plays streaming mp3 en flv files. random people can put a link into the players database. ofcourse there will be some that insert a dead link, now i want to check with actionscript (1.0) if the link is dead and if so, the player automaticly will skip this track. this is what i've got allready to load te streaming sound:
[Code]...
View 1 Replies
Aug 18, 2010
Intended idea: User is able to set a beat speed for a music making program.
I'm trying to use for (var i:Number = 0; i < (variable); i++) {"addChild" to duplicate movie clips to visibly show where the beat is and then move the movie clips at a constant rate to the left to get it out of the way and then eventually remove the child.
Problem: The movie clip isn't moving. Once it's spawned and in it's position as defined by the function, no outside function can control it.
Code:
stop();
var yesorno:Boolean;
var numba:int;
var origbeat:MovieClip;
[code]....
View 2 Replies
Sep 27, 2010
We are using default CS5 skins with an flvplayback component built through action script 3. When playing certain videos (and only certain videos, however there isn't yet a pattern), the play/pause, stop & seek buttons are completely unresponsive. They don't change stats on hover & they are unclickable.However, the fullscreen button does always work, and upon going fullscreen and coming back out, the buttons now work again. So far, the problem was seemingly at its worst displaying a video that was encoded with Sorenson spark (an older codec) and we wondered if it had to do with the file itself, the headers, anything of that sort. But the fact that the skin and buttons work fine once entering and exiting fullscreen - that is perplexing.
View 1 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
Apr 13, 2009
I'm making music visualization in papervision3d using FlashDevelop. The script generates 150 cubes each acting as different tone (from basses with red colors to high notes with blue).The song starts, everything works fine, but after 44 seconds song stops. I hadn't wrote function that would do that. I've turned off every useless visual functions and even papervision3d rendering. The scene is just black and the song still stops playing after 44 seconds.File is included with:
Code:
[Embed(source = "../assets/8bp069-05-she-session.mp3")]
because I'm not writing it in flash.
I've tried different song and it stops after 1:10...Flash uses ~30MB of Ram and 50% of my Athlonx2 64 2.6Ghz in action.
Here's some code: sound
Code:
[Embed(source = "../assets/8bp069-03-she-pioneer.mp3")]
private var Music:Class;
private var sp:Sound = new Music();[code].........
those last 3 functions have nothing to do with playback.Am I doing something wrong with computeSpectrum function? Here's the scrieennie of it in action: Of course it's like an alpha version of what I'm planning to do.
View 1 Replies
Oct 5, 2011
I am using Flash CS5 on an iMAC, running OSX 10.6. I created a file that uses a Combobox on the first frame, and I would like to connect the buttons to go to and stop/play on multiple labels.
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
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
Oct 9, 2010
This is a real general question but I'll explain what I'm trying to ask for.I'm trying to make a button that when you press it, you continue on to the next "scene." I know how to do that now.I also want music to play when clicking the button but the issue remains, how will the music keep up if the user is pressing it too soon? I don't want it to end abruptly so I need a code that fades the music out (or in).
View 1 Replies