Flasher Archive

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


Subject: Re: FLASH: F5 What's wrong with this script?
From: Randy Kato
Date: Mon, 28 Aug 2000 22:40:37 +0100

Charles,

Your operators are testing for inequality (!=), so if rand is not equal to 1 (5/6
chance) then it will go to "girl2." You should use == to test for equality.

HTH,
Randy


Charles Goran wrote:

> Please help! What's wrong with this F5 script?
>
> It is in a MC on the main timeline and it just keeps going to the "girl2" frame.
> I've tried all I know
>
> rand = Number (random (5));
> if (rand!=1) {
> gotoAndPlay ("girl2");
> } else if (rand!=2) {
> gotoAndPlay ("kid");
> } else if (rand!=3) {
> gotoAndPlay ("girl1");
> } else if (rand!=4) {
> gotoAndPlay ("girl2");
> } else if (rand!=5) {
> gotoAndPlay ("bear");
> }

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: What action to download to di, till
  FLASH: F5 What's wrong with this script?, Charles Goran

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