Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Re: |
From: | Bill Numerick |
Date: | Fri, 4 Aug 2000 22:20:33 +0100 |
Hey All!
Thanks for the advice on everything...i had already tried what most of you
said. Turns out its because its being loaded form a text file it doesn't
see it as a number. I tried the int(NumberOfClients) and such and it gave
me zero. Anyway i took that variable out and have flash scan the file now
for how many clients there are.
Here's what i did in case anyone cares =)
4th frame of the movie:
Set Variable: "click" = 1
Set Variable: "number" = 1
Loop While (Eval("client"&number) ne "")
Set Variable: "number" = number+1
End Loop
Set Variable: "NumberOfClients" = number-1
Load Movie ("client"&click&".swf", 5)
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Next Button:
On (Press)
Set Variable: "click" = click+1
If (click > NumberOfClients)
Set Variable: "click" = NumberOfClients
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Begin Tell Target ("_level5")
Go to and Play ("up")
End Tell Target
Else
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Begin Tell Target ("_level5")
Go to and Play ("up")
End Tell Target
End If
End On
Back Button:
On (Press)
Set Variable: "click" = click-1
If (click = "0")
Set Variable: "click" = 1
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Begin Tell Target ("_level5")
Go to and Play ("up")
End Tell Target
Else If (click > NumberOfClients)
Set Variable: "click" = NumberOfClients
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Begin Tell Target ("_level5")
Go to and Play ("up")
End Tell Target
Load Movie ("client"&click&".swf", 5)
Else
Set Variable: "client" = Eval ("client"&click)
Set Variable: "clientName" = Eval ("clientName"&click)
Begin Tell Target ("_level5")
Go to and Play ("up")
End Tell Target
End If
End On
Thanks for all your help!
-Bill
>From: Jason_Schubringaal [dot] org
>Reply-To: flasherchinwag [dot] com
>To: flasherchinwag [dot] com
>Subject: FLASH: Re:
>Date: Fri, 4 Aug 2000 10:25:15 -0500
>
>
>
> >> the
> >>NumberOfClients variable is being pulled from a text file not sure if
>that
> >>has anything to do with it or not. Thanks for any Help!
>
>Dumb question for you, but is a first step: Did you ever load the
>variables
>from the text file?
>
>Other than that, I would test that the variable is being loaded by sending
>into
>a text field. This is usually a good way to debug and be sure varibles are
>loading as you expect.
>
>Lastly, be sure that your varibles are properly referenced as literals or
>expressions as appropriate.
>
>Good luck!
>
>J
>
>
>
>
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Full flasher archive now available online at:
> http://www.chinwag.com/flasher/archive.shtml
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpchinwag [dot] com
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]