Flash Mp3 Player Tutorial Part IV

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,416
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 8, 2010

http://www.learntoprogram.tv
Follow me on Google+: http://www.MarkLassoff.com
Follow me on Twitter: @mlassoff
This is part four of a five part series on creating an MP3 player with Flash and Actionscript 3.0. This tutorial will work in Flash CS3, CS4, and CS5. The complete MP3 player includes play, pause and stop functions, a volume control, a pan control, time of song and time elapsed, a visualizer and loads external song files.

LearnToProgram.tv's mission is to train software, web and eLearning developers. This tutorial is hosted by Mark Lassoff, a long time technical trainer.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (LearnToProgramDotTV)

  • I keep getting an output error while doing the id3's. It's irritating because in comparison to everything else, they're simple. What I'm getting is

    TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set text() at fl.controls::Label/set text() at practiceMP3_fla::MainTimeline/­getSongLength()

    Any ideas? :( It's probably something simple that I'm overlooking.

  • @Kraven8888 are you sure that the MP3 you are using has id3 tags embedded? It looks like you're trying to put a null value in the text box...

  • @ the 7:27 min mark (after the equation that creates the minutes and seconds timer) There is a piece of code - "return (Minutes+ + Seconds) that seems to automatically appear without being written. I admit i was using the (%) percentage sign in place of the modulus sign but I found nothing else that came close. I am getting an error msg and I would like to know how that piece of code came to be. Please HELP!

  • @LiquidRadio1 Can you tell me the specific error you are getting?

Top Comments

  • Thanks for this video! Just a slightly simpler way to convert time:

    var minutes:Number = millis / 1000 / 60;

    var seconds:Number = (millis / 1000) % 60;

see all

All Comments (30)

Sign In or Sign Up now to post a comment!
  • i am using flash cs4 and the code is correct:

    function getsonglength(evt:Event):void { lblSongTotalTime.text=convertT­ime(myMusic.length).toString()­; lblSongTitle.text=myMusic.id3.­songName; lblSongArtist.text=myMusic.id3­.artist; lblSongYear.text=myMusic.id3.y­ear; lblSongAlbum.text=myMusic.id3.­album;

    }

    But the information wont appear in those label components. Please help i don't know what to do to fix this!

  • I keep getting: "Scene 1, Layer 'action', Frame 1, Line 51 Warning: 3596: Duplicate variable definition." twice for" var displayMinutes:String = Math.floor(Minutes).toString()­;" and for the seconds. What code am I missing to fix that so I can upload the mp3 players to a website?

  • I have a question. On the time part (Minutes+Seconds), can you send me a code. My Flash 5 can't convert it to time. It just stays like a decimal. Can you please elp me? Help!!!!!!!!!!

  • Hey Mark, Thanks for these. I hope these videos have helped your personal business, etc... I think the total likes:dislikes ratio (24:0) says a lot. This video has helped me a lot on a personal project which has given me a lot of personal gratification and has opened my mind to what's possible with actionscript/flash.

  • Forget it, I typed "Floor" instead of "floor". lol

  • I'm getting a 1061: Call to a possibly undefined method Floor through a reference with static type Class. PLEASE HELP?

  • In case anyone is wondering, to fix error #1009, you have to have the code IN THIS ORDER:

    Objects/Variables/Declarations first, then your Functions, THEN your listeners.

  • i try to put a " : " (colon) to my time in the return part of the code....but mine turns green and doesnt appear when i test my movie

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more