Counter that stop counting when the tween stops

I have two things in my flash, a tween that i create with greensock. And a Counter that counts up to a specifik number.

My problem is that i want to combine those two, so when the tween i finished, also the counting are finished at the same time.

i have tested two different counter below, both working greate, but i dont know witch one is the best for this…

okej, so this i the numbers and time that has to end up correct:
START NUMBER = 0
END NUMBER = 22613311
DURATION = 4.5 hours

and i will add a another counter that counts from 1 -> 25 whitin the same time limit.

i am not an [COLOR=blue][COLOR=blue !important][FONT=inherit !important][COLOR=blue !important][FONT=inherit !important]actionscript[/FONT][/COLOR][/FONT][/COLOR][/COLOR] programmer…

[COLOR=#F000F0]*/* TWEEN - is tweening a mc "chart bar" */*[/COLOR]
[COLOR=#993300]import[/COLOR] com.[COLOR=#000000]greensock[/COLOR].*;
[COLOR=#993300]import[/COLOR] com.[COLOR=#000000]greensock[/COLOR].[COLOR=#000000]easing[/COLOR].*;
TweenLite.[COLOR=#000000]to[/COLOR][COLOR=#000000]([/COLOR]MC_Stapel, [COLOR=#000000]20[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#993300]_x[/COLOR]:[COLOR=#000000]300[/COLOR], [COLOR=#993300]_y[/COLOR]:-[COLOR=#000000]700[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#F000F0]*/*the number 20 here is my test for 20sec*/*[/COLOR]


[COLOR=#F000F0]*/* TIMER ONE */*[/COLOR]
startTime = [COLOR=#993300]getTimer[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
i = [COLOR=#000000]0[/COLOR];

[COLOR=#993300]onEnterFrame[/COLOR] = [COLOR=#993300]function[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
    timer = [COLOR=#993300]getTimer[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]-startTime;
    [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]([/COLOR]timer/[COLOR=#000000]([/COLOR][COLOR=#000000]2012[/COLOR]*[COLOR=#000000]5[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] >= [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR]timer/[COLOR=#000000]1000[/COLOR][COLOR=#000000])[/COLOR];
        [COLOR=#993300]delete[/COLOR] [COLOR=#993300]onEnterFrame[/COLOR];
    [COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#000000]{[/COLOR]
        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR]timer[COLOR=#000000])[/COLOR];
        i += [COLOR=#993300]Math[/COLOR].[COLOR=#993300]round[/COLOR][COLOR=#000000]([/COLOR]timer/[COLOR=#000000]2012[/COLOR][COLOR=#000000])[/COLOR];
        txt.[COLOR=#993300]text[/COLOR] = i*[COLOR=#000000]2[/COLOR];
    [COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]


[COLOR=#F000F0]*/* TIMER TWO */*[/COLOR]
[COLOR=#993300]var[/COLOR] count:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]0[/COLOR];
[COLOR=#993300]var[/COLOR] maxNum:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]1250[/COLOR];
[COLOR=#993300]var[/COLOR] num:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]1[/COLOR];
[COLOR=#993300]this[/COLOR].[COLOR=#993300]createTextField[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]"txt"[/COLOR], [COLOR=#993300]this[/COLOR].[COLOR=#993300]getNextHighestDepth[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR], [COLOR=#000000]0[/COLOR], [COLOR=#000000]0[/COLOR], [COLOR=#000000]100[/COLOR], [COLOR=#000000]50[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#993300]onEnterFrame[/COLOR] = [COLOR=#993300]function[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
    count += num;
    [COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]count >= maxNum[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
        num = [COLOR=#000000]0[/COLOR];
        txt.[COLOR=#993300]text[/COLOR] = [COLOR=#0000FF]"125.0"[/COLOR];
    [COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#000000]{[/COLOR]
        [COLOR=#993300]var[/COLOR] v = count / [COLOR=#000000]([/COLOR]maxNum / [COLOR=#000000]125[/COLOR][COLOR=#000000])[/COLOR];
        txt.[COLOR=#993300]text[/COLOR] = v;
        
        [COLOR=#993300]var[/COLOR] str = [COLOR=#993300]String[/COLOR][COLOR=#000000]([/COLOR]v[COLOR=#000000])[/COLOR];
        [COLOR=#993300]var[/COLOR] io = str.[COLOR=#993300]indexOf[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]'.'[/COLOR][COLOR=#000000])[/COLOR];
        [COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]io == -[COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR]
        [COLOR=#000000]{[/COLOR]
            txt.[COLOR=#993300]text[/COLOR] = v + [COLOR=#0000FF]'.0'[/COLOR];
        [COLOR=#000000]}[/COLOR]
    [COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];