Home arrow Flash arrow Page 2 - Making an MP3/FLV Player with Flash MX 2004 and JavaScript
FLASH

Making an MP3/FLV Player with Flash MX 2004 and JavaScript


In this tutorial, S.M.H. Qadri shows us how to design an application interface with Flash MX 2004, how to add action script to the Flash interface, and how to write the JavaScripts and HTML files necessary for handling Flash.

Author Info:
By: S.M.H. Qadri
Rating: 4 stars4 stars4 stars4 stars4 stars / 159
November 29, 2004
TABLE OF CONTENTS:
  1. · Making an MP3/FLV Player with Flash MX 2004 and JavaScript
  2. · Designing an application interface with Flash MX 2004
  3. · Adding Action script to our Flash interface
  4. · Writing the JavaScripts

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Making an MP3/FLV Player with Flash MX 2004 and JavaScript - Designing an application interface with Flash MX 2004
(Page 2 of 4 )

Launch Flash MX 2004 and create a new Flash Document and save it as MyMP3Player.fla. Set the document’s properties by pressing Ctrl + J as directed below:

Width: 300
Height: 400
Frame rate: 12
Background color: Any color of your choice

Now add three layers to main time line and name them as misc, controls and functions respectively. Select the first frame of the controls layer and open the components panel by pressing CTR+F7. Drag a Media Playback component from the media components set. Set its properties as:

Name: flPlayer
Width: 300
Height: 220
X: 0
Y: 0

While the “flPlayer” is still selected, launch the component inspector and set the properties of “flPlayer” component as:

Automatically Play: unchecked
Use preferred media size: unchecked
Respect aspect ratio: unchecked
Control Placement: Bottom
Control visibility: On

Now, drag a list component on stage from UI Component sets and set its properties as:

Name: myList
Width: 300
Height: 150
X: 0
Y: 220

Now go to Insert menu > New symbol and set its properties as shown in figure

Making an MP3/FLV Player with Flash MX 2004 and Javascript

Click OK. When you press ok, Flash will bring you into the editing mode of the new symbol that we have just created. Click on Scene 1 on the left corner of your Flash environment, so that you will be back on main scene, where you have placed all the stuff. Open the library panel by pressing F11 or CTRL + L and bring an instance of the newly created symbol (i.e. “clip”) on stage and name it “checker”.

Now for the final step of getting our Flash side working. Open the component panel by pressing CTRL+ F7 (if not opened already), drag a button instance on stage and set its properties as shown in figure:

Making an MP3/FLV Player with Flash MX 2004 and Javascript

After all these steps, your movie should look like this:

Making an MP3/FLV Player with Flash MX 2004 and Javascript

Save you file and move to next step.


blog comments powered by Disqus
FLASH ARTICLES

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials