no, it's the other way round, script instances have properties, not
scripts.
just try:
<behaviour script of sprite 1>
property pTest
on beginSprite me
pTest="XXX"
end
on mouseUp me
alert pTest
end
<end behaviour script of sprite 1>
and in the message window:
l=sprite(1).scriptInstanceList
sprite(1).scriptInstanceList=[]
sprite(1).scriptInstanceList=l
Mendelsohn, Michael wrote:
> Thanks, Valentin. But, doesn't scriptInstanceList strip away the
> parameter values? I need to preserve the values of the properties, as
> they are all previously set with getPropertyDescriptionList.
>
> - MM
>
>
> [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!]
[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!]