Mp3 « Actionscript Programming « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Photoshop Tutorials
Maya Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
Flash Tutorials » Actionscript Programming » Mp3 
So first make two buttons for the play and stop functionality, then an up arrow and down arrow, right click then separately and convert them to movieclips (not buttons symbols).

Before we get all excited and start working with actionscript, first we need to do some preperations, make a few buttons and graphics to make our mp3 player look good. So try to follow along, you can make your own graphic buttons, so I wont guide you through how I made mine, only the structure.

Step 1. Run iSkysoft iMedia Converter for Mac. Double click the icon of iSkysoft iMedia Converter for Mac to run it on your Mac.

currentPercent is for counting the percentage value. We round it up with the "Math.round" method. Line 4 writes the percentage value to our textfield so the user can see what's happening with loading.

var musicPlays:Boolean = false;

view demo mp3_player you can download the final mp3_player here.

This is where we have to start giving those buttons some functionality. Most (if not all) of the functionality for each button is going to be in the MOUSE_UP event handlers:

As a Free Mac YouTube Downloader, it can automatically detect the YouTube video files from the YouTube web pages you have opened and download multiple files at a time. YouTube downloader for Mac is a totally free YouTube video downloader for Mac.

Download Trial Version for free: Intel Version, PowerPC Version

NOTE: re-skin the player first.

Flash on the beach 2009 - Day 1

It's quite rare to come across a Flash site that doesn't incorporate sound in one way or another so it's an important skill to learn. This tutorial will walk you through how to build a simple random sound machine using ActionScript 3. This version of the ActionScript language is more advanced and is now the de facto standard for professional Flash work.

Besides Moyea SWF to Video Converter Pro and Standard version, Moyea SWF to iPhone Converteris also an economical and powerful tool for converting SWF to video for home use as well as sharing with excellent picture quality and sound quality.

What is SWF?

In the final you will get this:

I have a list box that is being populated from xml file. I need to know how to make the player look to that for its sound object.

In Flash MX you have the capability to load an external mp3 sound file into a flash movie using the Sound.loadSound() method. In the latest release of the Flash 6 Player it is possible to access the ID3 tags embedded in an mp3 encoded file. Unfortuneatley you cannot access the ID3 tags in an mp3 file until it has *fully* loaded, this is fine when you are using the Sound.attachSound() method but it causes problems when you are loading an external sound into the player...

Save it and use this code to embed your Flash player in a Page ( we talk about localhost because if you want to be online you need to upload the files on your server. I hope you have a server because the sites who give free hosting don't let you yto uploade mp3, mp3, wav, wma, etc!)

2. Choose "Movie" > "Import Sound...". Select your MP3 file and click OK. Flash Designer will show the sound in the list. Click OK to close "Sounds" dialog:

w_w__w.___j__a__v_a2s__._c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.