Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 3.0 :: How To Stop Music Playing Automatically


I've used a example mp3 lpayer built in flash to put on my website. I've tweaked it so that it fits my design and it seems to work ok. The problem is the music starts playing automatically where ideally i want it to play when the user hits the play button.

Below is the actionscript, can any1 tell me how to stop it playing as soon as the flah file loads?

ActionScript Code:
// Flash MP3 Player XML
// Developed by [url]www.flashmo.com[/url]
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code]....


View 2 Replies (Posted: 07-09-2009, 02:22 PM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 3.0 :: Stop Music Playing Automatically?
i am trying to stop the music playing straight away, and instead only when the button is clicked.

Code:
//Stop at this frame
stop();
//Create a new sound object

[code]....

Posted: 10-27-2009, 06:13 PM

View 2 Replies!   View Related
ActionScript 2.0 :: Stop Music Playing In Audio Player Automatically?
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]...

Posted: 06-20-2010, 07:08 AM

View 5 Replies!   View Related
ActionScript 2.0 :: Stop Music Playing Audio Player Automatically?
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].....

Posted: June 19th, 2010

View 3 Replies!   View Related
ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music
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

Posted: December 13th, 2005

View 3 Replies!   View Related
Stop Music Playing On My Website?
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]...

Posted: 04-30-2010, 05:14 PM

View 14 Replies!   View Related
Stop IPhone Playing Music When My App Starts?
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.

Posted: Jan 14, 2012 10:12 AM

View 1 Replies!   View Related
Actionscript 2.0 :: Stop Music Playing In One Swf When Another Swf Starts?
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.

Posted: Tue Oct 26, 2010 5:48 pm

View 1 Replies!   View Related
ActionScript 3.0 :: Stop Music Playing Straight Away?
i am trying to stop the music playing straight away, but instead only when the button is clicked.

Code:
stop();
//Stop at this frame
var music:Sound = new Sound()

[Code].....

Posted: November 2nd, 2009

View 6 Replies!   View Related
ActionScript 2.0 :: Stop Music From Playing OnLoad?
I have a pretty easy question for you Flash gurus regarding a script I am using toplay MP3s via an XML file. The example I found does the job just fine, but it plays the 1st song right away when it loads. I would like to stop the song from playing on load and let the user activate it by pushing the play button instead.[code]...

Posted: June 23rd, 2010

View 2 Replies!   View Related
ActionScript 3.0 :: Stop A FLV From Playing Automatically
How do you stop a FLV from playing automatically when the user ends up doing something that doesn't include pushing the stop button but causes the FLV to no longer be visable. The project I'm working with. [URL]

Posted: Dec 9, 2010 1:10 PM

View 4 Replies!   View Related
ActionScript 3.0 :: When Clicking To Go To Another Section / Stop Music From Playing
This is the code I'm using with mp3 sound. I looking for some code when I click off, the music stops playing.[code]

Posted: Nov 19, 2010 2:27 AM

View 3 Replies!   View Related
Actionscript 2.0 :: Music To Stop Playing When Entering A New Scene?
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]....

Posted: Sat Jan 03, 2009 5:22 am

View 1 Replies!   View Related
Actionscript 3.0 :: Stop The Music From Playing When You Exit That Frame?
i am building a flash web site using the goto and stop method, with each "page" of the website being a different frame. on one page i have a music player, and it all works fine, and if you press stop before leaving that "page" or frame it all works well.the problem i've run into is if you go to another frame while the music player is still playing the music continues playing and when you go back to the frame the music player is on and press stop it doesnt do anything and if you press play it will start playing the song again with both songs playing over eachother.how to stop the music from playing when you exit that frame. here's the code for the music player:

Code: Select all//Music Player
var musicReq:URLRequest;
var music:Sound = new Sound();[code]..............

Posted: Thu Jan 22, 2009 10:45 am

View 1 Replies!   View Related
Professional :: Stop Video From Playing Automatically?
I imported a video in my "about me" section of my website with a skin chosen from within flash. However, when I click within another section of my website, for example "Home" and go back to the "about me" section, the video starts playing automaticly. If your speakers are turned all the way up, you will jump.

What is the code I need to add to my video's actions layer to stop the video from playing automaticly and give the the user the ability to play the video themselves?

And what would be the code if I wanted to reduce the volume at 50% for example but have the video play automaticly?

Posted: Apr 29, 2011 4:20 PM

View 5 Replies!   View Related
ActionScript 3.0 :: Stop MP3 Player From Playing Automatically?
It is perfect, except that I'm not sure how to keep it from playing automatically. I tried removing the playSong() part under the loadSong function and it just removes the ability to play the song altogether. Here is the code:

import fl.controls.ComboBox;import fl.data.DataProvider;
///////////////////////////////////Variables/////////////////////////////////var song:Sound;var channel:SoundChannel;var xform:SoundTransform;var

[Code].....

Posted: May 16, 2011 1:13 AM

View 7 Replies!   View Related
ActionScript 2.0 :: Music Separate From Flash File / Still Have Start Stop Music Buttons?
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?

Posted: October 11th, 2009

View 2 Replies!   View Related
Movie Clips And Background Music - Unable To Stop Music At The End Of The Animation?
I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.

1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.

2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.

Here's the file --> Pepper and the Vacuum of DOOM!

Posted: 04-30-2011, 09:29 PM

View 1 Replies!   View Related
ActionScript 1/2 :: When File Loads In The Browser - Music Immediately Plays And Loops Until Click A Button To Stop The Music
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]

Posted: Mar 30, 2009 1:22 PM

View 4 Replies!   View Related
ActionScript 2.0 :: Make Music Start Automatically?
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.

Posted: 11-22-2010, 12:04 PM

View 9 Replies!   View Related
ActionScript 3.0 :: Stop Class File From Automatically Starting And How To Stop It After It Starts?
How do I stop a class file from automatically inserting itself into the .fla file. I want to insert it manually into a frame, and then tell it to stop after I leave the frame.The following is the code included in my .as file.

ActionScript Code:
package {
import flash.display.*;
import flash.events.*;[code].........

Posted: 10-13-2011, 11:29 PM

View 3 Replies!   View Related
Played Back Music Automatically Stops When You Click Button
I recently used one of those XSPF Flash player buttons on a website and of course it worked, played back music automatically, stops when you click button... but one weird thing I noticed is the song being cut off before it ends... One song I have is 4 minutes long, and only plays for 1.5 minutes..

Posted: 04-06-2009, 03:03 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Controlling Sound - Music Automatically Start When The User Enters The Frame
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]....

Posted: 09-15-2011, 04:46 AM

View 3 Replies!   View Related
Professional :: Playing Scenes In Test Movie Animations Stop Playing?
I am using AS2 in CS5.5.I am creating a project for a class that introduced me to adobe flash. The issue is I have gotten to a certain point about 15 scenes. During say the 15th scene scrolling through the timeline animations works fine, playing it on test scene works fine. When I go to play it on test movie it stops at a certain point. At first I thought it might have been a misplaced stop action but there is none to be found. The weird part is every other scene I create after that continues to freeze as well, the images are there, but the animations won't play. All my previous animations play before those with the issue, it's justThese new ones won't play for some reason in test movie, but work completely fine in test scene and the timeline.

Posted: Dec 4, 2011 11:04 PM

View 4 Replies!   View Related
ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?
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]...

Posted: Apr 10, 2011 4:25 AM

View 3 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved