Re: lingo-l setScriptList

2003-12-15 Thread Valentin Schmidt
try setting the scriptInstanceList instead: sprite(1).ScriptInstanceList=[script(foo)] or sprite(1).ScriptInstanceList=[script(foo).new()] -- for initializing some props in new handler and also: origScriptList = sprite(1).ScriptInstanceList ... sprite(1).ScriptInstanceList=origScriptList

Re: lingo-l setScriptList

2003-12-15 Thread Valentin Schmidt
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

RE: lingo-l setScriptList

2003-12-15 Thread Mendelsohn, Michael
Hey, thanks, Valentin. That works perfectly. - 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

Re: lingo-l setScriptList

2003-12-06 Thread Alex da Franca
At 17:06 Uhr -0500 05.12.2003, Clay Atfield wrote: Hello all, I have been trying to attach a behavior dynamically to a sprite with the properties of the behavior also dynamically added/changed using values from a db at runtime. I've been using setScriptList and at first am having wonderful success

Re: lingo-l setScriptList

2003-06-30 Thread Howdy-Tzi
On Monday, Jun 30, 2003, at 15:06 America/Chicago, Matt Wells wrote: --But, Shouldn't this remove it??? on endSprite me (7).setScriptList([]) end endSprite Not if you haven't specified that 7 is a sprite: sprite(7).setScriptList([]) However, again, check this list's archives, Macromedia's