on(release) jump current frame with programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    on(release) jump current frame with programming

    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

    Code:
    if assume 
     -> 30 Sec = 750 frames
     -> 1 Sec = 25 frame
     -> current time display ( var totalTimeText )
    progress bar coding

    Code:
    mc_progress.mc_buff.onPress = function() {
    	xpos = mc_progress._xmouse;
    	percent = Math.round(xpos/mc_progress._width*100);
    	seekTime = percent/100*FLVduration;
    	seekTime = Math.round(seekTime*100)/100;
    	stream_ns.seek(seekTime);
    //	gotoAndPlay(_currentframe(totalTimeText*25);
    };
    only problem with last code which seems to jump into 25 frame
    after checking time ?
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    #2
    right solution is

    gotoAndPlay(_cu rrentframe+Numb er(totalTimeTex t)*25 );

    : )

    Comment

    Working...