Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple Toggle On Off Buttons

New Here ,
Sep 29, 2014 Sep 29, 2014

Hello, I have ten buttons on one frame that need to act independently from each other. By tapping each button they switch to a new assigned button and if tapped again they revert back to default button state, similiar to on/off or show/hide..

I am not sure how to go about creating the script for multiple buttons on one frame, layer. This is suppo@se to be for Air for Android...any guidance, tips on this greatly appreciated...


multi-buttons.jpg

TOPICS
ActionScript
320
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 29, 2014 Sep 29, 2014

If you can explain some more about how things are supposed to work it might help get the solution you are after.  From what I just read you say that you want it such that if you click a button it is replaced by another button, and if you click it again.... that's where the story comes to an end because if it is no longer there it cannot be clicked again.

If you mean that clicking the first button makes it get replaced by another and clicking the other makes the first appear agaiin, then that could be as simple as having the first button sitting on top of the second and control the visibility of the first with the click event handlers for them.

If you are talking about button states, then you need to deal with movieclips instead of buttons so that you have better control of the buttons and what they do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 29, 2014 Sep 29, 2014

Hello

1.  Re: Multiple Toggle On Off Buttons

  Ned Murphy    CommunityMVP

 

, Hello Ned, Basicly it suppose to allow end user to keep track of repetitive tasks and by toggling the button a new button of different color or even with a number shows up, in my case from 1-10

The enduser can click button again to reset, returns back to default state. The buttons should be re-useable throughout other frames...kinda like how the counter below functions but in a visual

horizontal linear manner..non modern. I hope that makes more sense...


counter_eng_2.jpg


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 30, 2014 Sep 30, 2014
LATEST

Unfortunately you didn't offer any more information that helps clear things up.  The counter image you showed only confuses it further, especially since you don't explain how that works either.

I suggest following the recommendation of my second paragraph in my first response.  Put that plan into action and if it does not satisfy your goal then explain what it fails to do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines