[flashpro] Timer issue interval etc
pete otaqui
pete.otaqui at gmail.com
Wed May 25 09:22:22 EDT 2005
might you just need a "stop()" action in frame 12?
On 25/05/05, Valentijn Langendorff <valentijn at multimediaconsult.nl> wrote:
>
> Hi All,
>
> I got a typewriter AS and it's working by using an array.
> Within a loop the mclip reads out character by character for every 1
> dimensional array :
>
> Text[0] -> text[5] etc : so 6 vars with text
>
> But my question is that is doesn't pauses here... It direct goes back to
> frame 9....even when the interval is set in the AS frame itself! And the
> interval reset of 'pauze' [pause] in the frame 9;
> What do I do wrong in here ? [see as code at frame 12)
>
> Frame 9: array defintions [array 0-6] :
> ---------------------------------------
> clearInterval(pauze);
> q = 1;
> var text = new Array;
> _global.textcount++;
> //declare the text that we are going to use.
> text[1] ="ik besef € dat men mij € elke dag";
> text[2]="€ beluistert € of scant € dat €";
> text[3]="ik niet weet € waarom";
> text[4]="€ of door wie € maar dat men € mij €";
> text[5]="overal € herkent";
> text[6]=" ";
> Play();
> =================================================
>
> Frame 10 : reads out array and redfines visible text fiels [typewriter
> effect], when the arrays reach the and it must skip the 'loop' and go to
> frame 12 [pauzeer [=pause, label]
> -------------------------------------------------
>
> //loop tekst array af, hoog op totdat lengte bereikt is
> if (q < text[textcount].length) {
>
> //loop binnen aantalkarakters alle letters af
> textbox = text[textcount].substr(0, q)+" |";
> q++;
>
> }
>
> else if (q == text[textcount].length){
>
> //einde van de tekst, haar volgende text array op
> textbox = text[textcount];
> //gotoAndPlay(9);
> gotoAndStop('pauzeer');
>
> }
> =================================================
>
> Frame 11 : go back to 10 [adds q by one, checks array reaches end etc etc
>
> =================================================
>
> Frame 12 [label: pauzeer] : array[x] reaches last character so pause 2,5 sec
> [2500 msec]
>
> pauze = setInterval(pauzeer(),2500); //pauzeer 2,5 sec
>
> function pauzeer(){
>
> gotoAndPlay(9);
> }
>
> ===============================================
> But my question is that is doesn't pauses here... It direct goes back to
> frame 9....even when the interval is set in the AS frame itself!
> What do I do wrong in here ?
>
> ------------------------------------------------------------------
> send message to the list: mailto:flashpro at muinar.org
> [FlashPro] list info, subscribe, archive: http://flash-list.com/
> There's also a WebPro mailing list: http://webdesign-list.com/
> cutting-edge sounds for flash: http://flash-sounds.com/
>
--
pete otaqui
new media developer
pete.otaqui at gmail.com
pete at thisnewthing.com
More information about the FlashPro
mailing list