A problem in Alert.show() in FlexSDK 11563

Hello, I've got a problem with the Alert.show and the PopUpManager, every time an active method that ultilize these classes is displayed the following error:
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método de uma referência de objeto nula.
    at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()[E:\dev\trunk\frameworks\pr ojects\framework\src\mx\managers\PopUpManagerImpl.as:678]
    at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\trunk\frameworks\projects\framework\src\m x\managers\PopUpManagerImpl.as:393]
    at mx.managers::PopUpManager$/addPopUp()[E:\dev\trunk\frameworks\projects\framework\src\mx\m anagers\PopUpManager.as:189]
    at mx.controls::Alert$/show()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\Ale rt.as:620]
    at br.com.vpsa.view.screens.fiscal::CadastroCFOP/carregarCfop()[E:\WORKSPACES\FISCAL\fiscal\ flex_src\br\com\vpsa\view\screens\fiscal\As\CadastroCFOP.as:151]
    at br.com.vpsa.view.screens.fiscal::CadastroCFOP/___CadastroCFOP_Group1_creationComplete()[E :\WORKSPACES\FISCAL\fiscal\flex_src\br\com\vpsa\view\screens\fiscal\CadastroCFOP.mxml:6]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\co re\UIComponent.as:11982]
    at mx.core::UIComponent/set initialized()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:1540]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:759]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1069]

This could be the same problem as https://bugs.adobe.com/jira/browse/SDK-24060. Watch the bug for updates. It should be fixed very soon.
-Darrell

Similar Messages

  • Alert showing in invisible mode?

    Hello,
    I've created a popupmanager to display a panel,
    The thing is, that when i activate the pop up, and then activate an Alert.show, the alert is invisible.
    If for example I activate the alert first, the alert is visible. I dont know how is this happening.
    Any ideas?

    Does anyone has clue to this problem. Since system defined alert also not working in update mode, hence I need urgent attention from all users pls.
    Thanks
    OP Sharma

  • Trying to use Alert.show in module- possible?

    I have some user data that I have to validate before
    submitting it to a db and so I was planning on popping up an
    Alert.show to ask them if they are sure in the usual fashion.
    Button click event points to function that should show the Alert.
    debug shows that function gets entered, but Alert does not show. no
    error, just no Alert. code and controls are in a module that's
    loaded into main application based on user input. Is this the
    problem? Should I be using a popup window instead of Alert? Thanks
    in advance.
    Andy C.(never #)

    First, thanks for the reply:
    I can't browse outside from my windows box( well I can but
    they can see what I'm doing), so I can paraphrase.
    <mx:Button label="Add Button" id="btnAddUser"
    click="doAddUser(event)" />
    <mx:Script>
    <![CDATA[
    import mx.everything and its brother;
    private function doAddUser(event:Event):void
    var alrtmsg:String="Are you sure you want to add this data
    to the database?";
    var alrtttl:String="Confirm User Add";
    Alert.show(alrtmsg,alrtttl, Alert.YES | Alert.NO, this,
    alertClickHandler);
    private function alertClickHandler(event:CloseEvent):void
    if(event.detail==Alert.YES)
    rest of code does validation
    ]]>
    </mx:Script>
    This is pretty much straight out of the help screens. Now
    this is in a module that's loaded into the main application.
    Everything else works as I expect it to, but I can't get the Alert
    to popup. And obviously, since I'm validating user input I have to
    have a way to show them when they forgot to put something in.
    Thanks

  • How to center align Alert.show() in flex

    Hello All,
    I have a tall Flex application that uses Alert.show( ) to display error/warning messages. This created problems when the error messages were centered on the screen, but not visible when the screen was at an extreme scroll position (top or bottom). is there any way that i can display the Alert in the center of the user's viewable page. I've tried the following, but didn't work.
    var errorMsg:Alert = Alert.show("Error message"); PopUpManager.centerPopUp(errorMsg);
    Thanks in advance.

    Thanks for your help, yes by using some javascript calls i'm now able center align the Alert.
    Here is the solutions for my problem.
    var viewPoint:Number = ExternalInterface.call("eval", "window.pageYOffset"); var browserHeight:Number = ExternalInterface.call("eval", "window.innerHeight"); //the following calculation finds the center y coordinate in user's viewable page. var viewableY : Number = ((browserHeight/2)+viewPoint-50); var alert : Alert = Alert.show("Error Msg"); PopUpManager.centerPopUp(alert); alert.move(400,viewableY);
    I hope this helps someone...

  • Crashing whenever using mx.controls.Alert.show

    Flex Project: Desktop (AIR)
    Flex SDK: 4.1
    Flash Builder 4
    Problem: Whenever I use Alert.show even with the simplest strings passed it crashes showing the following error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:566]
    And it is pointing at Alert.as line:
    var sm:ISystemManager = ISystemManager(FlexGlobals.topLevelApplication.systemManager);
    How do I use this? What's wrong? Any fix?

    It sounds like you're referencing a NULL object somewhere.  Any chance you could provide us with some sample code?  I just successfully tried the following out:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="init()">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   public function init():void
                        Alert.show("This is a test", "My Alert");
              ]]>
         </fx:Script>
    </s:WindowedApplication>
    Thanks,
    Chris

  • Alert.show on Air application

    Dear Flexer,
    I made an transparent Air application with no chrome.
    With those configuration, I have a problem with alert window.
    Indeed, if i try to use an alert.show anything appear on screen.
    I thinks that this problem appear because on my application only menubar appear.
    So as I work on Flex 4 with Macintosh system, I try to do Alert.show("Souhaitez-vous quitter MonAppli?", "Quitter     l'application", Alert.OK | Alert.
                    CANCEL, Sprite(FlexGlobals.topLevelApplication);
    But no alert on screen
    Is anyone have a solution to solve that mistake?
    Thanks for your help.

    Post a 20-line test case.

  • Alert.show() doesnt pops up

    hi list,
    as many times before, i simply try to create a new alert in
    an the script tag of flex:
    private function myHandler(event:Event):void
    trace("myHandler() was fired");
    Alert.show("My Message", "My Title");
    for some reasons, the alert doesnt pops up. the trace() is
    printed in the output which tells me that the function has been
    executed???
    the code obove is executed inside a new <mx:Window />
    which has been created by the by the main
    <mx:WindowedApplication />.
    settings for the <mx:WindowedApplication /> are:
    showFlexChrome="false"
    settings for the <mx:Window /> are:
    systemChrome="none"
    showFlexChrome="false"
    transparent="false"
    the app descriptor file has:
    <systemChrome>none</systemChrome>
    maybe someone can help?

    i found the problem by my self:
    the reason was, tha i forgot to set "parent" param of the
    Alert. since i create the Alert in a Window, i have to explicit set
    this param. in my app, where the used the main file as a "splash
    screen" which directly closes after it creates the window the Alert
    was created, but in the main file (which was'nt visible)! stupid
    things happens.
    the correct code is like this:
    private function myHandler(event:Event):void
    trace("myHandler() was fired");
    Alert.show("My Message", "My Title",
    this);
    regards

  • Alert.Show WEIRDNESS

    OK, riddle me this, Batman:
    I've got a function (example attached) with a number of items
    running in it (alot of setting of variables, and outputting them to
    text areas and such). When I have an Alert.show call, all is well
    and the variables get set and output just fine.
    But when I remove or comment out the Alert.show call, the
    whole thing comes to a grinding halt and variables are not set.
    And here's the weird part (like the stuff above wasn't weird
    enough): the Alert.show can't be a hard-coded string, it has to be
    the value that one of the variables is being set to (in other
    words, the original value that was saved as a variable, not he
    variable itself).
    I've hit this now both in Flex 3 and Flex 3 AIR
    applications...
    HELP! (and thanks)

    I was having trouble with Alert.show and thought it was a
    problem with the function, too. But it was something I was doing.
    You don't say how myGameText is declared, but it seems pretty
    obvious. You might want to try enclosing variables in String() when
    you are passing them to functions that require strings. Like
    gmDate.text=String(myGame.@date);

  • Problems with Alerts in DFM 3.2.0

    Hello, I have this problem with DFM 3.2.0 in LMS 3.2 running on windows 2008
    High Severity Alerts show this message:
    An exception occurred.Please check the  AAD.log file for further details.
    In the attached file is that log

    Please start a new thread for your issue and describe your exact problem in detail.

  • Alert.show error

    Hello,
    I have an Alert.show statement in a handler that is giving me
    an Implicit coercion of value error (1067). I can't find the
    problem in the code. The line where the error exist is marked
    below.
    Does anyone see the problem?
    Thanks!
    Frank

    public function handleDelete() : void
    Alert.show("Delete Filter?","Confirm" (Alert.OK |
    Alert.CANCEL),
    null, null); // this is the line with the error
    I changed alertCloseHandler to null, and it has no error any
    more.
    It could mean you can not use such varible here, please
    double check it.

  • My iphone 4 will no longer connect to my Itunes since 7.1.1 update itunes has latest update as well followed help which involved using mobile device properties no good re installed itunes still same problem iphone is showing up on pc as connected

    my iphone 4 will no longer connect to my Itunes since 7.1.1 update, itunes has latest update as well followed help which involved using mobile device properties no good re installed itunes still same problem iphone is showing up on pc as connected but itunes unable to see it
    any Ideas cheers

    Try holding the power and home button untill the apple symbol appears and let it reboot, if that does not work Try a DFU restore https://discussions.apple.com/thread/5269891

  • Help with Alert.show()

    I need help with Alert.show(). My goal is to display a message box when a button is pressed.
    My program header:
    <?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"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    actionBarVisible="true" fontWeight="normal" overlayControls="false"
    tabBarVisible="true" textAlign="right" title="tipCalc">
    //// start of script section:
    <fx:Script>
            <![CDATA[
            import mx.controls.Alert;
            import mx.events.CloseEvent;
    // show a message box when button pressed
    protected function about_clickHandler(event:MouseEvent):void
                Alert.show( "This is a message!", "Dialog Title" );    }
    This results in the errors below:
    Access of undefined property Alert.
    Definition mx.controls:Alert could not be found.  

    Well, me and my three days of Flash Builder are lost in the woods. I have no idea how to do what you suggest. The code Google's showing me seems to call for scrapping my working functional program and starting from scratch. For a message box.
    Can I add a message box to my existing code?
    Here's the header...
    <?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"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    actionBarVisible="true" fontWeight="normal" overlayControls="false"
    tabBarVisible="true" textAlign="right" title="tipCalc">
    And here's theclickHandler that should call the popup.
        protected function about_clickHandler(event:MouseEvent):void
                    //  Call a message box.

  • How to autoclick/run a button after Alert.Show() Event?

    Hey Guys
    So I have a alert.show happening for something like
    public function test(evt:ResultEvent):void
    if (evt.result.success == "yes")
         mx.controls.Alert.Show("Yay!!!")
    if (evt.result.success == "no")
        mx.controls.Alert.Show("Nay")
    Now I have another button called
    <mx:Button label="Reload" id="Reload" />
    I want that if the sucess == yes scenario is run.. After the popup box comes and a person click OK.. the reload button is run..
    Please tell me how to do so??
    Regards

    You need to set up an event listener on the closeEvent.
    Here is a quick example (untested):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.events.CloseEvent;
    import mx.controls.Alert;
    private function init():void {
    Alert.show("myText", "myTitle", Alert.OK | Alert.CANCEL, this, onClose);
    private function onClose(event:CloseEvent):void {
    if (event.detail == Alert.OK) {
    trace("ok pressed");
    } else {
    trace("cancel pressed");
    ]]>
    </mx:Script>
    </mx:Application>

  • Monitoring Active Alerts shows critical heartbeat failure while server is working

    details of the alert shows the reason is the computer can't be reached through an ICMP ping
    if do a 
    ping servname
    it uses the IPV6  and fails
    Why isn't it using IPv4?
    thanks
    N
    NM

    Hi,
    In the Tasks pane, under Health Service Watcher Tasks, click
    Ping Computer. The task opens a dialog box to display its progress.
    In addition, more details, please read the article below to troubleshoot heartbeat failure issue:
    Resolving Heartbeat Alerts
    https://technet.microsoft.com/en-us/library/hh212891.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    When normally powering the phone, there would not be a loading bar, you would just see the Apple logo. You can try a reset of the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    You can take the phone to Apple, by making an appointment at the Genius Bar to have the hardware checked. Apple handles warranty and post-warranty issues, not Verizon. Have Apple look at the hardware to see if there are any problems.

Maybe you are looking for

  • PC automatically shutsdown when I plug my iPod nano 4g into the computer

    I've only been able to sync my iPod once, but every other time I plugged it into my computer, a blue screen automatically pops up saying that it's going to shutdown unexpectingly, any ideas? I'd like to update my iPod again some time soon Message was

  • Can i use 2 channel of USRP at the same time to receive a signal?

    Hi everyone, i want to do an implementation of time difference of arrival estimation between two receivers (antenna). I have an USRP  kit, daughterboards and two antennas. There is only one source signal ( it is transmitted in anywhere it doesnt matt

  • Help Encryption & Hard drive recovery Nightmare

    Can anyone help please I have a hp probook 450 go, that decided to not boot into windows, an warning would come up after the finger print scan saying no os. This seem to be an issue with the MBR record so after trying to fix no joy.  It was running w

  • HotSpot Virtual Machine Error

    Hi all.           One happy morning I had found a WLS6sp1 at Sun shutdown with a message:           # HotSpot Virtual Machine Error, Internal Error           # Please report this error at           # http://java.sun.com/cgi-bin/bugreport.cgi         

  • Universe design for SAP BPC (MSAS cube)

    During the designing of a Universe on top of a MSAS cube there is the moment I may select Dimensions & Hierarchies. Here there are ID's of my model, e.g. Accounts-Lev1, Time-Lev1, etc. How do I get to see the descriptions of the levels in the Univers