How to remove Button from Flex Mobile app actionbar with AS3?

How exactly would i remove a Button from the actionBar "actionContent" in a flex mobile app?
I tried these:
    this.stage.removeChild(menu_btn);
    this.removeChild(menu_btn);
    stage.removeChild(menu_btn);
    this.stage.removeElement(menu_btn);
    this.removeElement(menu_btn);
    stage.removeElement(menu_btn);
I'm not having any luck with those. Im guessing where it is located in the actioncontent isn't considered the stage. Any ideas?
    <s:actionContent>
                        <s:CalloutButton id="menu_btn" icon="@Embed('assets/images/menu/menu_btn.png')" visible="false">
                                  <s:VGroup>
                                  <s:Button id="btn_one" label="Button" />
                                  </s:VGroup>
                        </s:CalloutButton>
              </s:actionContent>
The actionContent is setup like that, I know like with most mxml stuff I could give it an ID to reference it but im not sure how how to give the action content an id number `<s:actionContent id="testID">` does not work. So how can i access this to remove it? making it invisible isn't cutting it i need to actually remove it.

Does this do what you are looking for?
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
    <s:actionContent>
        <s:Button id="excess" label="excess" />
        <s:Button label="remove" click="this.navigator.actionBar.actionGroup.removeElement(excess);" />
    </s:actionContent>
</s:View>

Similar Messages

  • How to remove buttons from standard check in page

    Hi,
    Can any one tell me how to hide buttons from the standard check in page and re-arrange field in UCM. I want to just display Check In, Reset and Quick Help.
    Thanks,
    Abhijit
    Edited by: AbhijijitPr on Sep 6, 2010 2:28 PM

    Hey Tim,
    Even i am facing a similar situation but i have to hide the field on the selection of an option list
    How can i do it through profile and rules?
    Can it be done by using custom includes in the fields?
    if yes how?
    Thanks,

  • Flex mobile app attach complex AS3 movieclip SWC

    I have a Flex mobile project and I want to place a complex movieclip on the stage that has its own classes and exported from Flash CS5.5 as a SWC.
    OK no worries there but as soon as I have addChild called in the Flash movieclip/SWC.. Flex errors and cannot access null object reference.
    I also went down the Flex Component Kit though then I can't seem to access the classes??
    Any thoughts or suggestions appreciated.

    Did you ever find a solution?

  • How to Remove User from Built in Administrators group With Group Policy Enabled

    Hi,
    I want to remove user from Administrator group which is in restricted group. So I cannot remove him through Active Directory what is the way to remove user from Administrator restricted group.
    Thanks
    Jibran Ishtiaq

    > Disable Group policy
    "Edit", not "Disable"
    > Under Domain click Delegation and went to the restricted group account.
    > Remove User from group.
    Why "Delegation"? Simply edit the GP object where the "Restricted
    Groups" setting is in place...
    > Also we have two DNS but one from where I remove account is the primary.
    How is DNS related to group policy?
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to remove values from a drop down menu with personalizations

    I have been unable to find any examples of removing values from a dropdown menu using forms personalizations. We have a specific responsibility that we would like to limit the actions that they can carry out on the person form. I have tried setting default values, setting the object to update_allowed = false, and have been unable to come up with a solution. The examples I have found do not show this type of personalization so I am unsure if it can be done. If anyone has done a personalization like this, please post the steps to reproduce or a link to an example. Thanks.

    DineshS wrote:
    Which dropdown menu you want to customized ?The specific menu we would like to customize is the 'Action' menu on the Person form that usually contains 'Create Employment' and so on. We have a specific recruiter responsibility that we would like to limit to 'Create Applicant'. I have been unable to come up with a combination of steps in personalizations that sets that value in the dropdown and allows it then be unchangeable. If you have any suggestions, please let me know. I would prefer not to create a custom form but without personalizations, I might have to.

  • How to remove buttons from a selection-screen as window.

    Hello SAPients.
    I'm using CALL SELECTION-SCREEN 100 STARTING AT 10 10 to call a previously created selection-screen. The window shows 4 buttons: Execute,  Check input, Save as variant and Cancel. The user is asking to remove the Check input and Save as variant buttons. Is that possible? I've been searching and I can't find a way to remove those 2 buttons.
    Thank you in advance for your help.

    Hello Ric,
    The buttons must be defined in GUI status right?
    So you must be calling the 'set pf-status' command?
    Modify this statement.
    suppose the function code for check input is 'CHECK' and save variant is 'SAVE'.
    TYPES: BEGIN OF TAB_TYPE,
            FCODE LIKE RSMPE-FUNC,
          END OF TAB_TYPE.
    DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE WITH
                   NON-UNIQUE DEFAULT KEY INITIAL SIZE 10,
          WA_TAB TYPE TAB_TYPE.
    CLEAR TAB.
    MOVE 'CHECK'TO WA_TAB-FCODE.
    APPEND WA_TAB TO TAB.
    MOVE 'SAVE' TO WA_TAB-FCODE.
    APPEND WA_TAB TO TAB.
    SET PF-STATUS 'STAT' EXCLUDING TAB.
    Thanks,
    Susmitha
    Dont forget to reward points for useful answers

  • Remove buttons from CAD Supervisor toolbar

    UCCE 9
    CAD 9
    I know we can remove Agent buttons from CDA -> CAD-Agent work flow -> User Interface section.
    How to remove buttons from CAD Supervisor toolbar please? Like Recording. If not possible, is it possible to Disable / Grey out a button. I am looking to remove / disable VoIP Monitoring and Record buttons please?
    Thanks,
    Kartik Bhatia

    Can you try this:
    Go to CAD Admin web page
    Services Configuration-> Remove VoIP/Recording & Playback Services
    Make sure that there are no IP addresses of any servers in the Recording & Playback Service menu. If there are some, select them and press ‘Remove’ button to remove them.
    Please make sure that you close CSD, CAD completely and login back to see the changes. I haven’t tried this before but I think this would disable the recording buttons in CSD. I don’t know whether it needs CAD services restarts(all).
    -Sunil

  • How to remove iPhone from a certain computer

    How to remove iPhone from a certain computer along with it's ID to allow another phone to use the comp soley.

    You do not need to do anything.
    Simply stop syncing the iphone to the computer and begin syncing the new iphone to the computer.

  • Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?

    Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?
    Thank you.

    I found the answer just after posted this.  Thanks to a user named CloudWalker.  Solution is to go in AppStore, View Account under "Store" Menu and unhide any purchases.

  • HT5858 In control centre some how facebook app is getting displayed I dont want any app to be clickable from control centre how to remove it from control centre panel

    In control centre some how facebook app is getting displayed I dont want any app to be clickable from control centre how to remove it from control centre panel

    .

  • How to remove items from iPad home screen?

    How to remove items from iPad home screen?

    Press and hold any of the apps and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded (you can't delete built-in apps) then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'

  • Does anyone know how to remove images from google

    i had instagram and i didnt upload images of myself but i only used my own image in the display picture and some how it has gone on to the google image search yesterday i deleted my account but when i checked to see if my images do appear in the google images i had some really bad regrets !! i reallywant to know how i can remove pictures off the google image search  even doe this does not kind of relate thank you .

    Does anyone know how to remove vocals from an import from I tunes...a  polyphonic stereo mix ?
    If you are talking about some "Karaoke" method using Logic I'll try to offer one. Before that I must say that most of the Karaoke methods are based on reversing the Phase of one of the stereo channel and bussing or merging the stereo into Mono. The result is: killing all Pan Centered in the mix - like Main Vocal, Bass, Kick, SN ect.
    The artifacts of the Stereo FX of the main vocal will stay in the Karaoke, cause the FX is stereo etc.
    Here is the Logic Setup I can offer to try some Karaoke trick using Logic.
    1. Import a Stereo mix into a Logic Stereo track.
    2. Create another stereo track and duplicate (copy) the Original Mix region to the duplicated track.
    3. Hard Pan L/R both stereo tracks.
    4. Insert an EQ and Gainer plugins into the duplicated track (R).
    5. Set the Output select of the both tracks to a Bus and assign the new Aux Track Switch mode to "Mono".
    6. Open the Gainer plugin and thick the "Phase Invert" Right button.
    7. To keep the "lowend" instruments like the bass and kick, open the EQ plugin and enable the Low Cut filter and try some Hz settings 80-115, or different Q which will sounds better for your Karaoke.
    P.S Click the image below to show its real resolution!
    Regards,
    A.G
    ======================================
    www.audiogrocery.com
    Author of: Logic GUI Deluxe(Free), Vox De Bulgaria s.a.g.e vocal pack for RMX, Logic Snapshot Console, RMX Power CTRL - Logic Environment Midi editor for Stylus etc.
    ======================================

  • Flex Mobile App eats memory on device

    Hi,
    I have my flex mobile app that manages a lot of bitmapdata objects. Every bitmapdata is disposed after use. It's a multi-layer drawing app, and I have many SpriteVisualElements displayed on the screen. Every SpriteVisualElement contains 4 SpriteVisualElement that I use to paint different images. The problem is that on device (iPad2) the app eats a lot of RAM. It's not a memory leak problem (the memory is properly released when I return to the first view). I don't know what to do... please help me!
    ps: on Flex profiler the app seems to consume 6 times less RAM

    oooooh nooooo
    you have to pay Apple first
    and then request a certificate and provisioning file
    and then try and figure out how to convert the certificate to a .p12 file
    and cross your fingers and hope they will allow it in their store
    and you have to own a mac, although there are some convoluted ways to get a certificate using a pc you still cant get onto the store without a mac

  • How to remove items from my reading lists on my ipad?

    how to remove items from my reading lists on my ipad?

    Swipe across its name in the list and it should get a Delete button on it - tap that and it should be removed from the list

  • How to remove item from my iPhone and iPad on my reading list?

    How to remove item from my iPhone and iPad on my reading list?

    Swipe across its name in the list and it should get a Delete button on it - tap that and it should be removed from the list

Maybe you are looking for