Flasher Archive

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


Subject: Re: FLASH: Comparing an Integer with a String
From: John Croteau
Date: Tue, 5 Oct 1999 04:26:33 +0100

Hi Jim,

> I've got MC1 (Movieclip) sitting on the stage which has MC2 (movieclip)
> sitting inside it. Mc2 has a button and a textfield (forumtopic).
> "xforumcount" is a string.
> Is there any other way to compare "n" with "xforumcount" ?
> (xforumcount is an external variable (asp) with a value of 4.
> Actionscript***>>
> Loop While (n ne ../:xForumCount)
> Set Variable: "n" = n+1
> End Loop

If the external variable is loaded on the main timelne:

Loop While (n <> /:xForumCount)
Set Variable: "n" = n+1
End Loop

This will work if xFormCount includes only a 4 (or any number) and no
spaces or returns because when evaluated by <> it is treated as a
number.

>From MC2 which is in MC1 which is on the main timeline:
../:xForumCount would refer to xFormCount in MC1 and
../../:xForumCount would also refer to xFormCount the main timeline.

/:xFormCount refers to the variable xFormCount on the main timeline from
anyehere in the movie.

--
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/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratchinwag [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratchinwag [dot] com


Replies
  RE: FLASH: Comparing an Integer with a S, Jim Antonopoulos

Replies
  FLASH: Comparing an Integer with a Strin, Jim Antonopoulos

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