Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6377041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:49:14+00:00 2026-05-25T01:49:14+00:00

I have a button in action script with toggle=true. Now when I click the

  • 0

I have a button in action script with toggle=”true”. Now when I click the button its color changes and it looks as if it has been disabled (but its actually not). I need to know which property of this button has changed? For example if I need to know somewhere in my code the “toggled state” (if there is any such thing) of this button, which property of this button should I check?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:49:15+00:00Added an answer on May 25, 2026 at 1:49 am

    Button.selected is what your looking for, I made an example to demonstrate this:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    creationComplete="init(event)">
    
        <mx:Script>
            <![CDATA[
            import flash.events.MouseEvent;
            import mx.events.FlexEvent;
    
            private function init(e:FlexEvent):void
            {
                onButtonClick();
    
            }// end function
    
            protected function onButtonClick(e:MouseEvent = null):void
            {
                if (button.selected) button.label = "button selected"
                else button.label = "button not selected";
    
            }// end function
            ]]>
        </mx:Script>
    
        <mx:Button id="button" toggle="true" click="onButtonClick()"></mx:Button>
    
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JS script which is called when a submit button action is
I have to pass an object to an button's action... something like [myButton addTarget:self
i have a form button in the form,which i need to perform basic action
I have one issue with UInavigationcontroller In my firstview i have button.If i click
I have a form which has a input textbox and submit button. On submission
i am new to Action Script and i have the following problem: i have
I have a jquery script in my page as below; $(function() { $('.action_button').click(function() {
I wish to have a submit button (for the default form action), and an
I have this action script code that is working perfectly but i am try
i have a problem with Action Script 3. I use Flash CS5. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.