On Fri, 18 Aug 2000, Richard Gaskin wrote:
> I was helping a newcomer with a scripting problem, and I found what seems to
> be an anomaly in MC's behavior:
>
> He has a script which read:
>
> put tMyValue into fld "Start"
>
> It generated an error, "Object not found" (actually the error reported was
> "Parent not found", which is less clear, but we've come to learn that this
> usually means the specified object, not its parent).
>
> Since I was able to guess that this stack was imported from HyperCard, I
> tried a hunch which worked: I recreated the stack as a native MetaCard
> file, and it works just fine.
>
> Going back to the HyperCard-imported version, I had to change the script to
> specify the layer in order for it to work:
>
> put tMyValue into card fld "Start"
>
> Normally MC doesn't care whether an object is in a group or not, and will
> figure these things out well on its own. Why would it matter if the stack
> was imported from HyperCard? Is there another factor at play as well that I
> may be overlooking?
There is a stack property, hcAddressing, that governs whether you have
to specify "card field" (and "bg button") as is required in HyperCard.
It defaults to be true for imported HyperCard stacks, but you can set
it back to false (the default for MetaCard stacks) if you're sure that
none of the scripts refer to fields or buttons by number and you don't
have any cases where card and background fields have the same name.
Regards,
Scott
> --
> Richard Gaskin
> Fourth World Media Corporation
> Multimedia Design and Development for Mac, Windows, UNIX, and the Web
> _____________________________________________________________________
> [EMAIL PROTECTED] http://www.FourthWorld.com
> Tel: 323-225-3717 ICQ#60248349 Fax: 323-225-0716
>
>
>
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.