Flasher Archive

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

Subject: FLASH: Flash4 Magic questions
From: Cheri Harder
Date: Sun, 23 Jan 2000 06:33:24 GMT

Hi all....Ken and anybody else going through Flash 4 Magic -

Can someone explain to me why some variables (numerics) are set as
"expressions" and some as "string literals" - for example, the Loopcount
variable set in the Laughinator tutorial is set thusly:

Set Variable: "LoopCount" = 0

Whereas, the starting time in the Stopwatch utility is set as a string

Set Variable: "Minutes" = "00"

I would guess that in this particular case, the Minutes variable would
display as only one 0 if you didn't specifically call it out as a string
with two 0's, but that, otherwise, both would evaluate mathematically the
same, yes?

More importantly - to save others the de-bugging time, I've found a "bug" in
the Laughinator tutorial in the book. Now, don't look if you really like
searching through code...the looking for it did me good...

Page 41 - second ActionScript - before the Loop While (LoopCount < 4) add a
line that says:

Set Variable: "LoopCount" = 0

Otherwise the next line won't ever evaluate as true, because at this point
the variable has not been set. And Null is not less than zero. Besides, in
the "Finished Projects" file on the CD the line is there, and it doesn't
work without it.

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
"Developing your internet storefront"

To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

  Re: FLASH: Flash4 Magic questions, unique

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