3 Replies Latest reply on Jun 16, 2006 4:17 PM by KCL

    Button onLoad?  Constructor?

    KCL Level 1
      I haven't worked with Actionscript in a LONG time... back before it was much of anything. So if I'm going about this wrong, I apologize.

      I want to name a button instance on the stage at dev time and have the text set to the name of the instance at run time. I figured I could find the name of the instance(it's gotta be a property somewhere in there, right?) and just assign that string to the of the dynamic text field I placed in the button.

      This just seems like a nice, clean, easy-to-maintain way of using a button.. when clicked, it would pass it's name to some handler at the root which would figure out what to do with it.

      Ideas? Counter-ideas?

      Thanks in advance,