Flasher Archive

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


Subject: Re: FLASH: If "problems" = true then "kill flash"
From: John Croteau
Date: Fri, 12 Nov 1999 14:33:58 GMT

Hi Paul,

> Can someone please tell me what is wrong with this If statement in
> ActionScript.
Nothing, it works fine. It must be how you are using it.

> If (/:Counter > /:NumNews)
> Go to and Play ("Begin")
> End If

> It ALWAYS returns true no matter what the value of Counter or NumNews is.
For me it goes to Begin or it does not depending on the values I enter
for the 2 variables.

> NumNews comes from a text file read at the beginning of the flash
> animation ( for example "&NumNews=5 " ). I checked if my variables work
> and they do just fine
Note, in the above variable you have a space after the 5 that makes the
numeric value of the string 0 (zero).
You can use our Plug and Play String function TrimEnds to remove spaces
to solve this problem or see there are no spaces in the first place.
http://www.FlashBible.com/Members/ActionScript/PlugNPlay/Strings.htm

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: If "problems" = true then "kill f, Paul Watson

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