Playing Music Via "stop - Play - Reverse - Forward Buttons"
Hello everyone,
I am working on a media player, and have received help from a member on here with how to set it up to have files play via clicking on a button in the flash file.
The problem I am having now is that I need to have the "stop" - "play" - "reverse" - "forward" buttons all work for each file that is currently playing. There is 4 audio files that can be clicked and played, but I am stuck on how to get the stop/play/fwd/rev buttons to work for each file as they are playing in the media player.
Here is the actionscript for the file.
Code:
play_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
my_media2_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
my-media3_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
mymedia_ap_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
I am sorry if this is such a newbie question, but I am taking everything I learn and applying it to projects and hoping that I can soon be able to give advice to others on this board.
Thanks in advance to anyone who can give me some insight.
Thanks.
- Robert DeVore
Cre8tiv Vision co-CEO / Lead Designer
SitePoint > Design Your Site > Flash and Actionscript
Posted on: May 27, 2006, 12:57
View Complete Forum Thread with Replies
Sponsored Links:
- Play Forward/reverse & Stop - Newb Question
- Playing Frames Forward And Reverse Triggered By Buttons
- Play And Stop Buttons With Music
- Having Troubles Creating Reverse Play And Forward Play =/
- Forward And Reverse Play
- Play Animation Forward/reverse Between Specified Frames?
- Simple Forward And Reverse MC Buttons
- [F8] Movie Plays > Stop > Reverse > Stop > Play
- How To Stop A Movie That Is Playing In Reverse?
- [CS3][AS2] MovieClip To Play And Stop From .onEnterFrame Forward
- How To: Condition, If X Is Playing, Stop It. & How To: Reverse Playback
- Playing MC In Reverse But Wont Stop, Ahhhhhh
- Playing The Play Head In Reverse
- Forward And Backward Buttons For A Music Soundtrack.
- When Button Down Play MC In Reverse When Up Stop
- Reverse Play Stop OnRelease?
- How To Change Buttons On Music Player Depending On Whether Music Is Playing Or Stoppe
- Need Stop/forward/backward Buttons
- Buttons That Play Forward And Backwards ?
- How Do I Stop Playing The Music
- Controlling A Movie Clip (playing Forward & Backward) With Multiple Buttons
- Buttons And Mc's Playing In Reverse? Multiple Problems
- [CS3] Playback Issue With Rewind, Fast Forward, And Stop Buttons
- Playback Issue With Rewind, Fast Forward, And Stop Buttons
- [CS3] Playback Issue With Rewind, Fast Forward, And Stop Buttons
- How Do You Make A Play, Pause, Forward And Back Buttons?
- Play & Reverse MC W/ 2 Buttons...
- Stop Movie, But With Image Still And Music Still Playing
- Buttons That Play In Reverse On Roll Out
- Adding Background Music, Stop And Playing At Certain Times
- Swapping Buttons W/ AS...play To Stop/stop To Play
- Problem After Adding Play/Stop Button For Music
- Buttons Playing Music
- Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
- Play/Stop Button For Text Flash File With Music
- A Simple Music Player, Play, Pause Stop A Sound?
- Movie Wont Stop Playing/ Doesent Play
- HELP: Stoping Buttons Loop, But Playing Bg Music?
- Managed To Make "Movie Clip" Play In Reverse...but Can't Stop It Anyone Know?
- Start And Stop Music Buttons
- Problem Adding Stop And Play Funtion For My Music In A Movie Clip Button
- Stop Buttons While Mc Playing
- Going Forward... In Reverse
- ::: MUSIC PLAYER - STOP And PAUSE Buttons :::
- [MX04] How To Stop Video From Playing Automatically Until User Click A Play Button?
- Forward And Reverse Controll HELP
- Forward/Reverse Control
- [F8] Fast Forward And Reverse
- Forward And Reverse Timeline?
- Forward Reverse Effect
- Forward Reverse Effect
Play Forward/reverse & Stop - Newb Question
Hi All,
First of all, great site. Lots of helpfull people on here.
I wonder if any anyone can help me. I am trying to create a menu that scrolls across the page, using a mask layer so only one heading at a time is visble. There are two buttons that control the scrolling of the menu left and right. At first i had a problem with the reversing of the Menu MC but solved that by searching this site.
The MC is 7 seperate headings. The idea is that once you hit the fordward/reverse buttons it scrolls to the next heading and stops. Sadly all i get after hitting the buttons is all 7 headings scroll past until the end (or start!) of the MC. I need to beable to get the heading to stop at the correct position until one of the directional buttons are hit again. Any ideas because i'm totally stuck!
I'm using Flash MX. I really am a numpty when it comes to AS so be gentle! And thanks to anyone that takes time out to check out this post.
This is the AS for the MC itself:
onClipEvent (load) {
stop();
var speed = 1;
var direction;
}
onClipEvent (enterFrame) {
if (direction == "ff") {
gotoAndStop(_currentframe+speed);
} else if (direction == "rr") {
gotoAndStop(_currentframe-speed);
}
}
And the forward button:
on (release) {
_root.MenuMC.direction = "ff";
}
And the back/reverse button:
on (release) {
_root.MenuMC.direction = "rr";
}
Cheers again!
Markio.
View Replies !
View Related
Play And Stop Buttons With Music
hello. im a beginner with flash and i need a little help.
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();
}
and
on(press){
a.stop();
}
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).
please help me!!
View Replies !
View Related
Having Troubles Creating Reverse Play And Forward Play =/
So i have looked at a lot of posts tryna get insight on how to do this but so far nothing . . . . I have an animation that i created in after effects, nothing to hard, just some icons going around in circles. so far it just plays in a continuos loop clockwise. what i would like it to do is when i hover over the left side of the SWF it reverses and plays (counter clockwise), the more i move to the left the faster it plays. . . . if i move to the right it plays clockwise, the more i move to the right the faster it plays. . . If i center my mouse on the swf is slows to a stop and i can select the icons to load the menu item. probably an external swf loaded into the main swf. . . Can someone guide me? I'd greatly appreciate it. I uploaded my FLA so you can check it out if you'd like. again, thanks in advance for all your help!
joseph
http://architectproductions.com/projects/draft2.fla
View Replies !
View Related
Forward And Reverse Play
I have a timeline with six images which have the effect of travelling in a loop from foreground and then into the distance. I want to have 2 buttons one for forward movement and one for reverse movement. I would like to use an on roll over event to trigger this movement. "Next frame" and "play" works fine in the forward direction. However, "previous frame" stops after only one frame and has to be "roll out" "roll over" repeatedly to make it move backwards. Is it possible to get a timeline to play backwards with actionscript or is it necessary to duplicate the timeline and reverse the frame order, jumping between the two.
If it isn't possible I think it would be a welcome addition to future flash releases.
Thanks for you wisdom.
Manson
View Replies !
View Related
Play Animation Forward/reverse Between Specified Frames?
Hi!
I've just started out with Flash as I need to put together a front page menu for a website, which has a logo a little like a clock. The idea is that the 'minute hand' moves around to point at whichever option/button the user is hovering their pointer over....
... I've got a tweened animation of the 'minute hand' moving between all the options that it would have to move between, with a keyframe at each button that it would have to stop at if the user were hovering their mouse over it.
What I want it to do is move the 'hand' between buttons - maybe backwards, maybe forwards, maybe from frame 1 of the anim to the 30th, maybe from the 20th back to the 10th, depending on which button it is pointing to (the last button the mouse hovered over) and which button the user is now pointing at.
I'm hoping that there's some kind of variable that'll give me the current frame of the animation, and a command I can use to play from that frame to a desired frame (which I can execute from ActionScript attached to that relevant button) whether that be forwards or backwards.
Is this possible? If so, how? In theory it should be really simple to do, but I just can't seem to find the commands/access the anim's current frame value etc. I have experience of programming, but this is my first time with ActionScript/Flash!
ANY help appreciated!!
View Replies !
View Related
Simple Forward And Reverse MC Buttons
I would like to make a very simple slider effect.
I have a movie clip with several images on it and I want two buttons to control movement left and right. (Or in this case forward and backwards.)
When you click the right button I want the move clip to play forwards and when you click the left button I want the movie clip to play backwards.
Is this possible?
Could someoone plese help me this action script.
Thanks
Gee
View Replies !
View Related
[F8] Movie Plays > Stop > Reverse > Stop > Play
I am fairly new to involved action scripting. I have successfully scoured flashkit threads for years to get my answers but this one has been driving me crazy for the past couple days. I have tried numerous solutions but none of them do exactly what I am trying to do.
I am creating an online portfolio that I want to control with two buttons that will play forward on release and stop at every piece unless the user is pressing and holding down - I also would like the scrolling animation to play in reverse on press and stop at every piece unless press and hold which happens to be skateboards in this section. I am posting the .fla for this section. This is what I have been able to accomplish so far. I moved everything into the main timeline from a movie clip because I could not get that to work at all. Should I move it back to movie clip? I also want it to stop at the first board.
here is the code I was able to peice together that just plays continously without stops.
Empty movie clip on second frame.
PHP Code:
onClipEvent (enterFrame)
{
if (_root.goBack)
{
_root.prevFrame();
}
else
{
_root.nextFrame();
}
_root.frameNo = "Frame : " + _root._currentFrame;
}
Forward button.
PHP Code:
on (press)
{
_root.goBack = false;
}
Reverse Button.
PHP Code:
on (press)
{
_root.goBack = true;
}
I have only done basic stops; goToAndPLay, getURL and such I am a little out of my league here but I started the ball rolling and would like to make this work as I intended. Any help making this do anything close to what I am describing would be much appreciated
View Replies !
View Related
How To Stop A Movie That Is Playing In Reverse?
Hey guys, newbie to the forum here. I'm glad i found it.
I have this project that contains two buttons and right and left side of the stage. Basically, when you click on the right, the movie plays backwards and when you click on the left the movie plays forwards.
I'm upset because, as the movieclip plays forwards, i've inserted several stop(); commands to stop at key junctures. However, when my movieclip plays backwards, it does not obey my stop(); commands.
I would appreciate any help that can be given to me.
Thanks.
View Replies !
View Related
Playing The Play Head In Reverse
Hello all making a menue bar that when you click on Navigation it will scroll out. But would like for it to scroll backwords if the visitor clicks on the menue button again. from the current fram in reverse. Here is the code that I am using.
on (release) {
do {
if (_root.NavMovie._currentframe >= 2) {
_root.NavMovie.prevFrame ();
prevFrame ();
}
} while (_root.NavMovie._currentframe.count >= 2)
}
What I have is a movie clip with the Word Nav as a button when I click on that I want it to control the actual content witch is in another movie clip.
As of now what it does is stop. It is as if my loop is not working. Can anyone see anything wrong or is their an easier way to do this.
Thanks,
Attila
For my website
http://www.glorynaspiration.com/
Email
attila@glorynaspiration.com
View Replies !
View Related
When Button Down Play MC In Reverse When Up Stop
Hello AS3 Gurus!
I am having a lot of problems getting the AS3 Timer class to replace the functionality of AS2's setInterval.
You can download the FLA here, to see what I have so far:
download_fla
What I want to have happen is as follows:
(1) Clicking on the certain peel, shows a different "layer" of a product that is on a turntable (works as desired).
(2) Clicking the right facing arrow rotates the product to the right and loops around and around until the mouse button is released (works as desired).
(3) Clicking the left facing arrow rotates the product to the left (playing the movieClip in reverse in an indefinite loop) until the mouse button is released (this I can sort of get to work -- it plays in reverse, but does not stop when the mouse button is released. Also, it does not loop -- in reverse -- continuously until button is released and all buttons become inoperable after pushing the left arrow the first time).
I cannot figure out how to "kill" the timer event to stop the turntable on button up and I cannot figure out how to have it loop continuously in reverse.
I would sell my soul for a .playReverse(); method!
Can anyone shed any light on the problem?
Also, there is commented out code in the FLA of how I used to solve this problem in AS2. If I could hammer this code into AS3 format/syntax, I would be happy with that too -- The most elegant solution is what I am after.
Any input is greatly appreciated.
Anyone up to the challenge?
Regards,
-john
View Replies !
View Related
Reverse Play Stop OnRelease?
I'm using this script:
Code:
stop();
btnfwd.onPress = function(){
_root.onEnterFrame = rep;
}
btnbck.onPress = function(){
_root.onEnterFrame = reg;
}
function rep(){
this.gotoAndStop(this._currentframe+1);
if (this._currentframe == "fin") {
delete this.onEnterFrame
}
}
function reg(){
this.gotoAndStop(this._currentframe-1);
if (this._currentframe == 1) {
delete this.onEnterFrame
}
}
and I want btnfwd to stop on release so I tried this:
Code:
btnfwd.onPress = function(){
_root.onEnterFrame = stop();
}
but that doesn't work....what's wrong with this?
P.S. I know I know, gotta stop annoying you guys with actionscript questions. I promise I'm buying a book soon
View Replies !
View Related
Need Stop/forward/backward Buttons
hi all,
I have a flash file of a bottle rotating, and what I want is do is to let the user stop the bottle, or rotate it forwards or backwards.
Do I need to have 2 flash files, one rotating one way, then take a copy and reverse it to go the other way, and link them to separate buttons, or is there an easy way to do this
View Replies !
View Related
Controlling A Movie Clip (playing Forward & Backward) With Multiple Buttons
Hey guys, i started tinkering around with actionscript a few weeks back. Hence, i don't really know the more complicated syntax. However, since i was learning programming (C, VB etc) a looong time back, i figured i'd be able to work out the underlying logic.
Problem: I can get a movie clip to play forward and backwards with two buttons. However, when i'm adding more buttons, which are supposed to get the movie clip to start playing from wherever it is, and to come and stop at x frame, i'm hitting a roadblock.
My stage currently has 3 buttons, with the following code:
BUTTON 1
Code:
on (release) {
_global.newLink = 1;
_global.buttonValue = "one";
}
BUTTON 2
Code:
on (release) {
_global.newLink = 2;
_global.buttonValue = "two";
}
BUTTON 3
Code:
on (release) {
_global.newLink = 3;
_global.buttonValue = "three";
}
My movie clip has the following script on it:
Code:
onClipEvent (load)
{
stop();
_global.currentLink == 1;
_global.newLink == 1;
_global.buttonValue == "none";
}
onClipEvent (enterFrame)
{
stop();
if (_global.currentLink - _global.newLink < 0)
{
_global.dir = "fwd";
}
else if (_global.currentLink - _global.newLink > 0)
{
_global.dir = "bkw";
}
else
{
_global.dir = "stay";
}
// FOR FORWARD MOTION
if (_global.dir == "fwd")
{
if (_global.buttonValue == "two")
{
if (this._currentframe == 15)
{
stop();
}
else
{
this.nextFrame();
}
}
else if (_global.buttonValue == "three")
{
if (this._currentframe == 24)
{
stop();
}
else
{
this.nextFrame();
}
}
}
// FOR BACKWARD MOTION
else if (_global.dir == "bkw")
{
if (_global.buttonValue == "two")
{
if (this._currentframe == 15)
{
stop();
}
else
{
this.prevFrame();
}
}
else if (_global.buttonValue == "one")
{
if (this._currentframe == 1)
{
stop();
}
else
{
this.prevFrame();
}
}
}
else if (_global.dir == "stay")
{
stop();
}
}
Where am i screwing up?
View Replies !
View Related
Buttons And Mc's Playing In Reverse? Multiple Problems
First I have gone through previous posts and am not having much luck with my current situation. In my file I have a movieclip. This movie clip when rolled over reveals an arrow that enters the stage containing the name of the movie clip. The arrow is activated by the rollover of the movie clip. When the user rolls off the movie clip the movie clip stops where it is and plays in reverse. (I have gotten this far with no problems) However the problem starts here. The movie clip continues to loop when the user stays over the button. I have tried entering stops but to no avial. Second, I need this movie clip to act as a button and to be able to link to a frame further ahead in the scene (ie. onrealse goto play (frame) in current scene.) obviously that won't work. I have attached my file to show where I have gotten so far. If someone could fix it and post again i would be most appreciative, or give me solid instuctions.
thanks
View Replies !
View Related
Playback Issue With Rewind, Fast Forward, And Stop Buttons
I'm setting up stop, rewind, fast forward, pause and play buttons for a flash movie. I was able to get the play and the pause buttons to work but the others aren't functioning. Please see my attached FLA file.
I used the following tutorial:
http://www.webthang.co.uk/goto/tutor...?cat=4&tut=116
I'm using Flash CS3 Professional with Actionscript 2.0.
View Replies !
View Related
Play & Reverse MC W/ 2 Buttons...
Hi there, I'm a total newbie when it comes to AS 3.0. And this is my first post. Through a little research I found "Actions" can no longer be directly applied to button objects itself, but rather in the timeline now.
My first question is, for each different button, do they need to be on 2 different layers in my timeline when I apply the "Actions"?
Second... I'm trying to make a sliding menu that has 1 button on the left side to reverse the menu, and another button on the right side to advance the menu. I've already created the MC with the sliding menu. Total frames are 15. I'd also like it so that once the menu advances to the last frame, that the advance button will not reset to frame 1, but stay on frame 15, unless the reverse button is activated. If someone can be so kind to post how the heck the AS would be setup for each button, I'd be really thankful.
-oprime
View Replies !
View Related
Adding Background Music, Stop And Playing At Certain Times
Okay, when I start my movie, I want the background music to play, but when I go to the next scene I want it to stop and play a different song. I am using actionscript, I exported my song using the linkage thing, so I want to use actionscript also because I will be creating play and stop buttons. If you have any suggestions on those too you can post them Thanks to anybody that can help!
View Replies !
View Related
Swapping Buttons W/ AS...play To Stop/stop To Play
Hi,
I'm looking for how to swap buttons with actionscript. If my FLV is playing, display the stop button. If it's stopped, display the play button.
Here's my AS so far.
Actionscript Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("intro.flv");
stopButton.onRelease = function(){
ns.pause();
_root.bulletlist.stop();
isplaying = false;
}
playButton.onRelease = function() {
ns.pause();
_root.bulletlist.play();
isplaying = true;
}
rewindButton.onRelease = function() {
ns.seek(0);
_root.bulletlist.gotoAndPlay(1);
if(isplaying){
ns.seek(0);
}else{
ns.seek(0);
ns.pause();
}
}
Could I get some pointers or a good link?
Thanks!
View Replies !
View Related
Problem After Adding Play/Stop Button For Music
Hello,
Can anyone help me please? I have created a flash movie by Flash 5 that embeded with a background music. But I would like to allow user to stop/play the music at anytime. Therefore, I added the Play and Stop buttons. I find that it not only stop the music but also stop the movie. After I press the play button, it will start the movie and music from the 1st frame.
I hope that the music can be stop at anytime and the music will be resumed matched with the movie after user pressed Play button.
This is my current setting:
1. I add a layer with 1st frame with the music with Sync = 'Start" and the 3rd frame with the music with Sync = "Stop".
2. I add a layer with 1st frame to add all buttons and then press F6 at the end of movie:
Right Click the Play button and input the Action code - on Press { goAndStop (1);}
Right Click the Stop button and input the Action Code - on Press { goAndStop (3);}
Can anyone tell me how can I do to get my expectation.
Many Thanks!
Samson
View Replies !
View Related
Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
Hello Forum,
Is there a way to use a skin/buttons just like the FLVPlayer that will give the same control to a movie clip (aka SWF file)?
I have a few swf files that are movie clips - not video. I would like to be able to load the movie clip, and be able to start, stop, pause, mute audio just like the FLVPlayer component does, but for a swf file.
I would like to have a "component" with the buttons, etc and be able to load the movie clip using the loadMovie method, and play the movie clip. I have a clip that starts playing after I load it, but would like to load it, and have it stopped, and then play the clip using buttons, etc.
I do not want to add buttons to each of my swf files, but have one movie clip with buttons, and load a swf into it.
Any tips will help,
thanks,
eholz1
View Replies !
View Related
Movie Wont Stop Playing/ Doesent Play
Hey, I have a movie here that first loads a sound and the main movie once you click on the stage. As it is doing this it shows the precent and bytes uploaded. Than it is supposed to start the movie.
Unfortunatly, when I make a new scene, or a new anything on the next frame than it completley bypasses the loading part. To stop this, I put a stop(); function on the second frame, now I cannot get it to start again so save my soul. I have done everything, I have made a new button and put some AS telling it to play when clicked, and every other thing. I cannot figure out what the heck is wrong.
If anyone has any solutions/ or a better way for me to do this, PLEASE POST!!!
THANK YOU!!!
View Replies !
View Related
HELP: Stoping Buttons Loop, But Playing Bg Music?
Dear fellow FlashKit members...
I'm using Flash MX (v6) and am a student doing a project...
I have a question:
When any scene opens, a few object fly in from the sides... by tweening; But I made an 'actions' layer and did a 'stop' so they would not reloop... and keep on flying in...
However I want to have music in the background, but it too stops because of the 'actions' layer which is supposed to stop the objects from keep on flying in more then once...
But I want the music layer to keep on playing...
How can I accomplish this?
View Replies !
View Related
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.
View Replies !
View Related
Problem Adding Stop And Play Funtion For My Music In A Movie Clip Button
ok i made this movie clip button using this tutorial on this website. tutorial website link
The audio button im trying to make is, one that slides in from the side when u move the mouse over it and when u take the mouse away it goes back to hiding. heres a link of the button im talking about link to the button im trying to create
heres my attempt to build the audio button. link to my website im still building. you will see the music note. Just move the mouse over it to see what im talking about. theres no audio in the file cause im not sure which way i need to add the audio in the flash movie, to have it work properly with the buttons.
my test website its still under construction
so basicly i just need help making my button have sound and getting the sound to start and stop when i click the play or stop text thats in the movie clip button. please help me im new to flash and its really hard to me. im more of a photoshop person and im not good at coding at all. but i do what i have to do to get the job done.
View Replies !
View Related
Stop Buttons While Mc Playing
hi i have a number of buttons in a flash movie that show different photos. It's pretty simple (you can see it here: http://www.oliperphonic.com/tst-page.html)
The problem i have is that if you click one button then impatiently click the next one it won't work as the mc is still playing and kind of gives the impression that you have to click the button twice. Is there anyway to stop the buttons from working while the clip is playing out?
Another question but not so important is: You'll notice how if you click the pics from the bottom up the previous little button fades back in and the new photo shows. However if you don't go in order from bottom to top the wrong pic fades back in (should be the last one you were on). Is there a simple way of making this so? Just some ideas would be great, i'm a bit of a flash simpleton i'm afraid.
Many thanks for any help
View Replies !
View Related
Going Forward... In Reverse
Greetings,
This is my first post so pardon the ignorance...
I've seen this posted all over the place but nothing seems to work. I need to have a BUTTON play a segment of time in REVERSE.
(more specifically) i have 6 pictures i want to be able to scroll from right to left when the forward button is pressed and from left to right when the reverse button is pressed.
My forward button goes 4 frames and stops on the 1st frame of the next picture tween. This looks and works great. My back button goes back 4 frames to the previous picture but it does it INSTANTANEOUSLY. I would like the reverse motion to be the same rate at the forward motion.
Any ideas?
View Replies !
View Related
::: MUSIC PLAYER - STOP And PAUSE Buttons :::
Hi all,
I had this problem the other week concering an audio player that im creating for a Flash application. Ive looked at examples online, but alot do not use a range of tracks or are linked to online tracks. I am currently using .swf files to play the music, but I think this is where the problem begins (also these are not set to stream but 'event'), the pause and stop button is not working!!. Anyone know how to get these working?? thanks!
View Replies !
View Related
[MX04] How To Stop Video From Playing Automatically Until User Click A Play Button?
I am using Flash MX 2004.
I have made a video player from scratch and not from the pre-baked components.
I have the video player with a play/pause button, rewind button, a loader, buffer, mute button, etc.
The flv. Videos load into a list box via an xml file which then the user can click the desired video link and switch from video to video.
Using action script I want to know how to stop the video from automatically playing until the user clicks a play button when the player first opens.
var nc:NetConnection = new NetConnection();
nc.connect (null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns)
rewindButton.onRelease = function()
{
ns.seek(0);
}
playButton.onRelease = function()
{
ns.pause();
}
View Replies !
View Related
Forward And Reverse Controll HELP
Hello, thanks ahead for all the help. What I’m trying to accomplish here is control of a movie clip. Take a look at www.kingsasylum.com , do you notice that scroll menu on the bottom left. What I would like to see is when you press a link on the menu to the right, on release the scroll box will either scroll forward or backwards depending on what link is pressed, and stop appropriately. Thanks guys! Flashkit rocks!
View Replies !
View Related
Forward/Reverse Control
OK I have two sites in which I need to do this:
Site #1
I have a flash file that has an arrow pointing left and an arrow pointing right. I need them to control a MC so that if you mouse over the left arrow it plays the MC backwards and it stops when you mouse out. I also need it to play forward when you mouse over the right arrow and also stop when you mouse out.
Site #2
I need to do the same thing only with a slider rather than arrows. This will go frame by frame stopping each time the slider is drag in whichever direction.
If someone could help me with this it would be greatly appreciated!
-= Bill =-
View Replies !
View Related
[F8] Fast Forward And Reverse
I am using this code for my ff and rev buttons. I don't like them but its all I have for now. I know there is a better way. If I press the ff button the video needs to advance by 1-2 seconds. If the user press the revers button it need to do the same but move back 1-2 seconds. I am using the FLVPlayer Component so doing ns.seek will not work.
my current code
Code:
//Rewind
rewind_btn.onRelease = function (){
myPlayer.playheadTime = 0;
}
//Forward
forward_btn.onPress = function (){
myPlayer.playheadTime = myPlayer.totalTime-1; }
any help would be appreciated
View Replies !
View Related
Forward And Reverse Timeline?
Hey im using flash CS3 with actionscript 2.0. what i want to create is a column for an online magazine, the column will display a list of content, this list will be longer than it appears and have a "next" and "prev" buttons located at the bottom. i can set it up so than when next is clicked the content shifts and displays more, the problem is, what do i do about the "prev" button? i cant make the timeline play in reverse can i? i have a test FLA at www.waffleconezone.com/test.html ..
thanks!
View Replies !
View Related
Forward Reverse Effect
i have a video in the center of my project, at the bottom are 2 bottons (forward and reverse)
when you roll over the 'forward' button i want to play the video one frame at a time forwards, and vice versa for the reverse. could someone help me with the code please.
thank you.
View Replies !
View Related
Forward Reverse Effect
i have a video in the center of my project, at the bottom are 2 bottons (forward and reverse)
when you roll over the 'forward' button i want to play the video one frame at a time forwards, and vice versa for the reverse. could someone help me with the code please.
thank you.
View Replies !
View Related
|