I've seen it many times. I've never been able to reproduce it
exactly, but I usually see it when I am debugging through a parent
script. I believe that what happens is that Director looses track
of the compiled code for a script. It thinks that the script has
been compiled, but it can't find it.
My general fix is this:
Open the script
Select the whole script
Open a new script window
Paste
Give the new script, the old script name
Delete the original script
Save and compact
optionally
Select the new script in the cast
Cut it from where it is
Paste it back into the original slot in the cast
/optionally
Recompile all scripts
Save and compact
By deleting the old script and creating a new one, it forces Director
to think that this is a new script and therefore, compile new code
using it.
Irv
At 9:20 AM -0400 10/5/04, Mendelsohn, Michael wrote:
Hi list...
Anyone ever experience a script cast member not found error, when it's
really there?
My movie has a linked cast named functionality, which contains all my
scripts. It also has a movie script with a prepareMovie handler that
instances a parent script called the tools.
Suddenly, when it gets to this line in the prepareMovie handler...
gTools = script(the tools, functionality).new()
It gets one line into the new() handler of the parent, and then errors
script cast member not found.
How does this happen? Debugging steps into that script, meaning it was
found, but then it can't find it?
- Michael M.
[To remove yourself from this list, or to change to digest mode, go
to http://www.penworks.com/lingo-l.cgi To post messages to the
list, email [EMAIL PROTECTED] (Problems, email
[EMAIL PROTECTED]). Lingo-L is for learning and helping with
programming Lingo. Thanks!]
--
Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]