Flasher Archive

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


Subject: RE: FLASH: Target problems
From: Paul Willoughby
Date: Fri, 25 Aug 2000 17:36:39 +0100

Hmmm...classic case of over coding. Try just:

On (Press)
Set Variable: "/:clicked" = /:clicked + 1
End On

The value you are creating is based on an expression. By putting the "/:"
like that, you are telling Flash it's a string and then trying to
concatenate it with a variable. This confuses poor old Flash. The reason it
works once is because when you use SetVariable, if the variable doesn't
already exist, Flash creates one and initializes it to 0. Everything in your
expression is ignored (because of the string stuff I mentioned) apart from
'+ 1'. The reason it doesn't get any higher is because you are adding to
something that doesn't exist.
Probably far too long an explanation, but I hope it helps!

Paul

PS Checked out your site and I was amazed by the stuff you've done with
javascript! It almost looks like Flash stuff!

-----Original Message-----
From: Jose/DoubleYou [joseatdoubleyou [dot] com (mailto:joseatdoubleyou [dot] com)]
Sent: 25 August 2000 16:47
To: flasheratchinwag [dot] com
Subject: FLASH: Target problems


OK,
an easy one.

I have a variable, called "clicked", on the main timeline.
In that same timeline I have an MC with a button in it. The button has that
code:
On (Press)
Set Variable: "/:clicked" = "/:"&clicked+1
End On

The first time I click on the button it changes the variable, but no more.
If I set a variable on the MC, called "clack" and update it through the
button and then use it to update the "clicked" variable in the main
timeline it works, but I really like to avoid that intermediate step...

I guess I'm just missing something really stupid but... I've got a lot of
different things to do and a terrible headache so any help would be
appreciated.
-----------------------------
Jose M. Rubio
DoubleYou
joseatdoubleyou [dot] com
http://www.doubleyou.com
Tel. +34 93 292 3110
Fax. +34 93 292 2197
ICQ Number: 68390036


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



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