A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Multiple buttons...

  1. #1
    Member
    Join Date
    Dec 2001
    Location
    Montreal, QC, Canada
    Posts
    63

    Multiple buttons...

    Hi all,

    What could be the best way to achieve this: I have an undetermined number of button, when I click on one of the button I want to pass an action to the others i.e. resize them by 50%. But when I click a button I want it to grow back to its original size if it was at 50% while the others will be resized to 50%...And so on... Am I making myself clear??!

    Any help would be really appreciated! Thanks in advance,

    Isengard

  2. #2
    Welcome to flavour country
    Join Date
    Sep 2000
    Posts
    662
    Are you using Flash 5?

    If so you will have to put each button inside a movie clip since you can't access and change the properties of a button in Flash 5.

    If you are using Flash MX, you can change the properties of the button itself.

    Regardless, you can store references to all of your buttons in an array and then when you click on one, loop through this array and set the _xscale and _yscale properties of every button in the array and then size the button you've clicked on to it's original size.

    Hope this helps.

  3. #3
    Member
    Join Date
    Dec 2001
    Location
    Montreal, QC, Canada
    Posts
    63
    Hello thewiz, I'm using Flash MX, I'll try it as you say, if I need further assistance I'll post a new message! Thanks a lot!

    Isengard

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center