Debugging Hint?
Stephen Barncard
stephenREVOLUTION at barncard.com
Wed Jun 20 04:34:08 EDT 2007
Scott: I don't know if this will help but try this:
watch out for the vague "me" reference and try something more
absolute, like the id or name of the object you are calling 'me'.
Sometimes getting the id of me or the owner of me works.
>I'm wondering if anyone has a suggestion for finding a script error when the
>error dialog is (probably not) reporting the true cause of the error.
>
>I have a card script handler that is called multiple times from a mouseMove
>handler. It looks something like this:
>
>on unselectObjects
> if the uCurrObj of me = empty then exit unselectObjects
> ...more stuff here
>end unselectObjects
>
>Somewhere along the line, the IDE is throwing a script error on the second
>line of the above handler, but I'm not sure why:
>
>Type Chunk: can't set property
>Object custom [name of the card]
>Line if the uCurrObj of me = empty then exit unselectObjects
>Hint unselectObjects
>
>I am not setting any properties in the unselectObjects handler, thus I think
>the script error is, well, an error.
>
>Any ideas on how to troubleshoot this?
>
>Thanks & Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list