| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: May 2008
Posts: 21
|
I have 100 button icon, when flash program runs, how to dynamically choose button i want and put it on canvas using action script?
for example, when user choose computer - all icon button related to computer will get put on canvas ... etc each button will have action script attach to it and do something. any examples? |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Apr 2008
Posts: 363
|
you have 100 different buttons you intend to put different actions on ^_-? Thats an extremely long way of giving actions to buttons, especially if you have to change any in the future.. I suggest you give your buttons functions through actionscript all on one layer.. this way its much much quicker and easier to get to for later reference
An easy way of doing what you want to do Id imagine is, If you have different groups, say, for example, an icon of a computer - and all the icons related to the computer are in a movieclip, and all icons related to another button are in another movieclip and so on. All the grouped icons are set to _visible = false; and when the user clicks the computer icon, you'd set _visible = true; to the computer group etc |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamically changing a textbox inside a button | peter5 | ActionScript 2.0 | 5 | 12-05-2005 03:00 PM |
| Problems masking image INSIDE a button clip | bkohsl | Simple Stuff (Newbies) | 3 | 06-21-2005 11:00 AM |
| Button action inside for loop not working | hbd | ActionScript 1.0 (and below) | 3 | 06-19-2005 03:51 PM |
| Set Properties from a button inside a MC? | weevil | ActionScript 2.0 | 7 | 08-13-2004 12:18 AM |
| _mc button strange behavior after click action on component | 303 maddec | ActionScript 2.0 | 2 | 06-08-2004 03:25 AM |