check out the movie at http://www.evanadelman.com/puppetTest/puppetTest.dir - do you experience the similar problem w/ that movie. it's ok on my win2k, d8.5

Quixadá wrote:

hi, folks
it seems i´m going around in circles, so here it is: i´m creating sprites on the fly, then adding a script to them using the scriptInstanceList; that´s ok, it works. the problem comes when i try to change a parameter inside that script in only a specific sprite, because all the sprites have their parameters changed.


here´s the handle that changes it:

sendSprite(pProxima,#revert,1)


and here´s the handler that´s on the script added on the fly to several sprites:


on revert me,a
  pChave = a
end

pProxima is a parameter that changes the number of the sprite to be changed (because they have to be altered based on time), and it doesn´t matter, because if i change this parameter for a number, say 2, the effect is the same: not only sprite 2 pChave is changed. the result is that pChave is changed to 1 on every sprite created on the fly, no matter what. it only doesn´t happen on sprite 1, because it was not created on the fly: the pChave parameter on it remains 0. i tried something like

on revert me,a
  sprite(the currentSpriteNum).scriptInstanceList[1].pChave = a
end

but same results.
i think i don´t need to put the entire behaviors here, because it´s all about how on-the-fly scripts deal with sendsprite messages.


win xp, d 8.5.1

thanks,
q


[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 | 598 Broadway NY NY 10012 [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!]

Reply via email to