Uploader Comments (LearnToProgramDotTV)
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;
All Comments (30)
-
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
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 7 months ago
@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...
LearnToProgramDotTV 7 months ago
@ 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 7 months ago
@LiquidRadio1 Can you tell me the specific error you are getting?
LearnToProgramDotTV 7 months ago