Why I need to click it twice show buttons?

Hi,
First I don't see any buttons (Buttons -This is a movie clip) on Stage. When I click on Show button using the following code, I can see my Buttons. But first I need to click twice to see the Buttons. While second time there is no problem. How to solve the problem?
this.Buttons.visible = false;
import fl.controls.Button;
var myButton:Button = new Button();
myButton.label = "Show Menu";
myButton.name = "btn1";
myButton.toggle = true;
myButton.move(55, 95);
addChild(myButton);
myButton.addEventListener(Event.CHANGE, changeHandler);
function changeHandler (event:Event):void {
    if (event.currentTarget.selected == false) {
        Buttons.visible = true;
        myButton.label = "Hide Menu";
    } else {
        Buttons.visible = false;
        myButton.label = "Show Menu";       
Thanks and regards,

use:
function changeHandler (event:Event):void {
    if (event.currentTarget.selected) {
        Buttons.visible = true;
        myButton.label = "Hide Menu";
    } else {
        Buttons.visible = false;
        myButton.label = "Show Menu";       

Similar Messages

  • Why we need to call writeFloat twice?

    When we playback the audio recorded, why we need to call  e.data.writeFloat(sample) twice?
    private function playRecorded(e:SampleDataEvent): void
                    if (!rec.bytesAvailable > 0)       
                        return;
                    var length:int = 8192;
                    for (var i:int = 0; i < length; i++)
                        var sample:Number = 0;   
                        if (rec.bytesAvailable > 0) sample = rec.readFloat();
                        e.data.writeFloat(sample);
                         e.data.writeFloat(sample);   

    hi,
    Why do we need to call thread.start() to execute a
    thread. why not just calling run().
    Because, start() does two things.
    - start a new thread of execution and then
    - call the run method....and calling run does NOT start a new thread of execution. It's just a plain old regular method.

  • Why supplier needs to be maintained twice in COMMPR01 for interlinkage?

    Hi Everyone,
    if I want to create an interlinkage in COMMPR01 (price-product-vendor-relationship), I need to maintain the vendor twice. Once within the tab "conditions" and once within the tab "relationships".
    Does onyone out there have a clue, if there is some special meaning behind this "redundant" maintenance, or if it is just for technical reasons?
    Thanks and best regards
    Julian

    Hi Danielis
    This kind of errors usally occurs when there is a file corruption. In either the application of the configuration files. The Datasocket configuration is save in the 'cwdssini.dss' file. this is by default installed in 'C:\Program Files\National Instruments\DataSocket'. Yu could try and remove this and then run the Datasocket Server Manager once to recreate a file with default settings.
    We it is a problem with the Application you could try and install a fresh copy on a other machine and run the VI and server on that machine. Or just run the server on the other machine and connact you Front panel object to that server instead.
    As for other ways of doing this you could look into the Shared Variables that have been introduced in LabVIEW 8
    Hope this helps
    Karsten

  • External topics using Hide/Show button

    I need to be able to add a Hide/Show button for external topics - i.e. topics that are not part of the RH project, but rather linked to from the TOC using http://
    Thanks in advance

    Hi there
    I'm unclear on what you are wanting. Do you mean that you have perhaps a link to Google, and somehow you need to cause a Hide / Show button to appear on the Google page?
    I'm not sure that's even possible.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Why Do I Need a Credit Card to Show Artwork from CD's That I Own Legally?

    In Windows Media Player the album artwork shows up right away, but with itunes they tell me I need and account, and that account needs a credit card, why? I do not plan to buy anything from apple as I merely want to use what I own legally, I want the artwork from my CD'S to show up on itunes and on my ipod and do not think that my credit card needs to be part of that simple request. Please advise?

    Artwork is only available for albums that are for sale in the iTunes Store. If Exile on Main Street is not something that iTunes sell, you'll have to find your artwork elsewhere. As Roger said, Amazon is usually a good place to start looking. Also, a Google Image search may find what you're looking for.
    I believe that the Command - I equivalent on a Windows machine is Control-I. However, if you right click on the song, Get Info should also be one of the options. It's also an option from the File Menu, I believe. Poke around, use the Help function (which has a list of keyboard shortcuts, by the way), you'll find it.
    Only Apple would know why they need or what certain information. Generally, it's pretty easy to dummy a phone number if the field is required and you don't wish to give out that information. I find all 7s works fairly well.

  • HT3455 I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    Wow.
    Over react much?
    Check your purchase history.  See if it actually charged you twice.
    If it did then contact itunes support for a refund.
    No need be so over dramatic.

  • It says my security answers are wrong, so I guess I need to reset them, it says to click the rescue email button that shows up under the questions, there is no button that shows up.

    It says my security answers are wrong, so I guess I need to reset them, it says to click the rescue email button that shows up under the questions, there is no button that shows up.

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (96912)

  • Why do I have to click everything twice ?

    When is Firefox going to fix this?
    In every version after 3.6, I have had to click twice or "reload" the page. If I close the page and click again or reload the page, it immediately comes up.
    It is not because of problems in my computer. I went into safe mode and disabled all add-ons and got the same result. It happens on 80-90% of the websites. There are a few sites that consistently load immediately but most I have to reload the page or wait for the page to load which can easily take 30 seconds to a minute.
    I have a fast download of 28 and upload of 6. I have a clean computer, plenty of ram memory and have limited programs allowed to activate on start up. I usually have very few tabs open at a time. I've cleared cache and done all the usual things always recommended to do.
    This is very frustrating and it has to have something to do with bugs in changes of versions since 3.6. That version worked perfectly. These latest versions up to the most recent update have been consistently more and more problems.

    I'm with you RJ343, as an ex-software developer from the late 90's, I am appalled at the way Firefox has gone.... i recently upgraded to Windows 7 and Firefox 17 and it is disgusting the number of things that do not work,... and I have to LAUGH MY F**KING HEAD off when I hear geeks and nerds who are barely out of their cyber-nappies moan at me because I prefer 3.6 and they can't understand why i don't love the latest version... SIMPLES > because they are so full of bugs and workarounds and stupid add-ons I have to install just to go "back" to 3.6 and its glorious feature set that has since been ripped apart and hacked to smithereens and replaced with dodgy , sh*te alternatives that I'm supposed to adore ? Same with XP, I am still using it and will continue to use it until MS deliver something of quality that the users want, not what they want to force on me....
    SO back to the topic -- I landed on this page because I have noticed that in FF17 I have to keep clicking everything TWICE, to get the page to load. It happens everywhere, it's as though the focus is not set properly, and the 1st click sets that, and then I have to click again to execute. Certainly I have just registered in order to write this post, I deem it that important, and now that I am , I will have to start replying and posting the myriad of other failures by FF development team in their latest versions,.... what I find the most insulting as I mentioned, is this indoctrination that I HAVE to use the latest versions over the old, tried & tested products like 3.6, because FF will withdraw support or add-ons stop working for the old versions. I wouldn't mind, if the new versions weren't such a croc of shoite and actually worked.
    THIS BUG must be one of the most basic and incompetent of them all. Why do I have to bloody Double-click everything ??? !
    ''"3.6 was almost universally liked by everybody"'' - yes, because it was tried & tested.... obviously the latest generation of developers never heard of the old adage, "If its not broken, don't fix it"... and don't gimme all that crap about security vulnerability,.... that's just an extension of the War on Terror..... Fear is too widely traded for Functionality, and good solid TESTING , which seems to be a thing of the past. The software industry is in a crisis and soon there will be nothing that works and we will all hark back to XP and FF 3.6 as the golden age when software actually worked.

  • Firefox 10 - Needing to Click on web links twice before page loads

    Hi all
    Any one else got the same problem as me? I've upgraded to Firefox 10 on two systems now and have the same problem on both, When you click on a weblink, some times you need to click on the link twice or press F5 before the new page loads. it dont happen all the time. It kinda bugs you after some time lol Never had this problem on pass versions of FF, crome and IE seem to work fine

    You may have an add-on doing this. Start FF in [[Safe Mode]] and see if the issue still persists. If it doesn't disbale your add-ons one by one to see which one is the main one causing this issue.

  • HT1311 Just wondering why my comments on Facebook do not show via iOS. Is there any setting I need to make on my iPhone 5,I love this phone. Thanks

    Just wondering why my comments on Facebook do not show via iOS. Is there any setting I need to make on my iPhone 5,I love this phone. Thanks

    Someone else may have a workaround, but, as far as I know, if you cannot interact with the screen on the iPhone, there is no way to unlock it so you can get to your contacts.
    Were you saving them to iCloud by chance? If so, you can restore them to your new phone.
    ~Lyssa

  • Why must I now click my trackpad twice?

    I've had a number of problems after installing Yosemite.  One is that when I click on a drop-down item in the main Finder navigation, the first click of my trackpad seems to "release."  I have to click a second time to take action.  Anyone got a suggestion as to what I'm not doing right?
    Other problems after installing Yosemite have included booting only to reach a gray screen with the cursor in the upper left corner ... that's as far as it got.  I've also had my screen images become something like a pixel puzzle ... rips, tears, and disintegration.  I've done clean installs and reloaded content from a Time Machine backup and that has mostly, but not completely, resolved the problems.  These problems, including the need to click twice described above, have occurred on both my iMac and my MacBook Pro.
    Appreciate any suggestions.

    Hi Leroy!
    Appreciate the suggestion.  Apologies for the delay in responding.  I did create a guess account, logged in, and the problem with the "double click" required on my trackpad DID NOT appear.
    Now what do I do?  I'm still having the problem in my own (administrative) user account.  Any more suggestions?
    Thanks, Michael

  • Hi why are my photos after downloading twice ,once in photo library and once in a file with the date why cant i delete a file its an iphone 4s please help

    why are my photos after downloadon twice one as photo library the other as a file with date how can i delete one file same pics

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • Parts HTML form Expand All(Show button) option needs to customize.

    Hi,
    I am new to OAF.
    I have a requirement lin Oracle Sparse Management -> Parts HTML Request Form needs to Personalize/Customize for a business requirement.
    I have some qusetions like
    1. Can we customize or personalize the Show All Details or HideAll Details options in OA Forms ?
    2. If Yes, i have similar requirement like that,
    The personalization aim is show all details should be expanded by default.
    3. If No please provide why it can not be achevable.
    Here is business reuirement in parts Html, there are two regions in page 1. Header 2. Lines (Under Lines there are two table 1 is for Item information search and 2nd is for order details based on the item. This order details are hided under the Item information table one of the field button Show(which is like Expand All with symbol +))
    Page works like below.
    1. Header level validations are there for some fields like Resource, Need By Date.
    2. Once Valid from header can be entered the Item information search in Lines details Region, in the same table there is an option with + symbol (Show), which is like Expand All.
    will validate the item details and displays Order details respective to item. These results are hide under + Show button.
    If i want see the order details then i need to perform click action on the +Show button. (Requirement is this should be done automatically once i have entered the item in Line Details Region and needs to display the results).
    Please provide your seggestions to acheive this.
    Thanks,
    Narayana Swamy

    For this i have tried below steps to extend related VO of SHow button field.
    Below steps i have perforemed.
    1) Identified the right VO from about this page.
    ReqLineVO
    2) Exported the related standard VO to JDEV from Server.
    ReqLineVOImpl.java, ReqLineVORowImpl.java, ReqHeaderVO, RequirementAM, RequirementAMImpl.java
    3) Created a new VO which extends the standard VO and modified Showhide flag to ‘Y’
    HolxReqLineVO, HolxReqLineVOImpl.java, HolxReqLineVORowImpl.java
    4) Performed substitutions in Jdeveloper
    Project Properties -> Business Components -> substitutions
    5) Have created custom folder structure in server and moved custom VO files to server.
    \holx\oracle\apps\csp\portal\requirement\server\HolxReqLineVO.xml
    6) Performed JPX import
    1. Go to E:\jdev10g\jdevbin\oaext\bin
    2. Executed the below command
    jpximport E:\jdev10g\jdevbin\jdev\myprojects\OAProject4.jpx -username apps -password th1rdapps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
    (HOST=mycomapny.com)(PORT=1526))(CONNECT_DATA=(SID=TESTDB)))"
    7) After this bounced apache.
    8) While trying to open the parts html form, below exception is occurring.
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: Could not load application module 'oracle.apps.csp.portal.requirement.server.RequirementAM'.
         at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:279)
         at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:78)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1306)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at RF.jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:662)
    ## Detail 0 ##
    JBO-30003: The application pool (holdb01.dataintensity.comHOLDEV1524oracle.apps.csp.portal.requirement.server.RequirementAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
    ## Detail 0 ##
    oracle.jbo.InvalidOperException: JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
    JBO-30003: The application pool (holdb01.dataintensity.comHOLDEV1524oracle.apps.csp.portal.requirement.server.RequirementAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
    ## Detail 0 ##
    oracle.jbo.InvalidOperException: JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.

  • Flash Buttons and UI Components need double click to work. Any Solution?

    Hi,
    I have just finished making an application for Kiosk in Flash. However while testing I noticed that the buttons I used and UI components like textfield, textarea, radiobuttons, etc need to be touched twice to make them function. Can anyone tell why this happens and how to solve this issue? Its very frustrating for a user to keep clicking on the component to make it active first and then make it work.
    Note: Is it like Flash UI components need time to get active on screen and then they function?
    Thanks in advance.

    Thanks for the reply ReshapeMedia.
    What I want to say is I have a Flash exe file which contains feedback form for customers. This exe is displayed on Kiosk where user can interact with it using touch screen. The problem here is - when user touches (clicks) on the input field on screen or selects a radio button, it takes him several attempts to do so. In other words, user keeps on touching and tapping to activate the input field first and then somehow it gets activated and after multiple touches it allows them to enter the data/ radio button is selected and other buttons functions.
    This obviously adds to users frustration.
    This application is not loaded in IE so there is no browseer involved here.
    You mentioned a script trigger a mouse click. What is that? (I have addEventListener on my buttons already) Kindly explain a bit. Thanks a lot.

  • Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.  Error Code: c0000005  Address: 76f73ac3     I clicked on the OK button and the downloader closed.     I then tried to download from the organizer. I

    Photoshop Elements 12
    Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
    Error Code: c0000005
    Address: 75e32f71
    I clicked on the OK button and the downloader closed.
    I did a search on this error code (c0000005) and there seems to be a workaround but no solutions, why is this? I ask that because this problem seems to be years and years old, going back to at least 2005 (do the math that is 10 years).
    I don't even have the Camera hooked up and I get this error on download.  I redownloaded everything and reinstalled.  I allso saw the AVI issues reported with this proble so i updated Quicktime though without the camera being hooked up when I get this error I didn't expect that to work.  I tried support and they wouldn't help because I bought it in March this year.  Pretty frustrating as I have re-purchased Elements about every 2 years.  I think I might need a new CODEC?   I had this problem on an Earlier version And I seem to remember that being the Fix but this may be something completely different

    I finally found that it was missing a picture so the Catalog was "corrupted".  I just deleted the picture and it started working.
    I hate Adobe and their total lack of support - thanks for nothing Adobe .  Also get this - they offered me to upgrade to 13.0 ( My 12.0 is only 6 months old  but they still don't support it on errors.  Only install errors!
    I have upgrade and repurchase this product 4 times now.  I will find something else next time!

Maybe you are looking for