Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Feb 2015
    Thanked 0 Times in 0 Posts

    How can I change button text individually (using actionscript 2)

    I have a flash file with buttons (which are instances of the same button symbol).

    The button symbol is made up of a rectangle with a text field.
    When I duplicate the button 5 times (for example) to make 5 buttons and then I change the text in one of them, it changes for all of them.

    But I can write individual onRelease script for each one.

    How can I change the text for each button to be different without also changing all the others.

    I tried writing button1.text1.text = "button text123"; on the main canvas, but it doesn't work.

    I know I can make duplicate symbols and use one instance of each but then it is a huge hassle to resize all the buttons, because I have to resize every symbol one by one, or remake them all, just to change the width for example.

    I use a program called Sothink Quicker (but it's very similar to what Macromedia Flash was).

    Here is an example of the swf.
    Last edited by Vectorian; 03-23-2015 at 08:43 AM.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts