Connecting Tech Pros Worldwide Forums | Help | Site Map

on(release) jump current frame with programming

Familiar Sight
 
Join Date: Jul 2007
Location: United Kingdom
Posts: 203
#1: Aug 26 '09
Hi

hope anybody sort this problem i've got
-> progress bar which control with the coding & it's jumps into time line.
what i would like to do
-> on the same time it's jump into the particular frame too

Expand|Select|Wrap|Line Numbers
  1. if assume 
  2.  -> 30 Sec = 750 frames
  3.  -> 1 Sec = 25 frame
  4.  -> current time display ( var totalTimeText )
  5.  
progress bar coding

Expand|Select|Wrap|Line Numbers
  1. mc_progress.mc_buff.onPress = function() {
  2.     xpos = mc_progress._xmouse;
  3.     percent = Math.round(xpos/mc_progress._width*100);
  4.     seekTime = percent/100*FLVduration;
  5.     seekTime = Math.round(seekTime*100)/100;
  6.     stream_ns.seek(seekTime);
  7. //    gotoAndPlay(_currentframe(totalTimeText*25);
  8. };
only problem with last code which seems to jump into 25 frame
after checking time ?

Familiar Sight
 
Join Date: Jul 2007
Location: United Kingdom
Posts: 203
#2: Aug 27 '09

re: on(release) jump current frame with programming


right solution is

gotoAndPlay(_currentframe+Number(totalTimeText)*25 );

: )
Reply


Similar Flash / Actionscript bytes