Parent Property And Facespan
Parent Property And Facespan
- Subject: Parent Property And Facespan
- From: cris <email@hidden>
- Date: Tue, 09 Jan 2001 15:42:20 +0100
I try to use a parent property in a FS project script. Parent properties
normally work well when i use them but FS and FS-applications have obvious a
problem to initialise the parent property on runtime. In the FS editor, the
parent property works only after the project has compiled once.
Before i start to make all the parent stuff to put into object variables i
want to ask if anyone has found a solution that allows the use of the parent
property with FS.
I get only errors when i try to change the parent at runtime, like:
on run
set parent to (load script "Mac HD:AS:MSA.Lib")
end
The AS-Language Guide says:
>
The syntax for defining a parent script object is
>
( property | prop ) parent : variable where variable is a variable that
>
contains the parent script object.
So far so good... but doesn't work in FS.
>
A script object must be initialized before it can be assigned as a parent of
>
another script object. This means that the definition of the parent script
>
object (or a command that calls a function that creates the parent script
>
object) must come before the definition of the child in the same script.
I'm not sure if i understand this. Is there no way to set the parent on
runtime?
Greetings to all
cris