Scott

The script works as you expect on OSX 10.4.2 with Studio 2.7.2.

New stack, new button your script = 5 the first time and then 2.....

Copy the button and click the copy, 5 the first time and then 2.....

BTW, the answer box doesn't appear to be delayed in showing itself either.

take care,
randy hengst
------

On Jul 6, 2006, at 2:06 AM, [EMAIL PROTECTED] wrote:

Message: 14
Date: Wed, 05 Jul 2006 21:42:14 -0700
From: Scott Rossi <[EMAIL PROTECTED]>
Subject: Re: Reset Locals?
To: How to use Revolution <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;    charset="US-ASCII"

Recently, Trevor DeVore wrote:


script locals are only preserved across script compilation if you
set the preserveVariables to true
Otherwise 2.7 behaves as previous engines.

Thanks, but this doesn't seem to be the case here (OSX 10.3.9, Rev 2.7.2).

New stack/button script:

local myCheck
on mouseUp
  if myCheck = "" then
    put 5 into myCheck
  else put 2 into myCheck
  answer myCheck
end mouseUp

After the first "check", the value of myCheck is consistently 2, even when
the script is edited.  Rev says the preserveVariables is false.

In previous versions (for me), any time the script is edited, the local is
reset.  I just checked with 2.6.1 and this is the case.

The only two reasons I can think of why this might be are 1) it's an OSX 10.3.9 thing (as opposed to 10.4), or it's something the Rev guys are fixing
for 2.7.3. ???

(Also, why is the answer dialog so slow to appear in Rev 2.7? 2.6 is way
faster.)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to