Scrolling Text Problem (XML Player III Thingy)
#21
Posted 02 June 2006 - 10:45 AM
i removed the draggabletip(rite?) from the code tht was(draggabletip,100) and it worked..hehe
http://anusorn.sytes.net Check out the Test Player..It wid the volume showing thing!!
#22
Posted 02 June 2006 - 11:11 PM
Total Time Display Thing
playlist.load("playlist.xml");//Last Line In My Actions Panel function duration (){ timed = _root.sound_mc.sound_obj.duration/1000; mind = Math.floor(timed/60); mind = (mind<10) ? "0"+mind : mind; secd = Math.floor(timed%60); secd = (secd<10) ? "0"+secd : secd; totalDuration = mind+":"+secd;U told to add these lines after the XML.load
but wen i press check syntax
it gives me these 2 errors
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 109: Statement block must be terminated by '}' function duration (){ **Error** Scene=Scene 1, layer=Actions, frame=1:Line 115: Syntax error. totalDuration = mind+":"+secd; Total ActionScript Errors: 2 Reported Errors: 2
PLZ HELP ME AGAIN -*- I M USING "FLASH 8"
Edited by Amrik, 02 June 2006 - 11:12 PM.
#23
Posted 03 June 2006 - 07:20 AM
put a } at the end of the functionStatement block must be terminated by '}'
#24
Posted 04 June 2006 - 01:01 AM
wen i press Ctrl+Enter..the timeDisplay_txt says "00:00/NaN:NaN" this was all i did
stop();
timeDisplay_txt.autoSize = "left";
function timer(sound_obj) {
time=sound_obj.position/1000;
min=Math.floor(time/60);
min=(min<10)?"0"+min:min;
sec=Math.floor(time%60);
sec=(sec<10)?"0"+sec:sec;
timeDisplay_txt.text = min+":"+sec+"/"+totalDuration; //timeDisplay_txt.text=min+":"+sec;
KEYSplaylist.load("playlist.xml");//Last Line In My Actions Panel
function duration (){
timed = _root.sound_mc.sound_obj.duration/1000;
mind = Math.floor(timed/60);
mind = (mind<10) ? "0"+mind : mind;
secd = Math.floor(timed%60);
secd = (secd<10) ? "0"+secd : secd;
totalDuration = mind+":"+secd;
setInterval(duration,100);
RED COLOR = New Line Added
BLUE COLOR = Old Line Tht Was Replaced By The New Line
THE PICTURE SHOWING "00:00/NaN:NaN"
IF I M NOT WRONG I ADDED "setInterval(duration,100);" this code at a wrong place??
Edited by Amrik, 04 June 2006 - 01:04 AM.
#25
Posted 04 June 2006 - 07:01 AM
#26
Posted 05 June 2006 - 04:50 AM
function timer(sound_obj) { <<<<<<<<<B4 this line???
I did tht it still says "NaN:NaN"
I also tried putting it after tht line it still doesnot work-*-
I m a real noob hehe?
Edited by Amrik, 05 June 2006 - 04:51 AM.
#27
Posted 05 June 2006 - 05:25 AM
for your understanding:
SetInterval calls up a function every xxx miliseconds, when flash works through the script and you positioned the setInterval before the function then flash doesn't know what to do with it and drops it.. if you place it after the function flash will remember (aha, I've seen that function before, let's go call it up again).
Got it?
#28
Posted 05 June 2006 - 06:23 AM
Its working now THX!!!
#29
Posted 05 June 2006 - 09:04 AM
Look in the pic for example
http://img108.images...ouseover0do.jpg
Edited by Amrik, 05 June 2006 - 09:06 AM.
#30
Posted 05 June 2006 - 09:25 AM
I bet you did, same technique applied to the buttons
#31
Posted 06 June 2006 - 12:26 AM
I will do tht later cuz now i m a bit lazy
and yeah i have cmpleted my player!!!!!! evrything i want (except the thing i posted http://img108.images...ouseover0do.jpg, i will do it later)
plz check and tell me is it gud enough??
http://anusorn.sytes.net <<< Click on the link!!!!
PLz post a comment hehe
#32
Posted 12 June 2006 - 12:53 AM
i told my frnd to test my player online...but the total time display and the status bar is buggy...
Check it out .... http://anusorn.sytes.net/MP3/Mp3.html
Note :- I think the total time display is buggy...status bar moves according to the total time ryte?
But wen i check it frm my comp..the swf is normal!!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users