On Dec 23, 2004, at 10:04 PM, [EMAIL PROTECTED] wrote:

From: Dar Scott <[EMAIL PROTECTED]>
Subject: Re: Script local variables and initialization.
To: How to use Revolution <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Dec 23, 2004, at 1:42 PM, Alex Tweedly wrote:

The docs are a bit vague

The value of a script local variable is retained between handlers,
but is lost when you quit the application, when you close the stack
(unless its destroyStack property is false), or when the script is
re-compiled.

which doesn't really mention start-up conditions.

The key word might be "re-compiled".

I would have thought that it would be re-compiled only once and that at
first use.

Here is a way to find out if it is being compiled twice and when.  Use
a later version and put in a new command in the script.  Then open the
stack on an earlier version that doesn't have the command.  You will
get an error when it compiles.  If it really compiles twice, then you
will get it twice.

It gets recompiled whenever you edit a script and click "Apply". So, if you've initialized something in openCard or preOpenCard, or some other pre or open handler, then edit the script, the variables will become uninitialized.


-- Frank

Web Photos Pro: Software for Photo Bloggers and Other Photo Power Users
See us on the web at http://www.webphotospro.com/


_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to