Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

How to reference object's name on it's own script event

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to reference object's name on it's own script event

    I have some objects (32 of them, for teeth) that all do the same thing.
    I want for them to all have the same action, that would change one Paragraph object and put their name in it, but I do not want to hard code the names, instead get them from the name of the object that triggered the event. In OO languages this is easly doable by using self.Name approach. Is there something similar in APMS?
    Never know what life is gonna throw at you. ZubTech

  • #2
    Does this work for you ?

    ie: 32 buttons setting the text on an input object would work with:
    Input.SetText("Input1", Button.GetProperties(this).ObjectName);


    Dont know if that helps.
    Last edited by Derek; 01-13-2008, 05:45 AM.
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      That is exactly what I need!
      Thank you Derek.
      Never know what life is gonna throw at you. ZubTech

      Comment

      Working...
      X