1 Reply Latest reply on May 16, 2012 8:06 AM by Mister MUX

    Changing a parameter in a sprite behavior at runtime

    Carl_A

      I have a sprite that has a behavior on it.  In the message window I type:

       

       

      ScriptListToUse = sprite("test").scriptList

      put ScriptListToUse

       

      results:

       

      -- [[(member 17 of castLib 2), "[#myButtonName "revealButton"]"]]

       

      I wish to change the button name from "revealButton" to "testButton" and then use setScriptList() to put it back on the sprite.

       

      How do I do this?

       

      Thanks!

       

      Carl