ActionScript 2.0 :: MP3 Player - Start Playing Music On Click

Sep 16, 2009

I followed the tutorial about making your own mp3player but I don't want the music to start directly I want it to start after I clicked on play ...
Code:
// Setup sound object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);
[Code] .....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Stop Music Playing In Audio Player Automatically?

Jun 20, 2010

I'm by no means up on my AS at all and this MP3 player I've had for a while and just readjusted to suit my needs.

One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.[code]...

View 5 Replies

ActionScript 2.0 :: Stop Music Playing Audio Player Automatically?

Jun 19, 2010

I'm by no means up on my AS at all and this MP3 player i've had for a while and just readjusted to suit my needs.

One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.

Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;

[Code].....

View 3 Replies

ActionScript 2.0 :: Music Player - Create Four Different Sound Objects Since Later Songs Are Loading While The First Are Playing?

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

ActionScript 2.0 :: Music Separate From Flash File / Still Have Start Stop Music Buttons?

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

ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music

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

ActionScript 1/2 :: When File Loads In The Browser - Music Immediately Plays And Loops Until Click A Button To Stop The Music

Mar 30, 2009

I downloaded a flash template and have modified it to suit our company but there is something that I can't do. When the file loads in the browser, music immediately plays and loops until you click a button to stop the music. On our video page, we have video
that we need to play that has sound in it. How do I get the background music to stop when my video plays without having to go up and stop the music manually. The videos are loaded via an external XML document and there are no buttons in the FLA file to link code to. the website is [URL]

View 4 Replies

Stop The Playing Sound And Start Playing The Button?

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

ActionScript 3.0 :: MP3 - Stop Whatever Song Is Playing And Start Playing The New One?

Apr 13, 2010

The problem I have is I click the play button and start playing. Then I click next and when I click play for another song the songs overlap. How can I stop whatever song is playing and start playing the new one? Has to stop the prev song when I click play_brn.

[Code]...

View 2 Replies

ActionScript 2.0 :: STOPS The Music On FIRST CLICK Then RESUMES On The 2nd Click?

Mar 25, 2003

Is there an actionscript that STOPS the music on FIRST CLICK, then RESUMES on the 2nd Click? So everytime you click, SOUND STATES turns ON & OFF?

View 3 Replies

IDE :: Play Music File Once Only On Click Of Play Button Until Music Stops

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

ActionScript 1/2 :: Button To Start And Stop Music?

Jan 26, 2012

I'm fairly new at AC2 (Yes, I need to update), and I have Flash CS3.I need to find out if I can have a button that when you click it, plays a music file, and then when you click it again, the music that was playing for that button would stop.I have a text box on top of a rectangle and I selected them both and converted them to a button symbol, named it MusicFile, double clicked on the new button, inserted a new keyframe in the timeline on "down" (where it says Up, Over, Down, Hit), and then dragged the music file from the library onto the button. It works fine, until I click the button a second time, and it just keeps playing as if I pushed play twice and two copies of the sound started playing.Is it possible to make the button play the music when it's clicked the first time, then stop the music that it was just playing the second time it was clicked?

View 1 Replies

ActionScript 3.0 :: Stop And Start Background Music?

Feb 7, 2010

I have background music playing by using this code:

Code:
var request:URLRequest = new URLRequest("loop.swf");
var loader:Loader = new Loader()
loader.load(request);

this works great for playing the music but I don't know how to have a pause and restart button for the music.

View 7 Replies

ActionScript 3.0 :: Start A Music With Animation In Mute

Nov 1, 2010

I'd like to start a music with my animation in mute (volume 0), and then, use a "ON/OFF" button to hear the sound (volume 1 or 0).

View 6 Replies

ActionScript 2.0 :: Make Music Start Automatically?

Nov 22, 2010

I have a flash file with a volume controller. everything works the problem is that music wont start unless play is pressed and volume gets turned up. Obviously is something to do with the coding in the script. All I want is the music to start automatically and the volume to be up already once song is loaded. I tried playing with the script but no luck.

View 9 Replies

ActionScript 2.0 :: Getting Backgorund Music To Stop And Start?

Apr 14, 2005

i'm having issues getting backgorund music to stop and start.here's how i have it set up.i have a blank swf file that has an empty MC to load up the external swf's.i also have a MC on that same blank swf file that contains the background music.on one of my external swfs has the controller for the audio.i've been using this script to control the background music:

on (release) {
_root.audio.gotoAndStop(1);
}

basically, i'm trying to turn the audio off and on thru my external swf.i have a zip file with my files in it if anyone want's to take a look at it.

View 3 Replies

Professional :: Sound Class - Page Music Does Not Start

Apr 19, 2011

I have a Flash 8 site that plays music in the background. When I click on one of the menu choices, the timeline jumps to another frame where the selected page is. Once at that page, I want the background music to stop and the page's music to start. Here is what I have:

Attached to frame 1:
var s:Sound=new Sound(); // to initialize a sound instances
then attached to each page keyframe:
stopAllSounds();
s.attachSound("thelinkageidofthesoundthatcorrespondstothispage");
s.start();

When the timeline jumps to the page frame, the background music stops but the page's music doesn't start.

View 5 Replies

ActionScript 2.0 :: Volume Controller Doesnt Start Music?

Dec 6, 2010

I have a volume controller with a simple play and stop button. I want music to start on its on when site is loaded, but music deosnt start unless play is pressed and volume is turned up.Thia is the script I have, how do I change it simply to make to song start automatically when site loads????

onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("nachomp3.mp3", false);

[code].....

View 2 Replies

ActionScript 2.0 :: Play / Pause Buttons To Stop Then Start Music?

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

ActionScript 3.0 :: See If A Music Is Already Playing?

Apr 19, 2010

I would like to know, how i can see if a music is already playing?

View 6 Replies

Stop Music Playing On My Website?

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

ActionScript 3.0 :: Playing Music From Xml Data?

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

ActionScript 3.0 :: Playing Music From Library

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

Actionscript 3 :: API For Playing Music Clips?

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

ActionScript 3.0 :: Button Music Keep Playing?

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

ActionScript 3.0 :: Playing Music From XML Data

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

ActionScript 2.0 :: Controlling Sound - Music Automatically Start When The User Enters The Frame

Sep 15, 2011

So I am a complete novice at actionscript as was evident in my attempts to figure this out on my own. I have the following code to control the "Songs" section of my website and I would like the following features:

1. Not have the music automatically start when the user enters the frame. (I thought this was due to line 3 code but it still played after I deleted that code)

2. Add a "Back" button to go back 1 song.I currently have it set up with the following code on my "Songs" Page:

[Code]....

View 3 Replies

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

ActionScript 3.0 :: Sound From The Flv Remains Their And My Bg Music Not Playing Also?

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

Stop IPhone Playing Music When My App Starts?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved