See Related Forum Messages: Follow the Links Below to View Complete Thread
Start, Stop Music Trouble
How do I make a music player that doesnt screw up when you have more than one scene?
(Music player is very simple, Start, Stop)
Music Start/stop At The Same Button
Hi guys and gals!
Im trying to add some music to my flashsite, and Ive written this peace of code for a button that is supposed to stop a specific sound if the sound is playing, and start it if it isnt playing.
on (release){
if(playing==false){
_root.firstsound.start("firstsound1");
playing=true;
}
if(playing==true){
_root.firstsound.stop("firstsound1");
playing=false;
}
}
The stop action works, but I cannot seem to get the sound going again, once Ive stopped it!!!
Heelllppppp, anyone!
Start And Stop Music Buttons
well i have a sound file which i want to play in the background.
and basicalling i want the user to be able to mute the music if they want, and also if they deside they want the music on again then they press the play button and the music starts playing again.
How can i do that?
I have two buttons, a play button and a stop button.
Music Start And Stop Question
Hello. Im looking to use a music track to start on frame one, and end when the user hits a button and move to fram 5. I do not know the actionscript. Thanks in advance for any help.
EDIT:: I have fuigured out how to get it to play, now how to i get it to stop on frame 5?
Music Start Stop Actionscript
On my FMX animation I have 2 buttons. One to start and one to stop the music. Could anyone give me the Actionscript to make this happen?
Many thanks
Magyar
Music Start Stop Actionscript
On my FMX animation I have 2 buttons. One to start and one to stop the music. Could anyone give me the Actionscript to make this happen?
Many thanks
Magyar
Music Stop And Start (newb I Guess)
I suppose this should be an easy question, but suppose I have 2 mp3 files I wish to play and then at a certain point in my movie I want it to stop playing and switch to the other mp3. A transition would be nice, but it is not required. Any help would be great thanks.
Single Button To Start And Stop The Music
sub:single button to start and stop the music
How to autostart the music in loop when the movie begins ( music is in library)
and how to use a single button to stop the music and again on click of the same music to continue the same music.
ps:
i checked this link:
http://kennybellew.com/tutorial/onebutton.htm
but could not understand anything.
Thanks in advance.
Sub:single Button To Start And Stop The Music
sub:single button to start and stop the music
How to autostart the music in loop when the movie begins ( music is in library)
and how to use a single button to stop the music and again on click of the same music to continue the same music.
ps:
i checked this link:
http://kennybellew.com/tutorial/onebutton.htm
but could not understand anything.
Thanks in advance.
Start And Stop Background Music With One Button
I'm working on a small problem, but I can't solve it!
I'd like to have a button or even a picture called music
which should stop and play the background sound. To stop is no problem,
but to start it again if the sound has stoped, is quiet difficult!
How can I start the sound again?
Could anyone give me a hit, how to program that?
Thank's a lot for helping me!
How Do I Stop All Sounds In The Middle Of A Scene And Start Another Music Background
Hi All
I am working with Flash 4.0
I am trying to stop all sound on a keyframe in the middle of a scene and start a second sound a keyframe later. I can get the second one started but the first one doesn't stop.
I have set the property on the keyframe to stop all sounds, but the sound doesn't stop.
Any ideas?
I can get the sound to stop when I click a button to go to the next scene but not in the middle of the scene.
Thanks
Digital Editor
Sound Object: Pause, Start, Stop.
I had to creat a player that would stop, start, pause a music track.
I first Imported a sound and Choose to export the symbol I gave it a name of "tosca"
I got this code from a tutorial.
In my first keyframe I inserted this script
s = new Sound();
s.attachSound("Tosca");
i = 1;
function timeme() {
now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
_root["nowtime"+i] = (Number(hours)*3600)+(Number(minutes)*60)+seconds;
_root.newstarttime = _root["nowtime"+i]-_root.nowtime1;
i++;
}
s.start();
timeme();
But thier is a little problem that a neophyte like me can't seem to solve for the life of me. I created a fla and published it with a name called "sound.swf". It works pefectly when I view the .swf file. But when my main movie "main.swf" plays it loads my sound.swf fine but does not play any music? Does anyone know what I did wrong.
Thanks
Sound Object Start Stop Exactly At Button Press
Require code urgently to stop 'sound object' using pause button.
Upon pressing pause/play button...movie stops + sound stops, pressing again it plays from exactly where it had been paused.
Also set up sound object with animated sequence but when calling identifier at different chapter bookmarks in movie sound will not sync with existing file.
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
How To Make MC Clip Play When Music Starts, Stop MC When Music Stops
Hey,
I've got a audio player on my flash website and I want to have a audio spectrum analyser (those little squares that move up and down randomly) start playing when the user starts playing music and then stop when they stop the music.
Is there a simple way to do this?
Cheers
Max
Music To Start Again?
Hi, this problem may seem extremely basic to most of you but I cannot get the music to start again once I stop it.
At the moment I have a movie clip containing 2 buttons (pause and play). When pause is pressed the button changes to play and the music stops, when play is pressed the button goes back to its pause state and the music is supposed to start again, except it doesn't. What I have done is create a sound object (s) and a link to the music track and then used s.stop () (this works) and s.start() (doesn't work).
Any ideas??
Music - Immediate Start?
I was working on something really stupid because i was bored, and it finally came to me that I didn't know how to make the music start right away instead of you haveing to click the play button to start it...
You can view it here...
http://www.denz11.com/test2/car
Also...
On the music... i wanted to make it so when u enter the Flashtrak that it would make the mouse appear so that you didn't have trouble click to start the music or stopping it. And hten went you left the flashtrak that it would automtaicly go hidden again. Everytime i tried it just made the mouse viewable all the time.
Thanks
Music Start
I was wondering how you can link mp3 to a flash image and when the mouse rolls over the image it plays the music and when the mouse rolsl off the image the music stops
Start And Stoping Music?
I have three different songs to choose from in my moive. How would I stop a song when a user picks another song?
Start Music Button
I have tried everything, and I cant get a start music button to work. Any suggestions?
Music To Start Automatically?
Hi, what I want to do is have music playing through flash as soon as a page opens but also want to have a stop and play button so people can turn it off if they want to. I have so far created a play and stop button, and in the properties of each, added the music so when you press play it plays & on stop it stops.
Now I have to make it so as soon as the flash file is loaded, it automatically plays. What would be the best way to go about doing this?
Thanx.
Need Code To Start Music
Hello-
I have created a very basic music player for my movie. It currently requires the user to click play to start the track. I would like the music to start on entering the page. I am using CS3 and AS2. What code should I add to accomplish this?
Here is the code so far:
slider_1.onPress = function(){
this.startDrag(true, _root.groove_1._x, _root.groove_1._y, _root.groove_1._x + 64, _root.groove_1._y);
}
slider_1.onRelease = function(){
this.stopDrag();
}
play_btn.onRelease = function(){
mysong = new Sound();
mysong.attachSound("macrositegroove");
mysong.start(0, 50);
}
stop_btn.onRelease = function(){
stopAllSounds();
}
slider_1.onMouseMove = function(){
newPoint = new Object();
newPoint.x = this._x
newPoint.y = this._y
_root.groove_1.globalToLocal(newPoint);
_root.mysong.setVolume(-1*newPoint.x);
}
Thanks,
Nathan
How To Start Music From Where It Left Off?
I can't seem to figure out how to make the music play from where it left off at. I basically have a movie clip and inside the movie clip I added a second keyframe. The first keyframe is on and the second keyframe is off. So I go back to the main timeline and have the button on one layer and the actions on a seperate layer. Here is my code so far. The button when converted into a swf won't start till I click the button. It starts and stops but I can't seem to figure out how to get the music to resume the song where it left off instead of starting the song over when I play it again. I would greatly appreciate any help! Thanks
PS. Here is my code for this button it is only one frame long.
var counter_var:Number=new Number(0);
var s1:Sound= new Sound();
var ch1:SoundChannel= new SoundChannel();
s1.load(new URLRequest("audio/07shifter.mp3"));
button_mc.addEventListener(MouseEvent.CLICK, goslide);
function goslide(e:Event):void {
//add 1 to value of counter:
counter_var++;
trace(counter_var);
if (counter_var==2) {
counter_var = 0;
}
//If the button is off
if (counter_var==0) {
//make playhead of MC go to a on frame
button_mc.gotoAndStop(1);
//play the song
ch1=s1.play();
}
//If button is on
if (counter_var==1) {
//make playhead of MC go to a off frame
button_mc.gotoAndStop(2);
//stop the song
ch1.stop();
}
}
Problems With Play/start Music
Hi everybody again
Now I'm working with a couple of buttons in my page. The first pauses de music (that is loaded when the swf is loaded) and the second plays again it.
The problem I have is that the sound.start does not start at the miliseconds I tell to it. My actionscript is this:
in the first frame:
stop();
musica = new Sound();
musica.loadSound("../musica/1.mp3",true);
musica.play(2);
in the pause button in first frame:
on(release)
{
posicio=_root.musica.position/1000;
trace(posicio);
musica.stop();
gotoAndStop(2);
}
and the play button actionscript in the second frame:
on(release)
{
trace(posicio);
musica.start(posicio);
gotoAndStop(1);
}
the traces inside the two buttons work, they return the same seconds... but when it's time to start again, it does from the beginning of the song. Why?
I've also tried this: musica.play(posicio); in the play button but it doesn't work...
Any idea of what I'm doing wrong??
:::::actionscript Telling Music And Graphic To Start
I bet this question has been asked a million times.
ok...you have an on and off button to play a music loop.
Ithe main timeline I have movies spread over 20 frames each. at a certain point to make it easy for myself.
I have a movie which displays an 'on and off button audio button' as well as a graphic equaliser. this works fine you press the button and the music loops; as well as the graphic eq moving.
The same as flash kit use (ish)
In the main time line a put a music movie outside of the screen. on frame one of this movie it has a stop command. the music plays on frame 5 and is told to play 99999 times.
Why is it that in the main timeline with another action, I tell the movie to play music and graphic; it only plays music and stops on 1 frame of the graphic?
telltarget audiosound
goto and play 2 (which is where all the little squares start going up and down.
This is driving me out of my mind. I have named all movies as instances and everything seems to work accept this initial graphic start. you press the audio on/off button and the music stops and press it again and the graphic works fine?????????
Scott
Getting Music/sound To Play At Start Frame
How do I get music to play at the starting frame of a Flash MX file? Like the music for a website or something.
What is the code?
Any help would be greatly appreciated.
Picture Scroll Only To Start When Music Starts Help Please
I am trying to have the 1 picture start scrolling when the music plays but the music is on the timeline. How do i make it that when the pictures are preloaded the music starts playing immediatly
www.afterofficemiami.com/ages.html
www.afterofficemiami.com/ages.fla
Can anyone help me here please???
Stop And Start Mc`s
Hi here’s a little problem that I have I have made an EQ mc (blocks that go up and down to the music) the mc is in my lib and I drag it out onto my scene
I have a two buttons named off and on
How do I stop and start the mc using the buttons
I know its some sort of action script
Thanks for any help with this
stig
Stop And Start
I've created a long but simple movie with photos and text. When it is complete it starts over again. i'd like it to stop and only begin again when it is clicked.Is this possible? If so how would I accomplish it?
Thanks Daniella (fafnir)
Start/stop
I'm trying to make a .swf file so when you click on it, it'll play. like a start button of sort. I've tryed everything but I can't seem to get it to work. If someone could help please do.
[F8] Stop One Xml Start Another
Alright need a bit of help with this. I am making a gallery that will show case peoples work. I have broken down to the indivdual artists. but it seems when i click a link the the page does not load the new xml sheet, just keeps the first one.
Is there a piece of code that can switch off the first xml and switch on the next. So what i need is when you click a button, stop artist.xml start art.xml. So i guess how do you unload one xml and load up another.
All help is wonderfull
Img Pan Start/Stop
I am currently trying to edit Creatify's Img pan slider class (http://www.kirupa.com/forum/showthread.php?t=227359) so that it can stop and start panning on click of a btn. I am having trouble and hopeing that someone can help out or point me in the right direction.
attached is Creatify's Img pan zip
Start, Stop
i need help so that on rollOut from a button, it will play frame 15 that has a stop command in it instead of making it stop.
can anyone help?
Dont Start Music From Begining When Link Is Clicked
Hello all, I have a small problem I made a flash file where a music file is loaded and stops and starts with buttons I have made. that works fine however when i place the flash file the music loads fine but when i click a link to go into another section of my site the music starts over.
How do i have the music continusly play through out the site when different links are clicked.
I got the code for my buttons from another members post here on the forums here is the link
http://www.actionscript.org/forums/s...ighlight=music
I just need some help on how to make it continusly play with out starting from the begining when a different link in my site is clicked.
thanx for any help or links that might be helpful.
Controling Start/stop From A Different Swf
ok here is my question
i have a button that loads a new .swf within a movie clip (the script isnt really important but i uncluded it just in case)
Button:
on (release) {
gotoAndPlay (38);
loadMovie ("abt_lg.swf", _root.transition.content);
}
now within the movie "about_lg.swf", i have a button that i would like to make the movie clip from the last file (_root.transition) play.
is this possible to do?
thanks!
Greg
Start AVI W/mouseover-How To Stop
A have a page with 5 jpg photo's. Each jpg has a 30 second movie that is started with a mouseover. How can I stop all other movies when the user passes the mouse over a different photo? More that one movie running eventually causes IE to bomb.
(extra stuff stripped out)
<img border="0" src="APSVid1.jpg" dynsrc="IMAGES/APS00000.AVI" loop="1" start="mouseover" >
Thanks
Start And Stop Drag?
OKay, i was wonderin' HOW i can make it so if a I click on an object, an MC or a button, it will startDrag, and when i let go it will stopDrag. I hae this coding:
Code:
on (press) {
startDrag ("", true);
}
on (release) {
stopDrag();
}
also I need this to hitTest to see if it is in another object.
Now, my plight is on press it startDrag's but it doesnt stopDrag on release, also it doest lock mouse to center like i want it to, henceforth the true part, but i cant figure out how to get it to work... BAH!!!
Zakarus
Start/stop Sounds
Hi all,
how can i stop/start the sounds in the buttons by assigning action to another button?
thanks''2
Stop And Start New Scene
I am trying to build a Flash file that will play a scene, stop and wait for a key press, then continue to play the next scene. I will end up with some 20 - 30 scenes, or segments. Is there a way to do this easily AND should I NOT use scenes for this?
My animating is fine, but my ActionScripting is pathetic!
Same Button For Start And Stop
I wonder how to make one button with actions that make it possible to for example load a´ MC and onload it, or for example to start drag an object with the mouse and stop drag.... Im a beginner so i would be werry glad to get the full code???
Please help me! Dr. Frank
How To Stop And Start Sound
I have a flash file which has a movie clip that contains sound. The instance name of which is 'soundMovie'. I have placed the movie clip on the stage. NOw when I run the file I can hear the sound. THe problem is with the following script that I have placed on the first frame of the main movie timeline (NOT THE MOVIE CLIP CONTAINING THE MUSIC). i.e when the following script is attached to the first frame, the music stops. my question is why doesnt the music start if I have written soundobj.start(). If I remove the live soundobj.start it runs fine. any help would be highly appreciated !!!!
soundobj = new Sound(_root.soundMovie);
soundobj.stop();
soundobj.start();
Start & Stop Sound
I am playing a wave file and would like to let the user start or stop the sound if they want. What is the best way to do this?
Thanks
|