Jump to content


Photo

Scrolling Text Problem (XML Player III Thingy)


  • Please log in to reply
31 replies to this topic

#21 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 02 June 2006 - 10:45 AM

Its ok i got it...I did it...hehe
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 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 02 June 2006 - 11:11 PM

NOW THT EVRYTHING WAS GOIN ALRITE, ANOTHER PROBLEM JUS POPPED UP -*-
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 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 03 June 2006 - 07:20 AM

problem is clearly stated

Statement block must be terminated by '}'

put a } at the end of the function

#24 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 04 June 2006 - 01:01 AM

haha i m such a noob!!!....i added tht } after the function its says no errors but still it doesnot show the totalDuration
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;

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;
setInterval(duration,100);

KEYS
RED COLOR = New Line Added
BLUE COLOR = Old Line Tht Was Replaced By The New Line

THE PICTURE SHOWING "00:00/NaN:NaN"
Posted Image

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 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 June 2006 - 07:01 AM

setInterval must be placed outside the function, otherwise it doesnt make much sense.

#26 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 05 June 2006 - 04:50 AM

I still dun get it where should i put my setInterval??

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 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 05 June 2006 - 05:25 AM

just put the setInterval where it was from the original version.

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 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 05 June 2006 - 06:23 AM

Alrite Alrite
Its working now THX!!!

#29 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 05 June 2006 - 09:04 AM

Is there a way we can do like suppose my mouse is over the play button(or pause,stop,next and previous) there will be a box appearing saying PLAY
Look in the pic for example
http://img108.images...ouseover0do.jpg

Edited by Amrik, 05 June 2006 - 09:06 AM.


#30 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 05 June 2006 - 09:25 AM

have you seen how I did the volume display?
I bet you did, same technique applied to the buttons :)

#31 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 06 June 2006 - 12:26 AM

Alrite Thx Mr.Funkysoul
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 Amrik

Amrik

    Young Padawan

  • Members
  • Pip
  • 43 posts

Posted 12 June 2006 - 12:53 AM

Mr. Funkysoul.....y is tht my flash player is buggy??
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