Urgent: I Need PLAY , PAUSE And STOP Button
Hello Gurus,
I need to have PLAY, PAUSE and STOP button for my 30 mins tutorial in flash. Please help, its urgent.
Thanx in advance.
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-09-2005, 12:29 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Anyone Know How To Stop,play, And Pause...
- Stop.Pause.Play....?
- Stop.Pause.Play....?
- Play / Pause & Stop Help
- Help--How Do You Stop/play/pause A Movie?
- Pause/Stop/Play Controls
- Songs: Stop And Play And Pause
- Simple PLAY/PAUSE/STOP For MP3
- Stop Play Pause Buttons
- Need To Add Controls Like Play, Stop, Pause
- Play, Stop, Pause, Rewind, Etc.
- Need To Add Controls Like Play, Stop, Pause
- How-to Pause, Stop, And Play External Timeline
- Timeline Control - Play, Stop, Pause, Etc.
- Coding Stop/play/pause Buttons
- Pause, Stop And Play Audio Actionscript
- Pause, Stop And Play Audio Actionscript
- How To Make Play/pause And Stop Buttons?
- Keyoboard Controls To Play / Stop / Pause Movie
- Contolling (Play,Pause,Stop) A Streaming Video
- Anyone Know How To Insert Player Control Buttons, Play Stop Pause Etc...
- Trully Advanced Play Pause Stop Controls Question
- How Can I Make My Video Control Bar(play, Stop, Pause Etc.) Fade?
- A Simple Music Player, Play, Pause Stop A Sound?
- How To Play Sound Automatically And Trigger The Play And Pause On The Same Button?
- Doing A Flash Presentation With Audio And Would Like Tips On Pause-play-stop Buttons
- Help Tips Needed Please For Using Audio With Play-pause-stop&fwd Buttons In Flash
- How To Create A Menu That Selects Sound And How To Make It Play Stop And Pause
- Pause Button With _levelN.stop()
- Play & Pause Button
- Pause And Play Button
- Play/pause Button
- Pause/Play Button
- Pause/Play Button Help.
- Pause/play Button
- Pause/play Button
- Play/pause Button
- Pause And Play Button
- Play And Pause In One Button.
- Play/Pause Button?
- Play/Pause Button
- Play/pause Button
- Play/Pause Button
- Pause And Play Button
- Play/pause Button
- Play/Pause Button
- Play/pause Button Help
- Pause Play Button
- Play/pause Button Help
Anyone Know How To Stop,play, And Pause...
i'm putting a friend's movie into a flash site...i was wondering if anyone knew what actionscript i need to STOPthe movie...PLAY the movie...and PAUSE the movie at a command..thank you in advance
Stop.Pause.Play....?
I have an online seminar that has time animation to audio.
I want to make a contol panel that allows the user to pause the entire swf if there phone rings or something. Currently you can't stop it at all... and if I ad a Stop button, then I can only direct the user to the begining again...
I have tried loading the full swf in a MC, but don't seem to have the right scripts to make it work....
Sample here:
http://www.pflyz.com/flashhelp/seminar_ha2_PPT19.swf
If you brave thru all the audio... you can see the next/back arrows load at the bottom right, they simply jump users from scene to scene, i only have one scene on this sample so the nav menus wont work.
Anyway, if someone can tell me how to control that main swf that would be great!
Stop.Pause.Play....?
I have an online seminar that has timed animation to audio.
I want to make a contol panel that allows the user to pause the entire swf if there phone rings or something. Currently you can't stop it at all... and if I add a Stop button, then I can only direct the user to the begining again...
I have tried loading the full swf in a MC, but don't seem to have the right scripts to make it work....
Sample here:
http://www.pflyz.com/flashhelp/seminar_ha2_PPT19.swf
If you brave thru all the audio... you can see the next/back arrows load at the bottom right, they simply jump users from scene to scene, i only have one scene on this sample so the nav menus wont work.
Anyway, if someone can tell me how to control that main swf that would be great!
Play / Pause & Stop Help
hey, i have just watched the video tutorials, and realised there is only a replay and play/pause button.
i was wondering how to:
1) Make a Play / Pause button, so when its playing and i click it the PLAY symbol turns into a PAUSE symbol and pauses the video, then when i click it again it starts playing again and the PAUSE symbol turns back into a PLAY symbol? (like the one on gotoandlearn site)
2) Make a stop button? i am using ns. and there is no stop action? i really need one that takes the video back to the start and stops it.
please help, cause im stuck!
thx =D phatmat.
Help--How Do You Stop/play/pause A Movie?
hey guys:
i'm sure this has been covered before but, i tried doing a search throughout this site and couldn't find the answer so i'm turning to you flash experts for help! i've created an offline flash demo (.exe) in Flash 5 that is broken up into 7 separate scenes...basically i want to have interactive controls in each scene to be able to let the user stop/play/pause a scene-- ex: < o II > Also, if you know of any tutorials or samples online covering this topic...please post up here or feel free to email me.
yikes! my boss is breathing down my neck to get this done asap! so any help or information would be greatly appreciated...
thank you.
aquan@lycos.com
[Edited by clownalley on 05-29-2002 at 03:15 PM]
Pause/Stop/Play Controls
HI all,
I'm trying to program nav controls for a flash presentation I am working on. Pause button is supposed to freeze the frame very much the same way a vcr would pause a tape. Play should "unfreeze" the presentation and stop should "turn it off" (may be take them to a frame of "black"). Please help!!! I am under a deadline and my brain is fried.
Thanks,
Inna
Songs: Stop And Play And Pause
Hello
I want to create a mini stereo function in a swf movie. Basically there will be a list of 5 songs. The user will be able to click on the songs and have the option to stop play and pause.
Could anyone guide me to find some tutorials or some help...
Greatly appreciated.
Thanks
Simple PLAY/PAUSE/STOP For MP3
I am using Flash MX 2004 Professional and I'm new to flash.
All that I'm trying to accomplish is the following...
1. Make a swf that will play an MP3 file.
2. Don't care if it's embedded or external.
3. Preload? Not sure if it's needed, but I
am trying to keep myself open to it.
4. All that I want to see in the html are
the three buttons [PLAY, PAUSE, STOP]
5. Ideally, if the PLAY button displayed
some type of animation while it was
active, that would be great.
The code I'm using is attached.
It works when I test it. But then it won't work in IE at all (no mouse overs, no behaviors).
My sincre thanks to anyone who can settle this dilemma.
John
Stop Play Pause Buttons
Hi I want to change look of my stop play pause buttons.
I have tree instances of one mc with shadow.
If I clik on play
mcPlay.shadow._visible = 0
and that's ok.
If I click on pause I need to check which buttons was previously clicked.
I can set _visible to 1 for every others buttons but this is not elegeant way.
That can be very hard to accomplish if I have 20 buttons.
Can you give me some hint?
Is "Listeners" useful for that?
Need To Add Controls Like Play, Stop, Pause
where can I find information about this please? I just want to add controls so that people can control if they play or pause or stop the animation.
Can anyone point me to a tutorial or somewhere about howe to do this please? Thanks.
Play, Stop, Pause, Rewind, Etc.
does anyone know the codes for the following buttons?
Play button
Stop button
Pause button
Rewind button
Fast Forward button
Need To Add Controls Like Play, Stop, Pause
I just want to add controls so that people can control if they play or pause or stop the animation when I export the fla.
Can anyone point me to a tutorial or somewhere about how to do this please? Thanks.
How-to Pause, Stop, And Play External Timeline
Hi FlashKit'ers. My scenario:
I have a button that loads an external .swf into an empty MC. I need to be able to pause, play, and stop the external .swf's timeline using the pause, play, stop button located on the mainstage where the empty MC is also located.
Now, i know how to do all of the functions if the timeline i want to pause, play, and stop is the mainstage's timeline, but i have no idea how to do all of those functions if the timeline i want to pause is an external timeline. I'm sure there is a very simple answer to this problem, and any ideas or answers would make me one very happy camper.
take care.
Timeline Control - Play, Stop, Pause, Etc.
Is there any where I can find a tut on how to build a timeline controller that has play, stop, pause, etc buttons.
Something along the lines of http://www.macromedia.com/resources/...apps/overview/
or
http://www.macromedia.com/software/breeze/overview/
Does Macromedia Flash MX 2004 or Breeze have these components built in. Any help would be great.
Coding Stop/play/pause Buttons
Dunno why the pause concept is giving me such a hard time. I know I need a variable to hold sound.position but any help would be appreciated.
Sound object is "narration" and resides on the main timeline. Buttons are in a dynamically loaded mc (not that this makes any difference).
I have 2 separate "Back" and "Forward" buttons that, on release, load a new topic and thus load a new mp3 into the sound object. Problem I'm having is that my "marker" variable which gets set to a narration.position on release of the pause button is doing its job too well. When the next mp3 is loaded, hitting play begins the new mp3 at the previously paused position. Can't seem to clear out "marker" to save my life.
Thanks in advance...
Pause, Stop And Play Audio Actionscript
im trying to make a play, pause and stop btns controlling a mp3 file which is in the library which has a linkage id of Speakers
ive manage to get the pause and play to work but now incorperating a stop button isnt working for me
Code:
var snd:Sound = new Sound();
snd.attachSound("Speakers");
btnHalt.onRelease = function() {
snd.stop();
}
btnResume.onRelease = function() {
snd.start(snd.position / 1000);
}
restartbtn.onRelease = function() {
snd.start();
}
ive also looked into the O'Reilly one to http://www.oreillynet.com/pub/a/java...p1/index1.html
but i still dont think even that will help me i think i need some kinda if statement?
to say basicly if you have pressed the pause btn, then the play btn, play from state pause at, but if you have pressed the stop btn then pressed the play btn, play from start and also if the play btn has been pressed and the audio is playing if pressed again dont play again do nothing.
How To Make Play/pause And Stop Buttons?
hi, would someone please be able to post the actionscript for these three buttons? i would very much appreciate it :)
i was wonderin if there was a way to make a pause button, with ns. but one that when you press it then press it again it wont start. so that no matter how many times you press it the movie will stay paused (now like ns.pause when you click it pauses and when you click it again it starts, i ned a dedicated pause button)
and how to make a play button? so that when its paused, the only thing to start it again is pressing the play button and that when itsplaying you can freely press the play button and nothing will happen? (again, ns.pause doen't work on the play button since if we have it there the play button is now able to pause the video)
also, how do i make a stop button? so i click it and it takes me to the start of the video and stops it from playing?
thx. phatmat.
Keyoboard Controls To Play / Stop / Pause Movie
Hello,
I am attempting to create a presentation in Flash.
I will be creating flash movie animations but would like to control them just by a click of a mouse button or by pressing some keys on the keyboard.
eg. N = stop ; M = play ; space bar = pause.
Can someone tell me how I would do this?
thanks,
andrew
Contolling (Play,Pause,Stop) A Streaming Video
Hi,
I have a graphic with 3 buttons on (Play, Pause, Stop). Within this graphic, I have placed a 'Flash Video File' (imported this) which streams when hosted on a webpage.
I want to be able to control this video with the 3 buttons. At first, I embedded the video (not streamed) and controlled the video with movie clip actionscript on the buttons. This does not work with the streaming video.
If anyone can help, this would be much appreciated.
Kindest Regards,
Rob McCarthy
Anyone Know How To Insert Player Control Buttons, Play Stop Pause Etc...
Hey guys,
i have a small series of movies that i made, i was wondering if i could get the code, or .fla file for an external player. Or just pretty much have stop, play, pause fast forward, and rewind buttons in the actual flash movie, if anyone has those answers i'd sell my soul to find out how i can get that to work, or any other helpfull info would be greatly appreciated.
Thanks a bunch
Eugene
Trully Advanced Play Pause Stop Controls Question
Hey there!
Have an issue.
I'm working on a technical animation. Info about it:
There are about 30 mc on my movie, distributed into their own layers.
Three mc of them control the rest ones (including themselves), using several pointers and variables.
The main timeline (_root) has just 1 single frame.
The AS logic (in a ludic way, no sintax needed to show it):
if _global.varX (varX is redefined thru mcs) == value1
{
_root.mc4.gotoandplay(1)
_root.mc5.gotoandstop(45)
_root.mc9.gotoandplay(45)
}
if _global.varX (varX is redefined thru mcs) == value2
{
_root.mc4.gotoandstop(45)
_root.mc3.gotoandplay(45)
_root.mc10.gotoandplay(1)
}
Just to position you, reader: in almost all mcs, from frame 1 to 45 means open the related valve or closure, and 45 to 60 means closing the related valve or closure.
Those to say that the transitions of the movie is provided by a scope of variables and pointers, and it get on loop as this scope reaches a certain level, ie, no timeline involved.
And here's the issue. I didn't get how to control de movie play pause stop using play() or stop(), or gotoandstop(), or gotandplay(). I've tried hard, getting vars values, passing new values, tons of tries. It losts its params, and the move get malfuncion, lost its logic.
Any ideas?? There is an answer whuch I don't know, because when testing the movie (Control -> Test movie) esc and enter buttons works perfectly. Fscommand could be used?
Well ppl, I don't know what to do, and I do need a solution. Or a flash of light that clarifies some way to try another solution.
Thank u all!
-gooloo (egidio)
How Can I Make My Video Control Bar(play, Stop, Pause Etc.) Fade?
I have a .swf video clip of my demo reel on my portfolio website. I'd like the control bar to fade shortly after you move your cursor off of the movie clip, so that it doesn't distract viewers.
You can check the URL below to see. I'm using one of the default Flash player skins.
http://www.mdstewart.com/artwork.html
Any help is appreciated, thanks!
Doing A Flash Presentation With Audio And Would Like Tips On Pause-play-stop Buttons
yeah im doing a project for Nokia and it requires about 3 mins of spoken audio in it..
anyhow its quite straight forward..some bar graphs..text and speak.
But i havent really done a project like this before exactly so i basically need it to work so that you are able to stop or pause the speak at any given moment..then be able to play(continue from where you stopped and left off) and be able to skip back or fwd thru-out the speak.
I think i will split up the 3 mins of speak into several smaller bits instead of having 1 great long wav on timeline..might be best????
But does anyone have any good tutorials..or open FLAS for me to see how this could best be done..
Id be very greatful!!
Cheers!
Chris
Help Tips Needed Please For Using Audio With Play-pause-stop&fwd Buttons In Flash
doing a flash presentation with audio and would like tips on pause-play-stop buttons
yeah im doing a project for Nokia and it requires about 3 mins of spoken audio in it..
anyhow its quite straight forward..some bar graphs..text and speak.
But i havent really done a project like this before exactly so i basically need it to work so that you are able to stop or pause the speak at any given moment..then be able to play(continue from where you stopped and left off) and be able to skip back or fwd thru-out the speak.
I think i will split up the 3 mins of speak into several smaller bits instead of having 1 great long wav on timeline..might be best????
But does anyone have any good tutorials..or open FLAS for me to see how this could best be done..
Id be very greatful!!
Cheers!
Chris
Pause Button With _levelN.stop()
Hey im trying the tutorial about Streaming Audio, but i wanted to add a Pauzebutton.
First i load in the music with this action:
Code:
loadMovieNum("Nice.swf", 2);
And on the pause button ive got this action:
Code:
_level2.stop();
I thought this should work, but it doenst
Can some 1 tell me what i am doing wrong?
Greetz
Play & Pause Button
Hi, Flashizens
I have made a movei in whichi i used play and pause button. Both the buttons are different! Actually, I want to use a single button with mouse over. I mean, when i play movie, the pause button should be active and when I pause movie, play button should be active. And one more thing, I need mouseOver effect for the button!!
HOW TO DO?
Pause And Play Button
Hi,
I wonder how I do a pause button.
I guess pause is the same action as stop but I want the button to change.
I have done a button for pause. When pressed, I want it to change to a play button. So when they press the button it starts to play again.
How do I do that?
Thanks for fast answer
/Anna
Play/pause Button
Hey everybody!
I am trying to make a simple pause/play button.
Thanx
Pause/Play Button
I've searched everywhere and I can't find a solution to my problem, so if you do find a relevant post, I'm really sorry.
So here's my problem: I want to get rid of the quicktime plugin for my audio file on my website and integrate it into my flash menu. All I want is a pause/play button that changes, just like the quicktime plugin.
I have found tutorials that teach me how to pause/stop. I have learned to make two buttons within a movie clip.
I have also found tutorials that teach me how to pause a sound file using a variable and having it pick back up at same spot where it left off.
However, I cannot combine these two in anyway, because the pause/stop tutorial uses the stop() function and that seems to be stopping the entire movie, including the sound.
This is what I have so far, inside the movie clip, for the buttons:
-----------------------------------------
Frame 1
myMusic = new Sound(myMusicMc);
myMusic.attachSound("myMusic01");
myMusicVolume=100;
myMusic.setVolume(myMusicVolume);
myMusic.start(0,999);
playing=true;
--------------------------------------
Frame 2
stop();
-----------------------------------
Frame 2 Button
on (release) {
myMusicPosition=_root.myMusic.position/1000;
myMusic.stop("myMusic01");
gotoAndPlay(3);
}
-----------------------------------
Frame 3
stop();
---------------------------------
Frame 3 Button
on (release) {
myMusic.start(myMusicPosition,999);
gotoandplay(2);
}
-----------------------------------
Is there ANYWAY I can make the movie stop without having the sound stop?? Please let me know! Thanks!
Pause/Play Button Help.
Good morning fellow flashers. I need some help. I'm working on a video player. Now I have two buttons that I would like to combine, play and pause. Much like I tunes. Any way i want to script the button so when I hit the play button the movie startes and then the button turns to the pause function. So if any of yall know of some ways to go about this help me out please, thanks
Pause/play Button
Can anyone take a look at the attached and tell me what i am doing wrong? I have a simple animation that needs to be paused and played by button and i can't seem to get it worked.
Thank you very much!
Pause/play Button
Hi there,
I have been trying to upload a fla i have downloaded from this site, but for some reason it's not attaching. Anyway, does anyone have a simple fla, which would help me? I need a button which when pressed pauses a animation in the main timeline and then when pressed again it plays again?
Anyone??!!
Play/pause Button
Ok, I know that there are probably 3 million of these threads, but I have questions a plenty. You see, I am trying to make a music quiz and I need a play and a pause button. I have no clue where to start.
Also, in flash MX, as far as I know, you can't type your own actionscript. So if I find help, I can't copy and paste the actionscript right into my flash. I could use some help here. Thanks!
Pause And Play Button
Code:
if (_play==true) {
_root.mapper.stop();
_play = false;
this.gotoAndStop(2)
} else {
_root.mapper.play();
_play = true
this.gotoAndStop(1);
}
}
first press of button should stop the movie 2nd press should play it.
it stops it but i cant start it again.
how do i fix this???
Play And Pause In One Button.
Hi all
I am looking for a way to incorporate both play and pause functions into one button… to control a sound file. Does anyone have any simple code to do this? On the first press the button should play the sound file and on the second press it should pause, and so on. Any help would be much appreciated.
Thanks Hugo.
Play/Pause Button?
Hi,
I'm trying to create a play/pause button. In it's 'up' state, the button displays a play icon (triangle) and once it's clicked I want the icon to change to a pause icon (two vertical lines). Creating the button using a normal button symbol won't work because once the user has clicked the button the button should stay changed to the pause button until it's clicked again. (Using a button symbol would mean that on mouseDown, the pause button would be displayed but would then revert back to the play button on mouseUp).
Does anyone know how to get the button to change and stay changed once it's clicked?
Cheers in advance.
Ste.
Play/Pause Button
I have created my buttons, but cant seem to get them to work for my flash "presentation". I have about 19 movie clips, each on their own layers and keyframe. The buttons need to be able to control each of those movie clips, so as they play on their own layer one ofter the other, that the buttons can pause it at any moment, then play on from where it was paused. Can someone please help me with the actionscript that should go with the buttons, I have tried, but no success. This is like a "powerpoint presentation but only done in flash". Also where must the buttons be placed? On the main timeline? because that is how it is at the moment? so must the buttons have some actionscript guiding it to control the frames inside the movie clip? how do i do that?
Ask if anything might be unclear.
Thank you for any help!
Play/pause Button
I want to use pause and play buttons.
The pause button is working well but I have a problem with the play button.
Clicking the play button the music starts from the beginning and not from the point it stopped.
Any useful link?
Play/Pause Button
Hi all,
I'm trying to create a button that will play and pause the timeline. I have already created one button that has Action Script to play and one button that has Action Script to stop. My new button needs to be a single button that when clicked it plays the timeline and switches to a pause button. When the button is pressed again it stops the timeline and switches back to the play button.
Any help is greatly appreciated.
Working with Flash MX and 8.
--Steve
Pause And Play Button
can any one tell me the code to make a button pause and the code for a button to play on that frame so it doesnt start the movie over again
edit: oh and i use 2004 flash mx edition
Play/pause Button
I know there are about a million tutorials on play/pause buttons out there but none of them really gave me what I need. I have multiple SWFs, each with a song embedded in them. They are loaded into level99 when a button is clicked. I need the code for a simple button that on click will pause the sound in level99 and then on another click will resume the sound again.
Thanks,
Mike W.
Play/Pause Button
Hi does anyone have a script to play/pause an animation I have created? Thank you
Play/pause Button Help
Hi, newbie here.
Question about play/pause buttons; I've got a pause button which refuses to work. I've tried
Code:
on (release) {
stop();
}
and
Code:
on (press) {
stop();
}
but they don't work. The play button works fine though. The file has music, so maybe that's a contributing factor? Because I've tested the buttons without music and they work fine.
Another question: I want to know how to place a "Play" button before an animation.
Thanks in advance!
Pause Play Button
i need to make a pause and play button
how can it get it to pause MC too????
tell target? wuah?
Play/pause Button Help
I have a slideshow that plays when a button is clicked, and pauses when clicked agian. Now I want the button to change the graphic when clicked from a play picture to a pause picture and back again. I have found stuff for as2 but not really for as3 (at least nothing I could understand), so can someone give me some pointers? My as3 code for the current play button looks like this:
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
function onPlay(evt:MouseEvent):void {
if (playOnClick){
timer.start();
playOnClick = false;
} else{
timer.reset();
playOnClick = true;
}
|