Sorry Evan. They are coming through, but my response had left before your's arrived. My first time dealing with applying script objects on-the-fly, but now all makes perfect sense...
Thanks for everyone's input, -_Craig ----- Original Message ----- From: "Evan Adelman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 12:20 PM Subject: Re: <lingo-l> attaching behaviors at runtime > Not to be rude, but are my messages not coming through? Or perhaps I'm > not explaining things well ... I don't know. Let me know if there's > something that I've explained that doesn't apply, let me know and I'll > try again... > > here's another reference movie > > http://www.evanadelman.com/scriptInstanceList/scriptInstanceList.dir > > -Evan > > Craig Taylor wrote: > > >Hey Rob, > > > > > > > >>on mouseDown me > >> pCounter = pCounter + 1 > >> if pCounter mod 2 then > >> pSL = sprite(1).scriptInstanceList > >> sprite(1).setNum(random(100)) > >> sprite(1).scriptInstanceList = [] > >> else > >> sprite(1).scriptInstanceList = pSL > >> end if > >>end > >> > >> > >> > > > >Had a similar sample that also worked fine, aong as you hard-coded the > >spriteNum. The problem seems to arise if you use "me" to reference the > >sprite from where you are executing the code. It simply fails to recognize > >that sprite. I just sent a response back to Kristian, as such. In other > >words, if you hardcode the spriteNum or even use sprite(the > >currentSpriteNum) as an alternative, it works fine, as long as you don't > >reference the object?? > > > >Weird... > > > >-_Craig > > > > > > > >[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!] > > > > > > > > -- > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > *m u t a n t > m e d i a* > /solutions for success > // > // > / *Evan Adelman* | 917.916.7378 | 303 E 71st St NY NY 10021 > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | www.mutantmedia.com > <http://www.mutantmedia.com> > > [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!]
