Flex Mobile - Alert and Information Popup Boxes

Since a Android-looking popup box doesn't yet exist in the Hero SDK, I thought I would put a pretty good looking component together.
You can download it (and the sample code) here:
http://www.digitalretro.tv/components/InformationBoxTest.fxp
A real simple example in in the project, for both an Info and an Alert.
I currently only support an "OK" button, but I will be adding a Yes/No and OK/Cancel later this week.
Hopefully this will save someone some time.
Enjoy and feel free to use this in your code (commercial or non-commercial), just leave the copyright code in the component source file in place.
Thanks.
Darren

Hi.
I tried the Messagebox and it works great but is it possible to use a TextInput with it?
I added a Textinput and when i enter the Textinput i got an Focusmanager is null error:
private function touchMouseDownHandler(event:MouseEvent):void
         isMouseDown = true;
         mouseDownTarget = event.target as InteractiveObject;
         // If we already have focus, make sure to open soft keyboard
         // on mouse up
       if (focusManager.getFocus() == this)
             delaySetFocus = true;
         // Wait for a mouseUp somewhere
         systemManager.getSandboxRoot().addEventListener(
             MouseEvent.MOUSE_UP, touchMouseUpHandler, false, 0, true);
         systemManager.getSandboxRoot().addEventListener(
             SandboxMouseEvent.MOUSE_UP_SOMEWHERE, touchMouseUpHandler, false, 0, true);
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at spark.components.supportClasses::SkinnableTextBase/touchMouseDownHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableTextBase.as:2140]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
Does anyone tried to use a TextInput or Textarea?
I think it's the a problem with the Keyboard. Does mobile air can't use the "Android" Keyboard in Popup's?

Similar Messages

  • Flex Mobile, URLLoader and Sessions

    I have created a Flex Mobile Project that I've been testing so far on a Motorola Xoom and uses the URLLoader object to query some JSP pages and return the output. These JSP pages require user authentication which depend on sessions.
    If my URLLoader requests are made sequentially (the second request is not made until the first is completed) session information functions normally. If multiple URLLoader requests are made at the same time there is a chance that one or more of the request's session information will fail. I've used a packet sniffer and found that the "Cookie: JSESSION=..." header value is not being set or sent to the server.
    I've actually been able to solve this problem by fetching my session ID when I login, storing it locally and setting the "Cookie: JSESSION=..." value manually in the header of all my URLLoader requests. Most of the time the browser will overwrite this value that I've set with the session ID that it has, and that's fine. But in the case where it doesn't set this value then my manually set value is passed to the server and it is able to find the appropriate session.
    The solution I've come up with seems to work so far, but I was still wondering if anybody knows what's causing this or knows a better solution?

    That sounds like everything's working the way it should. Until the "first" request is authenticated successfully and the response comes back to the browser/device, your app doesn't have session credentials. Sending multiple simultaneous unauthenticated requests will thus all need to authenticate individually -- and making matters worse, may create multiple sessions on the server, so as they come back your session info (as represented by your JSESSION ids) will rapidly run through all the new sessions until settling on the last one.
    I would suggest changing your application flow to let your first request go by itself first and not submit any other requests until that (authenticated) response is received.
    -- Tom
    Flex SDK engineer

  • Conficker, Downadup or Kido April 1, 2009 Virus Alert and Information

    Hi everyone,
    As you have probably seen, there is plenty of press going on about a new Virus that is reported ready to spring tomorrow on April 1. In an effort to keep our users protected, we are trying to get the word out as well. The following information is provided as some steps you can perform. HP does not endorse, nor recommend any virus application over another, but we do look to the major vendors for guidance.
    Target: All users of Windows XP and Windows Vista. 
    On April 1st the Conficker worm will start taking more steps to protect itself.  After that date, machines infected with the “C” variant of the worm may not be able to get security updates or patches from Microsoft and from many other vendors.  The creators of the worm will also start using a communications system that is more difficult for security researchers to interrupt.
    The Conficker worm, sometimes called Downadup or Kido, has managed to infect a large number of computers.  Specifics are hard to come by, but some researchers estimate that millions of computers have been infected with this threat since January.  Current users of Symantec’s Norton security products are protected.  
    Symantec has a detailed technical analysis of the threat here:  
    What does the Conficker worm do? The worm has created an infrastructure that the creators of the worm can use to remotely install software on infected machines.  What will that software do?  Most likely the worm will be used to create a botnet that will be rented out to criminals who want to send SPAM, steal IDs and direct users to online scams and phishing sites.   
    The Conficker worm mostly spreads across networks. If it finds a vulnerable computer, it turns off the automatic backup service, deletes previous restore points, disables many security services, blocks access to a number of security web sites and opens infected machines to receive additional programs from the malware’s creator. The worm then tries to spread itself to other computers on the same network. 
    How does the worm infect a computer? The Conficker worm tries to take advantage of a problem with Windows (a vulnerability) called MS08-067 to quietly install itself. Users who automatically receive updates from Microsoft are already protected from this. The worm also tries to spread by copying itself into shared folders on networks and by infecting USB devices such as memory sticks. 
    Who is at risk? Users whose computers are not configured to receive patches and updates from Microsoft and who are not running an up to date antivirus product are most at risk.  Users who do not have a genuine version of Windows from Microsoft are most at risk since pirated system usually cannot get Microsoft updates and patches.
    What to do if you are infected 1.       Use your anti-virus product to identify which variant of the worm is on your computer. 
    2.       Follow the detailed removal instructions for the specific version of the of the worm.  These can be found here:
    W32.Downadup.A writeup
    W32.Downadup.B writeup
    W32.Downadup.C writeup
    Advice to Stay Safe from the Downadup Worm:
    Run a good security suite, like Norton Internet Security or Norton 360.
    Keep your computer updated with the latest patches. If you don’t know how to do this, have someone help you set your system to update itself.
    Don’t use “free” security scans that pop up on many web sites. All too often these are fake, using scare tactics to try to get you to purchase their “full” service. In many cases these are actually infecting you while they run.  There is reason to believe that the creators of the Conficker worm are associated with some of these fake security products.
    Turn off the “autorun” feature that will automatically run programs found on memory sticks and other USB devices.
    Be smart with your passwords. This includes
    ·         Change your passwords periodically
    ·         Use complex passwords – no simple names or words, use special characters and numbers
    ·         Using a separate, longer password for each site that has sensitive personal information or access to your bank accounts or credit cards.
    6.       Use a passwords management system such as Identity Safe (included in Norton Internet Security and Norton 360) to track your passwords and to fill out forms automatically.
    Run an Internet Security Suite, such as Norton Internet Security,  or Norton 360.
     FAQ Q: Am I safe if I don’t go to questionable web sites? 
    A: No. The Conficker worm seeks out computers on the same network. You can be in a coffee shop, an airport or in the office and the worm will quietly try to attach to your computer and run itself. 
    Q: How do I know if I am infected? 
    A: The best way to know if you are infected is to run a good antivirus product. One symptom that may indicate you are infected is finding that your computer is blocked from accessing the web sites of most security companies.
    Q: Can’t I just run free antivirus software? 
    A: Yes, but free products often aren’t thorough or comprehensive. Worse, the internet is overflowing with fake free security scanners that actually infect your computer. Fake scanners such as “Antivirus 2008” are difficult to identify and have plagued hundreds of thousands of users around the world. 
    HP Product Expert for the Officejet Pro X Series.
    Was your question answered? Mark it as an Accepted Solution!
    See a great post? Give it a Kudos!

    All:
    We found this link as a resource for more detailed information:http://www.confickerworkinggroup.org/wiki/
    There, they have a quick visual test (brilliant!) to see if you might be infected. Conficker Eye Chart
    I have to say, the computer security industry has really pulled together on this issue for unprecedented cooperation!  "So what happened on April 1," you may ask? According to various anti-virus manufacturer websites the infection was programmed to begin download updates to itself after generating a list of websites on April 1st.  Allegedly, the Conficker Working Group thwarted this attempt by pre-registering (owning) a majority of the websites the bug was going to utilize.  So April 1st came and went without much incident - but this does not mean we are through hearing about this issue as some experts believe this was only the "activation date."
    Stay tuned for more information...
    Message Edited by Matthew-GS on 04-03-2009 11:07 AM
    Matthew|Community Advocate | Best Buy® Corporate
    Visit our Channel on
     Private Message

  • I have a laptop and a desktop both Macs all of a sudden the desktop wont let me get into my bank account a popup box comes up when I click login asking if I want to save, open with or do automatically, never had this before my laptop is fine

    I click on login on my Mac OSX and a popup box appears with save, ope with or do automatically if I click on any of those it does not get me into anything
    Go to preferences and not sure what I should be changing to rectify the problem
    My laptop is fine

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Flex mobile orientation: force portrait mode and then allow auto orientation

    I'm creating a flex mobile project and I want to force the app to portrait orientation when I click a button, and when I click other button allow again to change the orientation.
    This is my code when I click the first button, where I want to force portrait mode:
    protected function click(event:MouseEvent):void{      if(stage.orientation != StageOrientation.DEFAULT){           stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged);           stage.setOrientation(StageOrientation.DEFAULT);      }else{           doSomething();      }  }  
    private function orientationChanged(event:StageOrientationEvent):void{      doSomething();      stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged); } 
    private function doSomething():void{      stage.autoOrients = false; }
    It works ok and it changes the orientation if it's needed.
    Now, when I want to allow orientation change again, I've only putted:
    stage.autoOrients = true;
    It works ok if when I click the first button the app is in portrait and it doesn't have to change anything. But if it's on landscape and it have to change to portrait, when I allow orientation change again, it doesn't work ok.
    Do you know if I have to allow or change something? Or, is there any better way to do this?
    Thanks in advance

    Thanks for your answer. It works, but I have the same problem that I have setting the orientation. If I'm on landscape, it changes to Portrait ok, but when I want to allow auto orientation again, it doesn't work well.
    A little tricky I've found is:
    When I want to force to portrait:
    private var oldOrientation:String = null;
    protected function click(event:MouseEvent):void{
       if(stage.orientation != StageOrientation.DEFAULT){
                oldOrientation = stage.orientation;
                stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged);
                stage.setOrientation(StageOrientation.DEFAULT);
       }else{
                doSomething();
    private function orientationChanged(event:StageOrientationEvent):void{
                // do something if you are changing to portrait mode (the first change) and other thing if you are changing to old orientation
    And when I want to allow auto orientation again:
    if(oldOrientation != null){
            stage.setOrientation(oldOrientation);
            oldOrientation = null;             

  • ANE for one platform on Flex mobile project for iOS and Android

    I'm very new at Flex Mobile Projects and native extension.
    I have a big doubt... If I have an ANE that only works on iOS or Android, can I use it into a project for Android AND iOS?
    I mean, if I want to do something and I've only found and ANE that works for iOS and another ANE that works for Android, can I create only one project and depending on the device use one or another? or should I create two different projects?
    Thanks in advance

    You can set them both up and when you publish just comment out the code that does not apply, this way you still keep it as one project but you can use the ANEs as needed, I had to do this with the iAd ANE only for Apple obviously and AdMob ANE which at the time was Android only.
    Example
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Now when you publish for iOS comment out the Android related stuff
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Also dont forget to update your included ANEs when you publish and remove the ones that dont apply and update the XML files as needed. Its possible, but annoying, it would be nice if it was automated or could be flagged somehow so the Flash publisher would auto ignore it.

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

  • Incompatible signature after creating a new Flex mobile project in Flashbuilder 4.6

    When I create a new flex mobile project and try to build it right away it gives me this error
    1144: Interface method initialize in namespace mx.core:IUIComponent is implemented with an incompatible signature in class utest.
    I have tried reinstalling Flash Builder and even upgraded from 4.5 to 4.6 to try and resolve this problem.
    I have also tried using different versions of the Adobe Air sdk (I'm currently using Air 3.4).
    Here is the projects mxml file, if that helps although it doesnt have anything but the generated code.
    utest.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                firstView="views.utestHomeView" applicationDPI="160">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:ViewNavigatorApplication>
    views.utestHomeView.mxml
    <?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">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:View>
    Also I am running Flash Builder 4.6 on Windows 7 32-bit
    Thanks in advance for the help
    Edit:
    I have now tried the flash builder 4.7 trial and even 4.6 on a different machine, both were clean installs, and I have found that when i create a new project it does compile
    until I get an error, and this can be any error, then after I fix that error it gives me the same error as before
    1144: Interface method initialize in namespace mx.core:IUIComponent is implemented with an incompatible signature in class utest.

    Hi Gsaison,
    Do you have any progress on these issues? Im working on the same solution right now (SWV + GoogleMaps JS v3 ) I've got some weird issue when i try to spawn a StageWebView inside a View on IOS, it appears inside a scroller and is not open for finger interaction anymore. I use the eskimo framework, but then again, nothing fancy going on there for the rest. I've tried all of the the stage.stageScaleMode options but non of them work. Got any help?
    Kind regards,
    Roy

  • Open PDF file into flex mobile app

    Hy,
    I use this method to open a web page into my flex mobile application and I want to now if is possible to make the same for an PDF file.
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Test">   <fx:Script> <![CDATA[ import flash.net.URLRequest; import flash.net.navigateToURL; import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import flash.desktop.NativeApplication; import mx.events.FlexEvent; private var browser:StageWebView;
    protected function onButtonClicked(event:MouseEvent):void { browser = new StageWebView(); browser.viewPort = new Rectangle(0, 0, 100, 200); browser.stage = this.stage; browser.loadURL("http://adobe.com"); }  ]]> </fx:Script> <s:Button x="209" y="67" label="test" click="onButtonClicked(event)" /></s:View>

    Rangrajan,
    If you have the complete URL to the file; for example http://forums.adobe.com/filename.pdf
    or C:\users\yourname\filename.pdf
    Although I have not used it, you can pass the URL to Drumbeat Insight iFrame
    You can try their product, get prices for source code or library here: http://drumbeatinsight.com/products
    They offer email support for their products.
    You can make your own iFrame, with several sources.  Here is some background.
    http://www.ozzu.com/flash-forum/targeting-iframe-from-flash-t30013.html
    Let me know if this solves your file issue.
    I need to write a server-side app to listen to my web service, upload the PDF, then write a temporary file.pdf to the server,
    before my web app can load the PDF into a web hosted iFrame.
    Adobe needs to make this easy (and I even know some developers in the San Jose Adobe headquarters).
    Bruce

  • How to increase the iCal Alert Popup BOX height?

    I would like to be able to increase iCal's Alert popup box to show more than two concurrent alert notifications at one time.  Ideally, this popup box would dynamically size itself to the number of active alert notifications up to the available screen space.  A second less elegant solution would be to enable the user to resize the iCal Alert popup box manually.  A third  even less elegant solution would be to statically redefine a new default height in terms of either active alert notifications or pixels.  Anything would be better than the limitations currently in place...
    Here is an example of three concurrent alerts.  In this case, the user must scroll down within the iCal Alert popup box to see Alert #3.

    Hi
    It's not at all possible.
    If you want to use a textbox with muliple line items... you need to use Text Edit control. If you want to use that click on the following link for clear information:
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/fe9f668af411d3805e00c04f99fbf0/frameset.htm
    Regards
    Surya.

  • Mobil me and Yahoo boxes

    I keep getting boxes that pop up asking for log in information. One is for mobil me and it's asking for a member name and password. I thought I deleted the system when I decided to cancel it.
    Also after heving terrible luck with my old Yahoo account, I deleted all mail accounts. Now I keep getting the sign in box asking for my yahoo info.
    Please help me get this crap off of my system.
    Thank you.

    I keep getting boxes that pop up asking for log in information.
    Where?
    I thought I deleted the system when I decided to cancel it.
    Sign out in System Preferences --> MobileMe
    Now I keep getting the sign in box asking for my yahoo info.
    What sign in what box?

  • Out of the Box alerts and messages.  Necessary?

    Hi,
    I have installed Grid Control and I am monitoring a couple of Hosts and DB's and well, before I even did that I noticed that Grid had a whole bunch of Critical and warning alerts along with Policy Vioalations. Now I assume these are out of the box alerts and messages, cause some of them seems pretty dumb to me. I know we can change them to change the values but I just wanted to make sure if I should really worry about these or not? Are they really serious. Some of them don't make any sense to me and I have been trying to look online at places where I can find out what they mean exactly and how to correct them. Does anyone know how to. These messages are just annoying and I would like to log in to Grid and see no alerts or violations. Here are some examples of what I am talking about. Any advice or help is much appreciated :)
    Examples Alerts:
    -51.55% of all processes are in zombie state, crossed warning (35) or critical (50) thresho...
    -Number of Active Agents exceeded the critical threshold (1). Current value: 0
    **This one seems dumb to me since I only have one agent on the server and the threshold is set to 1!!!!
    -Metrics "Current Open Cursors Count" is at 1673
    -Target is in broken state...
    **This one I would really like to figure out what it means. It is listed under the errors tab.
    Example Policy Violations:
    -Critical Patch Advisories for Oracle Homes
    -Listener Direct Administration
    -Use of Hostname in Listener.ora
    -Oracle Home Executable Files Owner
    Thanks

    -Critical Patch Advisories for Oracle Homes
    Nice but pretty obvious - only need if you have a security policy at your company-Listener Direct Administration
    Dont believe in that one ...-Use of Hostname in Listener.ora
    Same with this ..-Oracle Home Executable Files Owner
    Should be fixed .. a valid problem.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

  • Flex mobile project standalone flex server resets to J2EE and can not change

    Developing an Android mobile project with FB 4.5. Set original project-->properties-->flex server to standalone with coldfusion as server.  After setting web root, Root URL and Coldfusion root folder app works fine with CF. Sometime during development, flex server gets set to J2EE and CF access halts.  Go back into project-->properties-->flex server and reset server to 'standalone' with original settings.  click Apply or OK and assume that it is reset but it does not.  Go back into flex server settings and it is still J2EE.  I have seen this issue before and can not resolve it or find any other threads where there is a resolution to this.  My only way to continue is to start a new mobile project, import the files and continue.  This is not an acceptable way to design any mobile project!!  HELP!!

    Developing an Android mobile project with FB 4.5. Set original project-->properties-->flex server to standalone with coldfusion as server.  After setting web root, Root URL and Coldfusion root folder app works fine with CF. Sometime during development, flex server gets set to J2EE and CF access halts.  Go back into project-->properties-->flex server and reset server to 'standalone' with original settings.  click Apply or OK and assume that it is reset but it does not.  Go back into flex server settings and it is still J2EE.  I have seen this issue before and can not resolve it or find any other threads where there is a resolution to this.  My only way to continue is to start a new mobile project, import the files and continue.  This is not an acceptable way to design any mobile project!!  HELP!!

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

Maybe you are looking for

  • Why am I getting an error message in Adobe Bridge?

    An error has occurred during the delete operation. Some files may not have been processed...then to click OK

  • Design of reusable data persistence layer with single container

    Hi, I am designing an 3-tier application using cmp for my data persistence layer (DPL). The customer now wants to run multiple versions of the application on one server using different data sets for each application. One solution I see, but don't lik

  • Desperate help needed in understanding SPRY accordion CSS

    hello everybody like many out there im stumbling through some home/self tuition on DW. I've recently checked out the spry accordion. It all went well up to the part where I wanted to improve the outlook of the accordion. I luckily found some template

  • Service working fine in Gateway but not in browser

    Hi All, I have a gateway service which is working fine in Development system but after transporting to Quality system, it is not working on browser. It is running perfectly in Quality gateway system but on browser it's throwing error:             Mod

  • TDMS functions much slower in CVI 2010

    Hello everyone. Today I noticed that at least some TDMS functions are much slower in CVI 2010 compared to CVI 2009 SP1 and prior. I have created and attached a simple sample project that creates a TDMS file with about 3000 file level properties and t