Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: stuck in variable land |
From: | David Gilden |
Date: | Sat, 9 Sep 2000 15:42:17 +0100 |
Hi James,
>> Else If ("currentscene" = "services")
Did you try?
Else If ("currentscene" eq "services")
= is good for numbers, eq for strings...
Just a thought.
Dave
On 9/6/00 at 2:19 AM, ownerchinwag [dot] com (flasher-digest) wrote:
>
> Date: Tue, 05 Sep 2000 16:30:53 -0700
> From: "James Goudy" <jamesgwebmail [dot] leighfisher [dot] com>
> Subject: FLASH: Please help, I'm stuck in variable land
>
> Please, if anyone has a few minutes, I'd really appreciate any
thoughts...
>
> Namely, I'm trying to set a variable "nextscene" on release of a
button on the
> main timeline. Based on the variable "currentscene" (set by the MC and
retrieved
> by the button), pressing a button will tell target the MC to the
fade-out frames
> of the current section and then goto the label indicated by the
variable
> "nextscene" The buttons don't work properly, and I'm betting it's
because I'm
> not passing variables back and forth properly.
>
> As an example, the script for the "clients" button looks like this:
>
> On (Release)
> Set Variable: "nextscene" = "clients"
> Set Variable: "currentscene" = /bodymc:currentscene
> If ("currentscene" = "profile")
> Begin Tell Target ("/bodymc")
> Set Variable: "nextscene" = "clients" <<--see
below
> Go to and Play ("profileout")
> End Tell Target
> Else If ("currentscene" = "services")
> Begin Tell Target ("/bodymc")
> Set Variable: "nextscene" = "clients"
> Go to and Play ("servicesout")
> End Tell Target
> Else If ("currentscene" = "logon")
> Begin Tell Target ("/bodymc")
> Set Variable: "nextscene" = "clients"
> Go to and Play ("logonout")
> End Tell Target
> Else If ("currentscene" = "contact")
> Begin Tell Target ("/bodymc")
> Set Variable: "nextscene" = "clients"
> Go to and Play ("contactout")
> End Tell Target
> End If
> End On
>
> This is the AS from the last frame of the section starting with
"profileout"
>
> Set Varible: "nextscene" = /:nextscene
> If ("nextscene"="clients")
> Go to and Play ("clientsin")
> Else If ("nextscene"="services")
> Go to and Play ("servicesin")
> Else If ("nextscene"="logon")
> Go to and Play ("logonin")
> Else If ("nextscene"="contact")
> Go to and Play ("contactin")
> End If
>
>
> Am I crazy!? Is this simply the most convoluted and incorrect way to
try to do
> this? Thank you a million times for any ideas. Off-list replies are
welcome.
>
> JLG
>
> ------------------------------
---------------------------------------
Looking for Web Talent, You found it!
Web: www.coraconnection.com/web/
Email: dowdacoraconnection [dot] com
Tel: (860) 231-9988
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]