Flasher Archive

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


Subject: FLASH: Re:Getting variables from MCs
From: Kevin Newman
Date: Mon, 4 Sep 2000 16:25:26 +0100

Hi James,

The problem with your score system is that you are trying to get the
variables from within the MC's at the end of the swf when they are not
present on the stage [ and I'm not even sure you can do that any way?!? ]
An easier way to do this is as follows;

Just set "score = 0" at the start of the main timeline then target this
variable from within the MC's correct answer buttons

On (Release)
Set Variable: ..:score = ..:score + 1
End On

And you won't even need to add them up!

Hope this helps,
Kevin


____________________________________

kevin newman
animation and new media
wheelhousecreative

____________________________________




>
> Date: Mon, 04 Sep 2000 15:21:26 +0100
> From: James Cutts <jamesatinone [dot] co [dot] uk>
> Subject: FLASH: Getting variables from MCs
> <http://www.inone.co.uk/bar2.fla.sit>
>
> - ----------
> From: James Cutts <jamesatinone [dot] co [dot] uk>
> Date: Mon, 04 Sep 2000 13:15:26 +0100
> To: <flasheratchinwag [dot] com>
> Subject: Getting variables from MCs
>
> Hi all
>
> Can anyone help me with my little action-scripting question:
>
> I have a main time-line ('movie') with 10 MCs strung along it with instances
> of QI - Q10.
>
> Each of these MCs allows the user to assign a value to
> a variable.
>
> The code within the MCs is:
>
> On (Release)
> Set Variable: "q1" = 1
> End On
>
> and so on up to "q10".
>
> I then need to add these variables up.
> So I have a frame at the end of the movie containing the following code:
>
> Set Variable: "score" = q1 + q2 + q3 + q4 + q5 + q6 + q7 + q8 + q9 + q10
>
> I then need to display the 'score' to the user so i have an editable text
> field (in the last frame of the movie) with a variable of "score" which I
> know is set up correctly.
>
> Now the problem: It doesnt work. Ive tried everything I can think of but
> It just aint working.
>
> Can anyone help?
>
> Download the fla at: http://www.inone.co.uk/bar2.fla.sit
>
> TIA
>
> J
> - ----------------------------
> James Cutts
>
> d e s i g n m a n a g e r
> i n o n e n e w m e d i a
>
> Tel: +44 (0)20 7978 6500
> jamesatinone [dot] co [dot] uk
> http://www.inone.co.uk
>



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


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