ActionScript 3.0 :: Mp3 Player Pause And Volume?
Feb 21, 2010I've got a fairly good mp3 player but im not completely sure how to make the pause, play and volume buttons to work.
[URL]
I've got a fairly good mp3 player but im not completely sure how to make the pause, play and volume buttons to work.
[URL]
the player needs to have a play, pause, stop, volume and also needs to show the track I'm currently listening to (play list).
View 1 RepliesIs there any way I can create a slider on my desktop to access some of the controls of the YouTube Video player like volume, pause, play, playback speed? I know it is a flash player, but would this involve accessing the YouTube API or something else? For example, I'd like to program something similar to what's provided by the Enounce MySpeed application (control over play back speed).
View 1 RepliesI have a Sound that is playing in the background of my movie, I am using Tweenlite to tween the volume of the sound at various point along the timeline.Now I have been asked to ad a pause button, which I have implimented and works(pauses the sound at the pausePoint), but when I resume the animation the sound I have no sound.I think my problem has to do with Tweenlight not updating the current soundvolume as when I trace the soundransform volume value it is 0 ?
ActionScript Code:
var myIntroloopTransform:SoundTransform = new SoundTransform(0);
// Toggle Pause
[code]....
I got a code for a flash player but it only has a start and stop button . I would like to know how to add a volume control and a pause button.
Here is the code;
var nc:NetConnection = null;
var nsPlay:NetStream = null;
var metaDataValues:Array = new Array();
[Code].....
I am trying to add a volume slider to my flv player, I currently have just a mute button My code is as below
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
[code]....
I'm trying to set up a slider that will adjust the volume of the video that is playing. I currently have a slider that adjusts the progress of the video that works just fine. I set my volume slider up the same way (as far as making it slide and the bounds it's contained within) but it fails to actually be draggable. I click on the slider and it disappears from view instead of allowing me to drag it. It's been a while since I've done any AS work and I'm struggling to figure out the problem here as everything appears to be correct.
View 1 RepliesExplain the code, or point me to a good tutorial for making a volume slider for an FLV player?
View 6 RepliesI'm trying to make a music player with play, pause and stop buttons aswell as a volume slider.However, I'm getting these three errors:
Line 12 1046: Type was not found or was not a compile-time constant: Rectangle.
Line 12 1180: Call to a possibly undefined method Rectangle.
Line 12 1180: Call to a possibly undefined method Rectangle.
Here is my code:
Code:
package {
import flash.events.*;
import flash.display.*;[code].....
I built this mp3 player from a tutorial.But the volume control doesn't work, and suddenly the player doesn't want to play the music.[code]
View 1 Repliesi am creating a audio flash player and i want to set the volume of the sound to 0 and then again to 60. Means i want to toggle between these values on a single button click.
View 1 RepliesI've followed the Flash Video Basics Tutoirals 1-8 here on gotoAndLearn and stopped short of making the "Volume Slider" or "Full Screen" buttons. I've been googling all over and not come up with a simple solution to adding these features to my video player. In addition, a counter for the video length would be awesome.
View 6 RepliesI am creating a custom flash video player for my friend's wife's surprise 40th birthday party. I was progressing through and everything was working fine, but now the seekbar and volume bar handles are completely gone. I was working on doing some buttons to load each video segment when I realized the missing handles. My actionscript is below:
import fl.video.*;
var flvPlayer:FLVPlayback = new FLVPlayback();addChild(flvPlayer);
flvPlayer.playButton = playbtn; flvPlayer.pauseButton = pausebtn; flvPlayer.seekBar =
[code].....
How to insert the volume control for this player and set a default value.
//Declaracion de variablesvar duracion:Number=10000000000000;
var flv:String='../../../'+unescape(_root.flvFile);
//trace(flv);//var flv='video.flv';//aviso.text=flv;
//trace(flv);
var conexion:NetConnection = new NetConnection();
[Code].....
I am working in a player and when am trying to make it fullscreen the scrubber and volume bar everything become too big in size.
View 1 RepliesI'm making a flash payer.I already finished the volume part, and I also want to add two functions.One is when user click "add button", it will increase the current volume and change the volume display colour.Another is when user click "minus button", it will decrease the current volume and change the volume display color.How do I write these two function?[code]
View 1 RepliesI'm creating a mute button for an audio player that I pieced together, and it seems to be working alright except when I advance to a new track. If the volume is NOT muted and I click a new track it's fine, but if the volume is muted (i.e. at "0") and click a new track it remains at 0 and won't un-mute when I click the button.. though if I click the button to un-mute it and then select a new track it's fine, so I think there's something in my playSong() function that's interfering, I just can't tell what it is.
Code:
stop();
Player Variables
volume = 100;
current_song = 1;
[Code] .....
I'm having some trouble with the code below. the flash player has a default volume slider, but I want to use the jQuery slider to change the volume. the volume value(nr) is changing while I move the slider, but the volume of the song doesn't.
<!DOCTYPE html>
<script type='text/javascript'>
$(document).ready(function(){
[Code].....
I want to know if it is possible to use javascript, flash or flex to make a youtube video player that is capable of controlling left/right audio channel volume. For example, mute the left channel and play right channel audio on both left/right speakers.
View 1 Replies- how can I start the player from the position "pause" (so without playing a song when I open the flash) (and so with the button in position "play")
- I would like to add the button "previous track".. what code I need to create into the "mp3player.as"? (I think the button is the same of next but with "negative image" and with different names..)
- for a button like "stop" what I have to do? (a button with a simple action like: stop(); or stopAllSounds(); ?) (I've tried but without success...)
I checked all flaskit sources and tutorials. All of them are telling about mp3 players with stop, play and pause buttons.
Is there any source or tutorial about a radio which continiously play songs ? No pause, no play, no stop button. it will play songs in specific folder nonstop in loop. ?
i want to check a boolean value whenever pressed pause button in flv player.Any Event for play/pause button pressed like
_mc.addEventListener(MouseEvent.CLICK,pressed) ?
At the moment, I am attempting to make a music player that will play a specific song of my choosing. I am stuck at the part where you can pause the sound, and then play it in the same place. I have tried many things such as using the timer utilities. Right now, when I pause it, it stops, and when I press play, it plays from the beginning.
stop();
var channel:SoundChannel;
var soundCheck:Boolean = true;
var song:Sound = new Sound(new URLRequest("song.mp3"));
channel = song.play();
[Code] .....
I have an issue with my videoplayer i can't seem to fix. When the playVideo functions is called I need to pause the music player.I tried some possibilities but flash keeps giving me an error.what I need to add to pause the music player when the video player starts and let the music continue when the video player closes ?
var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;[code]....
I'm trying to make a simple music player with only one button for Play & Pause the music. What I have now is a MovieClip with:
1st Keyframe: active state for play Button
2nd Keyframe: active state for pause button
3rd Keyframe: hover state for play button
4th Keyframe: hover state for pause button
The script works OK, and play and pause the music without problems as expected.
The problem comes after the second click in the play/pause button when the alternance between two states becomes chaotic. The button never returns to the play state although the music was paused.
This is the code:
/**** Objects and Vars ****/
var AutoPlay:Boolean = false;
var isPlaying:Boolean = false;
[Code].....
I am trying to find a way to pause a video via actionscript in the jeroenwijering media player. You can download the source here: [URL]
View 2 RepliesI want to do something that is probably very simple, but I'm having difficulty.
I want to create an audio player with play, stop, and pause buttons that I can then import into Fireworks/Dreamweaver.
I just need something simple, where there is only pause, play and stop buttons. I usually load the music within the flash movie and play from there, but I would like to build one where if you press play, the music loads and plays streaming on the spot. I have got a couple of more complex streaming style mp3 players but I would like to use a simplified streaming version. Any recommendations or code that I can just add to a button?
View 1 RepliesI'm struggling with a script to make a simple audio player. I'm loading the audio externally, using loadMovie. I have three buttons on stage ("Stop","Play", and "Pause"). First two work nicely, problem is the third one. here are the actions for the three buttons:
STOP button - Working
ActionScript Code:
on (press) {
audioContainer.unloadMovie(10);
}
[code]....
BTW, the external movie clip contains an audio track inside a movie clip. Any ideas how to make the thrid button to "pause" the audio?
does anyone have an example of a simple volume slider that controls the master volume of the entire swf?
View 1 Replies