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

Similar Messages

  • Trying to use iMovie for subtitles. Possible???

    First let me explain my problem and hopefully someone can assist me with my problem:
    My friend made a documentary and had someone edit the film on FCP, and then that person added subtitles in DVD Studio Pro. None of those programs I have on my iMac. My friend wanted to change some things and asked me if I could assist and I accepted.
    What I did was download a DVD converter to my computer that worked fine. Once I imported the DVD into iMovie we made such changes.
    However the problem I'm having is trying to extract subtitles from the actual DVD CD.
    So here are my questions if anyone is so nice to help me:
    1. Can anyone offer any legit online, free programs to extract the subtitles?
    2. Should I add the subtitles manually in iMovie?
    3. Can iDVD able me to add a page where you will have the option to watch film with or without subtitles?
    Thank You.

    First let me explain my problem and hopefully someone can assist me with my problem:
    My friend made a documentary and had someone edit the film on FCP, and then that person added subtitles in DVD Studio Pro. None of those programs I have on my iMac. My friend wanted to change some things and asked me if I could assist and I accepted.
    What I did was download a DVD converter to my computer that worked fine. Once I imported the DVD into iMovie we made such changes.
    However the problem I'm having is trying to extract subtitles from the actual DVD CD.
    So here are my questions if anyone is so nice to help me:
    1. Can anyone offer any legit online, free programs to extract the subtitles?
    2. Should I add the subtitles manually in iMovie?
    3. Can iDVD able me to add a page where you will have the option to watch film with or without subtitles?
    Thank You.

  • 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

  • Hard Drive failed - Trying to Use Data Rescue II

    I am trying to recover some photos and videos of my first child's first 20 months alive. My MacBook crashed while I was checking my gmail one night. I have a friend's iBook G4 connected to my MacBook via FireWire right now and am trying to use Data Rescue II to possibly recover my photos and videos. I can live without everything else. When I use the install disc to boot up my MacBook, all the iBook is seeing is the install disc, not the hard drive. Why? and what am I doing wrong? Why can't I see/scan the hard drive, too? Do I have other options?
    Thank you!

    When I hook the FireWire up, should something automatically pop up on the iBook, showing me that it recognizes the MacBook is now connected?
    The drive in the MacBook would mount like any other hard drive.
    Is it still a possibility that it's the data cable, or is that pretty unlikely?
    Given that Disk Utility in the installer disk won't see the drive, I think it most likely that the drive has failed, in which case Data Rescue will not be able to recover anything (it won't work if the drive won't even mount). Probably the only way you're going to be able to recover any files would be by sending the drive to a data recovery service, and those are very expensive.
    You can try removing the drive and putting it in an external case or using a drive adapter like the NewerTech unit (whatever's least expensive). That would verify that the problem is the drive and not with the drive circuitry on the MacBook. If you have an Apple Store near you, often they can perform such a test at the Genius Bar which would save you from having to buy a case/adapter yourself.

  • 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...

  • Not able to use Alert Configuration/Alert Inbox in the Runtime Workbench

    Hi Experts,
                      I have installed PI 7.1 on my system. I'm not able to use the Alert Configuration/Alert Inbox in the Runtime WorkBench. It is asking for a logon and the logon which i used for ABAP & Java Stack is not working.
    e.g., For ABAP Stack, the User Id is: "sapuser" & For Java Stack, the User Id is: "pisuper". But, both these User Id's are not working for the Alert Configuration/Alert Inbox in the RWB.
    Can someone pls suggest me, how to proceed?
    Br
    G@nesh

    Hi Preethi,
    Can u pls help me, how to check whether the relevant roles are assigned to this user i.e., pisuper for the JAVA stack in the UME or not? i even tried to use Alert Configuration/Alert Inbox with the User ID: ddic & j2ee_admin, but it too didn't work...
    I would like to use Alert Configuration/Alert Inbox with my User Id: pisuper, which i'm using to logon to the JAVA stack
    while exploring, i logged on to the useradmin page i.e., http://p71:58800/useradmin with the User Id: j2ee_admin... If this is correct, can u pls let me know how can i add the necessary roles to my User Id: pisuper so that i can use Alert Configuration/Alert Inbox with my User Id: pisuper
    Br
    G@nesh

  • When I create a shortcut on Mozila, my computer still tries to use Internet Explorer to access it. How do I change that?

    I had a problem with IE and removed it. Now I cannot put it back. Mozila works fine if I type in the address to every site I visit. I cannot seem to create a shortcut to use thru Mozila. I created a shortcut, but every time I click on it, my computer tries to use IE. Help.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • Alert.show() interesting behaviour

    I use multiple SWFs loaded in one main SWF. Each SWF is form
    and its form is linked to a class that extends the form class.
    Most of the forms use a base class. The base class includes a
    prompt function that calls Alert.show(). The form class calls the
    prompt function and when used within the SWF itself it works as
    expected but when the SWF is loaded in a movieclip of the main SWF
    then the message becomes the title and the title becomes the
    message and everything else seems to be find.
    I cannot figure out what the fuddle doddle is going on.
    I know that some V2 components don't behaves as expected when
    used in a SWF loaded into another SWF such as the ComboBox
    component that requires a _lockroot to expand its list when clicked
    if it's SWF is loaded into another SWF.
    I suspect the same type of weirdness is going on with the
    Alert component. I do have the _lockroot set but no cigars.
    I also imported the mx.controls.Alert class in both, the base
    class and the form class with no success.
    Does anyone know how to make this work?
    Also, dos anyone knows of a list of SWF loaded into another
    SWF V2 component quirks and their solutions if any?

    I should add that if I use Alert.show() directly from the
    form class the it is working fine. It is only when I use it in a
    base class function such as 'prompt' called from the form class
    that it flips the message and title.

  • I am trying to use East West Quantum Leap Symphonic Orchestra with Garageband '11 and East West isn't showing up on the Audio Unit Modules List. Help?

    I am trying to use East West Quantum Leap Symphonic Orchestra with Garageband '11 and East West isn't showing up on the Audio Unit Modules List. Help?

    Not sure what to say. Have the free version, installed it and GB found it. Perhaps contact East West support if you have a paid version...

  • Is it possible to use a NI-9871 module on a C-RIO to automatically update shared variables?

    I am trying to use shared variables to poll a modbus network automatically.  I have a C-RIO 9014 and NI-9871 serial module that the modbus network is connected to.  Does anyone know if this is possible?  If so, could you post a sample configuration?  I have not been able to get it to work...   
    Thanks,
    Dan

    Hi D Reck,
    Using the 987X modules with a cRIO is much like using any other C Series module with a cRIO. It will interface with the FPGA through read/write controls or use a DMA transfer to send the serial information to the RT controller for processing. Note...you will need NI-RIO 2.4 and above depending on your version of Real Time and LabView or you will have to additionally install NI-Serial. DSC can only be run on Windows so I would guess that you would use variables coming from the FPGA or RT to DSC on a windows host machine and in the DSC module you can do ModBus Instrument I/O. Does that answer your question?
    Ipshita C.
    National Instruments
    Applications Engineer

  • I am trying to use the locate my macbook that was stolen. How do I know if it is set up on the service. It shows on the list but just says it is offline and doesn't say when or where it last was. I am trying to either locate it or erase it. HELP

    I am trying to use the locate my macbook that was stolen. How do I know if it is set up on the service. It shows on the list but just says it is offline and doesn't say when or where it last was. I am trying to either locate it or erase it. HELP

    Since you can see it in your device list it must have Find My Mac activated, but you're going to have to wait for them to take it online in order to either locate, lock or wipe it. Until it goes online you can't do anything. http://www.apple.com/support/icloud/find-my-device/
    iCloud: Locate your device

  • I am trying to use my iphone as a storage device to move my music to another computer but it shows up as a camera instead of storage device on my computer.  Any ideas?

    I am trying to use my iphone as a storage device to move my music library to a new computer.  My phone is showing up as a camera instead of as a storage device on my old computer so I can not move my music file to it.  Any ideas as to how I prevent this as showing up as a camera/scanner when I connect to my computer?

    It's supposed to show up as a camera because it is a camera.  Additionally, you won't be able to sync your music from your iphone back to iTunes... media sync is one way... iTunes to the iPhone.
    Google TouchCopy to copy the media from your iPhone to your computer.

  • For the first time, I'm trying to use adobe premiere elements10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or

    For the first time, I'm trying to use adobe premiere elements 10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or the codex is not installed. As a test, I created another very small project and get the same error message, when I try to open it. Pls give me a simple answer, a refund or a phone

    mike frischenmeyer
    What computer operating system is your Premiere Elements 10 running on? And, what video card/graphics card does that computer use?
    Is this the first time you are using Premiere Elements 10 or have you worked with it before successfully? There is no easy solution until we
    know the details and troubleshoot to determined what caused the problem.
    1. Can you open a new project?
    2. After you saved/closed the problem project, did you move, delete, or rename any of the files/folder that were related to the source media
    for that project?
    3. Please review the Adobe document on troubleshooting damaged projects.
    Troubleshoot damaged projects | Adobe Premiere Elements
    4. What are the steps that you are using to reopen this saved closed project.
    a. File Menu/Open Project/Name of Project
    b. Other
    Please review and consider and then we can decide what next based on your further details and results..
    Thank you.
    ATR

  • My iphone does not have facetime on it.  I've tried going into restrictions, but there's a passcode that doesn't seem to be one that I've used before.  Is it possible to reset the phone and then just restore a portion of the old information?

    My iPhone does not have Facetime on it.  I've tried going into restrictions, but there's a passcode that doesn't seem to be one that I've used before.  Is it possible to reset the phone and then just restore a portion of the old information?  I've tried several pass codes and now am locked out for an hour after being locked out for 5 minutes and then 15 minutes.  It said that I had tried 7 pass codes prior to these, but I don't remember ever trying to get into restrictions before.
    I've looked up other posts on this, and my phone was purchased in the US and does not have an AE in the model number.

    Help for forgotten passcode >   iOS: Forgotten passcode or device disabled after entering wrong passcode
    When you have access to your iPhone again, FaceTime is a pre installed app that cannot be removed.
    Try a search >  iOS: Understanding Spotlight Search

  • Hi. I am trying to use Bridge to make web galleries. There used to be something on PS for that but now I cant find it in PS so I was advised to use Bridge.  However, there is something called Output Module (AOM) that is missing from my Bridge.  I download

    Hi. I am trying to use Bridge to make web galleries. There used to be something on PS for that but now I cant find it in PS so I was advised to use Bridge.  However, there is something called Output Module (AOM) that is missing from my Bridge.  I downloaded this.  The instructions say :Copy the Adobe Output Module folder (not the AOM_Package_[OS] folder) into the Bridge CC Extensions folder in the appropriate location: 
    Windows: C:\Program Files\Common Files\Adobe\Bridge CC Extensions
    Mac OS: /Library/Application Support/Adobe/Bridge CC Extensions.  However there is noplace on my Macbook Air running Yosemetie that has this /Library/Applications SUpport/Bridge CC Extensions. Can anyone advise?

    That file could be set as a Launch Agent or Daemon in your ~/Library or /Library, You could try to look for it or Safeboot your computer and then empty the trash. Safebooting disables Launch Agents/Daemon and Third Party Kernal extensions. Here's the article to Safeboot OS X: What is Safe Boot, Safe Mode? - Apple Support

Maybe you are looking for

  • Pages document is too old to open???

    I bought a new Macbook Air and loaded Pages 5.01 which i think is latest version (sometimes called 09 (????) ). When I attempt to open a Pages document created in an older version of Pages I get an error message saying that the document can't be open

  • XML Content is loading in URL - why?

    The content of XML file i am calling is loading into the URL when i getURL and i wish to trim it or simply get rid of the content and keep the url

  • Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem

    Hi, I'm trying to migrate a sql server 2005 database to oracle 11g version with the lastest version of Oracle SQL Developer. All works fine but there is a little thing that I can't migrate. I have a few tables in the sql server database that has casc

  • Sync Movies (Not Working)

    Hello I hope some one can help. But my movies are not synicing with my Iphone 4S. I am using Itunes version 11.1.3.8. On my itunes tab I have sync movies checked and the check mark the movies I want to sync, But when I go to Videos on my Iphone I onl

  • Strange LOV behaviour in new rows (UIX)

    Hi all, we are using UIX for a JHS implementation project and came across a "JHS-00107: Table data are out of date, please requery" error while testing our JHS-generated forms. The problem arises in a table with multi-row-insert enabled where some of