Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-23-2008, 11:11 PM   #1
tobycraftse
Registered User
 
Join Date: May 2008
Posts: 21
Default dynamically position button with action inside

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?
tobycraftse is offline   Reply With Quote
Old 07-23-2008, 11:44 PM   #2
pierre23
Registered User
 
Join Date: Apr 2008
Posts: 363
Default

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
pierre23 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.