Flasher Archive

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


Subject: Re: FLASH: Making screensavers on Mac - Flash 4 on MacOS 8.5 -ActionScript blues
From: Helen Triolo
Date: Sun, 9 Apr 2000 22:10:50 +0100

Toon Van de Putte wrote:
>
> ...scenes, i've let the buttons set a variable 'selected' to a value ("tv1"
> through "tv4"), so the movie can play a transitional sequence without
> losing information about which button the user clicked. Now, this doesn't
> seem to be working. I'm wondering if i'm setting the variables in a way
> that is incorrect. The buttons each contain the following ActionScript:
>
> On (Roll Over)
> Begin Tell Target ("/titles")
> Go to and Stop (2)
> End Tell Target
> End On
> On (Roll Out)
> Begin Tell Target ("/titles")
> Go to and Stop (1)
> End Tell Target
> End On
> On (Release)
> Begin Tell Target ("/ctr")
> Set Variable: "selected" = "tv1"
> End Tell Target
> Play
> End On

for this you can just say
On (Release)
Set Variable: "/ctr:selected" = "tv1"
Play (or maybe a Goto and play?)
End On
(because the button is on the main timeline, right?)
>
> The rollover and rollout are used to control a movie clip that contains the
> titles of all the different sections of the movie, the movie clip "/ctr" is
> an empty clip in the main timeline that i use to store the variable
> 'selected'. I tried setting it in the main timeline, but that didn't work.
> In fact, nothing has worked so far. Anyone know what i'm doing wrong? The
> code that, later on in the movie, checks the 'selected' variable, is this:
>
> If (/ctr:selected = "tv1")
> Go to and Play (diensten en tarieven, 1)
> End If
> If (/ctr:selected = "tv2")
> Go to and Play (wie en waar, 1)
> End If
> If (/ctr:selected = "tv3")
> Go to and Play (portfolio, 1)
> End If
> If (/ctr:selected = "tv4")
> Go to and Play (help en support, 1)
> End If
> Stop

For the above, you need a string comparison (eq, not =), eg
If (/ctr:selected eq "tv4")
Go to and Play (help en support, 1)
End If

I don't know if those will fix all your problems, but they might help.
I don't about Mac screensavers or OS, sorry.

Regards,
Helen
----------------------------------------
helen triolo � http://i-technica.com
designerati-technica [dot] com � 301-424-6037
----------------------------------------

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Making screensavers on Mac - Flas, Toon Van de Putte

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