Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: FLASH operator question pleas help !!!!
From: tomasz
Date: Fri, 27 Oct 2000 21:23:26 +0100

I am trying to create a counter for my head to stop every frame for 5
seconds.


This code doesn't work.

timea = int(getTimer()/1000);
pause = "5";
if (timea < pause) {
loop = "1";
}
if (timea == (pause * loop)) {
loop = loop + 1;
}

Instead of adding 1 to loop (so the value becomes 2) it adds 1 beside loop
(so the value becomes 11)

Is there any mistake in my syntaxe when i am using the add operator???


However what is weird is that when i put multiply instead of add the
variable loop behaves properly. Do you understand why ???


timea = int(getTimer()/1000);
pause = "5";
if (timea < pause) {
loop = "1";
}
if (timea == (pause * loop)) {
loop = loop * 2;
}

Regards
tom


--
tomasz walenta
o r a n g e t a n g o
twalentaatorangetango [dot] com
T : 514.286.0022
F : 514.499.0160



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: ADV - 10 MILLION ADDRESSES!, email

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]