Skip to main content

Action Script ? 44 Responses

Last post: 2 years, 3 months ago | Thread started: Jun 19, 06, 9:13 a.m.

RespondNew TopicDisable Images

  • ibye

    I have a dynamic text field and I just want to make it say different things as you click it.
    right now I have nothing in the field and then you click on an object and it says "hi my name is bob" How do I make it so when you click on it again, it says something else?
    (here is the code I have already)

    thanks
    --------------------------------…

    on (release) {
    this._parent.copy_txt.text = "Hi, my name is bob"
    }

    Jun 19, 06, 9:13 a.m. – Permalink
  • Mimio

    Hey there Tex,(trigger finger busted?) Assign another button another string, or increment another variable to grab a new string from an array.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 19, 06, 9:15 a.m. – Permalink
  • ibye

    yeah a little quick on the draw actually, thanks, I'm just learning advanced actionscript, so I don't fully get what to do by your suggestion, but it is a start. thanks

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 19, 06, 9:20 a.m. – Permalink
  • Mimio

    Check this out:
    http://www.kirupa.com/developer/…

    Use your buttons to retrieve the strings(messages) from an array.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 19, 06, 9:25 a.m. – Permalink
  • ibye

    Awesome, that breaks it down nicely. Thanks again.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 19, 06, 9:27 a.m. – Permalink

Login or Register to respond to this

Skip to main content