ActionScript 2.0 :: 1 Button Mp3 Player?

Nov 2, 2005

i have 3 bars they move up and down randomly.they are stoped at first. how would i make it play a mp3 when clicked and mute the mp3 when clicked again?

View 1 Replies


Similar Posts:


Actionscript 2.0 :: Flash MP3 Player - Previous Button And A Volume Scrolling Button?

Apr 18, 2009

I am completely new to this with flash and action script. I checked the Flash MP3 Player tutorial and I wonder how I'm doing a previous button and a volume scrolling button in action script?

View 1 Replies

Flash :: Add Button-like Behavior To A Video Player Button Component?

Feb 23, 2011

I'm trying to create a simple "universal" media player which presents the same user interface (or as similar as possible) for video and audio playback. Unfortunately, FLVPlayback seems not to be able to handle audio files as far as I can tell, so I'm using a Sound and SoundChannel.

My video playback is handled using an FLVPlayback component which is "wired" to standard controls on-the-fly when needed. What I want to do is wire them to the Sound / SoundChannel when I'm playing a sound so that the same UI widgets work in both cases. I'd like to avoid building all my components from scratch because the FLVPlayback component does a lot of nice stuff "for free" but it's starting to look tricky.

The standard PlayPauseButton is a MovieClip with two layers, one containing the Play button (and with the instance name play_mc) and the containing the Pause button (pause_mc). Inside one of these is a movie with some code like this:

stop();
this.upLinkageID = "PauseButtonNormal";
this.overLinkageID = "PauseButtonOver";
this.downLinkageID = "PauseButtonDown";

[Code]....

View 1 Replies

ActionScript 3.0 :: Mp3 Player And Ignoring Button

Apr 21, 2009

Im fairly competent with flash just getting my head around cs3. The problem i have is that i have built an mp3 player with a menu system similar to an ipod (in other words as the mouse moves around a circle and highlights text then the line moves down in the menu window) Now i have that part sorted and what happens is on hovering over the text it skips to a specific frame where the text is highlighted and on pressing the centre button it goes to another frame holding the content I need.

Now the issue i have is after using this part i press the menu button to get to the main frame again to choose another sub menu it works fine and i can come back to the main menu but try and go to the first again and the button seems to keep the same script and it instantly goes to the 2nd frame. This may sound confusing but what i need is a way of telling flash to ignore the previous action of the button and learn the one im currently telling it.

View 1 Replies

ActionScript 3.0 :: MP3 Player Button - Start Over The Top

Jun 24, 2009

I've made a very basic mp3 player with simple play and stop buttons and it works just fine. However I have noticed that when you click play again while the song is playing it plays the song again from the start over the top. Same if you click it 3 times 4 etcetc. I have no idea how to disable the button while the song is playing/until the user clicks stop. This is the code I have on the play button:

on (release) {
weddingSound = new Sound(this);
weddingSound.attachSound("wedding");
weddingSound.start(0, 99);
}

This is the final part of a website I built and the owner is holding out on payment until this is done

View 1 Replies

ActionScript 2.0 :: Fullscreen Button For FLV Player?

Jun 19, 2011

So I've been assigned to create a custom flash video player. I followed a good tutorial by Lee Brimelow and went far with the project, until I've hit a dead end - fullscreen function for the video itself. I would simply want to add a fullscreen toggle button that doesn't scale my whole scene, but only the video container (videos are loaded from xml via tree component), while preferably keeping the controls visible.I'm really hard pressed here, since I have to finish by tomorrow, but I really can't see making any progress without some guidance, even if I pull an allnighter.

View 0 Replies

ActionScript 2.0 :: Skip Button On MP3 Player

Dec 14, 2006

I need to make a skip button that stops the track playing and skips to the next track in the php file.
skip_btn.onPress = function(){
} play_btn.onPress = function() {
if (playing == undefined or playing == false) {
if (pause == true) {
pausePos = ((slider_mc.dragMe_btn._x/100)*song.duration)/1000;
[Code] .....

View 7 Replies

Simple Flv Player With Play Button For Website

May 1, 2009

I am oriented around html/css webdesign, and graphic design in photoshop, but know nothing of Flash, and i am attempting to learn!I have found a lot of complex tutorials but none that fit my specification. All i need to know is how to make an interface incorporating a play button which plays a .flv file. I already have a .flv file ready and the graphic i want to use for the button, but no idea how to begin.The .flv i want to play is a short 3-4 minute clip of someone talking including audio - i dont know the best way to play it and have heard of different options including embedding or somehow linking to an external flv file.I have tried various tutorials to try to achieve a simple interface with play button - i dont need a skin, rewind, forward, etc, just a play button and for it to go away while the video is playing, and perhaps a pause/stop button in the corner of the swf, over the top of the flv file itself. But I have had no success, mainly due to errors within the actionscript.

View 17 Replies

Nonstop Mp3 Player Without Play And Pause Button?

Dec 7, 2010

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. ?

View 3 Replies

Professional :: Button That Closes The Player On Click?

Mar 8, 2010

Today, I put a video into my website, the only problem is that I'd like to give it a close button (that would close the player, or make it invisible). How could I do that?

View 5 Replies

ActionScript 3.0 :: Make A Fullscreen Button For Flv Player

Mar 23, 2010

so i'm trying to make a fullscreen button for my flv player, and it only works when my fullscreen_btn.x is < 600 and > around 300. anybody ever encountered this before?[code]

View 1 Replies

ActionScript 3.0 :: Video Player - How To Get Rewind Or Start Again Button

Jul 21, 2011

I am creating a video player with my own buttons, play stop are easy, but I can't for the life of me get it to rewind or start again (not loop). It may be worth noting that the flash video is store within a movie clip! The flv instance is flv_close and the movie instance is mv_close.

View 4 Replies

ActionScript 3.0 :: Capturing Video Player FullScreen Button?

Jul 30, 2010

How do you capture the event on the Video Control Skin when the Full Screen button is clicked.

View 3 Replies

ActionScript 1/2 :: Get Button To Change Player's Color To Black

Sep 3, 2010

I have a variable named playerColor, and a button called black. I need to get the button to change the player's color to black(change the frame number to 2). The second frame of the movieclip player is the same as frame 1, but it's the color black instead of red(red is the default color which is frame 1). I can't get any results with these codes.[code]

View 5 Replies

ActionScript 3.0 :: Interactive Video Player - Button Linking

Feb 18, 2011

I'm trying to make an interactive video player where you have a choice of 3 buttons and each button links to a different frame that has a video player embedded in it. Once on of the frames are brought up, I have a button to take you back to the main screen. However, after clicking back to the main screen, I'm running into the following output error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at memorialsample_fla::MainTimeline/frame1()[memorialsample_fla.MainTime line::frame1:4]
at flash.display::MovieClip/gotoAndPlay()
at memorialsample_fla::MainTimeline/gotoMain2()[memorialsample_fla.MainT imeline::frame2:11]

Once the above output error occurs, the buttons are no longer active and no longer work. Here's a look at my code that I have going on:
Frame 1:
stop()//Link to Frame 2btn_MJ_Main.addEventListener(MouseEvent.CLICK, gotoMJ) function gotoMJ (e:MouseEvent){
//btn_Beach_Main.removeEventListener(MouseEvent.CLICK, gotoBeach)
//btn_MJ_Main.removeEventListener(MouseEvent.CLICK, gotoMJ)
btn_Cloud_Main.removeEventListener(MouseEvent.CLICK, gotoCloud)gotoAndPlay(2)
[Code] .....

If you want to see the actual SWF for a better visual at what I'm doing, you can see it here: [URL]. Scroll down to the Flash object, it says "Memorial Tribute Samples". I have the videos streaming, and am not sure how I could get the FLV videos to stop playing when I click the flash's "Return to Samples" button. Right now, the users would have to pause the video if they don't want it to play in the background as they go back to the first frame.

View 2 Replies

ActionScript 1/2 :: How To Get Fullscreen Button Into Video Player Skin

Jul 18, 2011

Any way of building in a fullscreen button right into the skin of a video player using actionscript 2? Or perhaps have access to a source file? I've seen the skins with fullscreen with AS3 with CS3, but I need tut on skins with fullscreen using AS2.

View 1 Replies

Flash Player Setting - Allow Button To Access Client Web Cam

Aug 8, 2010

I am building a flash app that will asks the client to access their web camera. Users on Windows (Firefox, Safari, Chrome browsers) are able to click the allow button. However, users on Linux/Mac (Firefox, Safari, Chrome) either need to click several times until they can click allow, or they can't click at all. [URL]

View 1 Replies

Mediaelement.js The Flash Player Won't Hide The Play Button?

Feb 1, 2012

I have set the features to be empty which works fine except in the flash player. It still shows the big play button.I realise I can manually hide this but I'd rather find the proper solution

$('video').mediaelementplayer({
features: [],
success: function (me) { [code]..........

View 1 Replies

ActionScript 2.0 :: Music Player Close & Open Button

Feb 10, 2010

I'm making a site where I need the music player to go on and off the screen wehn you hit a close/open button. Click here to view the Radio opens but can't close. This is the code I use:

[Code]...

View 6 Replies

ActionScript 2.0 :: Loop Button Code Not Quite Right For Music Player?

Mar 26, 2011

I thought I had this one right until I listened a little closer. Below is the code that I am using to make a loop button for my music player. At first, using everything but the last line, seemed to work perfectly, until I realized that the music wasn't starting over from the very beginning. Basically I'm using a pause command, followed by a resume command to keep the pressing of the loop button from playing the song over itself, if it'scurrently playing. So in that respect, it works great. But when the song ends and estarts, it starts only from the point of the song when I pressed the loop button. So I'm trying to figure out how to make the 2nd time that the song plays and each additional time after that, play from the very beginning of the song. While still being sure that the song does not play over itself, the first time it's played.

Code:
loopbutton_up.onPress = function(){
mySongPosition = _root.mySong.position/1000;

[code]....

View 8 Replies

ActionScript 2.0 :: Assign A Button On The Keyboard To A Specific Player?

Nov 26, 2003

Me and some friends here at school (hyper island) has got an assignment to make a flashgame.Now we have some problems. We want to assign a button on the keyboard to a specific player. Something like this "Player 1 choose your button" and so on.

View 2 Replies

ActionScript 2.0 :: Go The Next Frame If The Player Press A Button 3 Times?

Nov 23, 2006

i am creating a simple quiz. I want to go the next frame if the player press a button 3 times. I use the code:

on (release) {
_root.total = _root.total + 1;
if (_root.total == 3){
nextFrame;
}
}

View 6 Replies

ActionScript 2.0 :: Script For Button Not Working For Flash 8 Player?

Apr 4, 2007

The buttons work in flash player 6, but i have recently added some filters to the site and changed the settings to flash player 8, now the button links do not work! The buttons are movieclips with script!

Here is the script:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame(); }};
this.onRollOver = function()
[Code] .....

View 1 Replies

ActionScript 2.0 :: Button Switch IF Statement For Video Player?

Oct 2, 2008

I am working on a video player that will have different Languages. The problem that i am have is that i can get the video to switch but i cant get the video to switch back. I have uploaded the file and here is the code that i have have a problem with.

lang.onRelease = function() {
if  play = English)
{

[Code].....

View 1 Replies

ActionScript 2.0 :: Player Clicks On The View Leaderboard Button?

Sep 7, 2009

I am creating a game in flash and I am trying to create a leaderboard of players names and the times that they completed the game in. This is the current code:

[code]...

What I want is that when the player clicks on the View Leaderboard button, it displays a leaderboard with the top 10 or 12 performers. Their name and time (if good enough) should be displayed at the correct position on the leaderboard.This current code enters the values into the text fields after the button is clicked, however it constantly over-rides the previous score. i need something that will make all the scores display in a list and then something to sort them into order

View 1 Replies

ActionScript 2.0 :: Creating Exit Button For Flash Player?

Dec 10, 2004

How to create a button that will exit out of flashplayer?

View 1 Replies

ActionScript 3.0 :: Find Flv Player Pause Button Pressed Event?

Sep 28, 2009

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) ?

View 3 Replies

Create Media Player And Link MP3s To Different Instances Of Same Button

Sep 28, 2009

I am trying to do: [URL]. This is a little webpage I'm building as I learn more and more flash. I am at a point where I need to link .mp3 files to the buttons on the "Dan's Top Songs Playlist". If you like, you can download my flash file here: [URL]. I am working with ActionScript 3.0. The buttons in the Media Player are all instances of the same button. How do I tie each button to a different .mp3 song to play when clicked (and stop when another song is clicked or the pause button is clicked)? Because of the size of song files, I'd like to stream it. Also, is there any way to use the "repeat" symbol to just play all the songs in order and the "shuffle" symbol to play them in random order?
Attachments: fbar.zip (1.8 MB)

View 1 Replies

Actionscript :: Increase Volume By Click Button In A Flash Player

Oct 12, 2011

I'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 Replies

Actionscript 3 :: Play Pause Button In A Flash Music Player?

Nov 10, 2011

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].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved