Regardin Flex mobile alert - apache-flex

I am creating an application using flex mobile but could not find how to show alerts using flex.
So can anyone please tell how to show the alert in flex mobile , mx alert don't work in this and i could not find an alternative in spark.
Thanks

If you'd like to use the native alert popup (a title & message with 1-2 buttons like Ok|Cancel) I suggest using ANE Native Alert

You can either make your own pop ups, or if you don't want the hassle.
There is a Native Extension called AirAlert that will display the native pop ups. You can find it here:
Air Alert Git Hub Page
It works well on both platforms.

Related

Prism detecting if page is modal programmatically and go back

I am implementing a feature using "connectivity" from essentials that when the app goes "offline" no wifi etc.. it navigates to a specific page.
It works in most cases however if I set the phone on "Airplane Mode" when I am on a modal page it does not navigate to my page.
In Prism is there a way to detect if the current page "IsModal" and either goback or kill it so that I can navigate to my specific Page?
THanks
You'd have to write some crazy lookup logic to figure it out. Unfortunately the helper for that doesn't currently exist. However the latest Prism 7.2 preview has some enhancements that specifically attempt to eliminate the need to figure out whether you require Modal Navigation and automatically use the proper type of Navigation. I would encourage you to try the preview. If you come up with a scenario where GoBack isn't working correctly please open an issue.

Java FX system tray message

I'm developping an application that needs to run silently in the system tray.
That's why i used this SOLUTION first to hide my application in the System Tray, which is working really nicely.
However at some point my users will need to be notified about things. Like on Skype or Msn, when you get a message you are being notified of it with a popup in the right bottom zone of your display.
I'm looking for a way to reproduce this, i couldn't find anything in the java.awt.SystemTray doc. Is there any native class doing this or should i try to reproduce it by generating a window myself ?
First there is the answer from JavaFX: what is the best way to display a simple message?. This uses a custom popup as javafx from java 8 could not be used by the implementor.
If you can use javafx2 (the one with java 8) you can look at the Controlsfx library found here: Notifications with Controlsfx

Flex Native Local Notifications

I've an air app that needs to put a notification on the status bar on android devices like "2 New Tips" etc. Rest everything works fine, but I am not able to find something that can put a notification on the status bar. A simple demo that puts some text on the status bar on a button click.
I really need it, as this is the last thing left in my app. Please help!!
you'll need to make Native Extensions. http://www.adobe.com/devnet/air/articles/ane-android-devices.html

TV ergonomics in Flex

Im having fun toying with AIR and want to use it to create an application for my TV, but Im coping with a serious & dumb problem : TV ergonomics. Indeed, without a mouse, it is all about focus on elements and moving this focus in a natural fashion.
In HTML this is handled by the browsers perfectly, but in ActionScript Im having a real hard time ! For instance, I don't even know how to have an element on autofocus, so that when I load the app there is already something to click on (without it I just can't interact with my app at all!).
Do you have any idea on the best ways to create a listener for the remote controller arrows and OK button (should be enough) so that I never get stuck in the app ?
So whether you have already struggled with that or if you simply happen to know how to play with the focus and setFocus() parts of Flex, your help is very welcome !
I recommend you look at the Google TV Flash template. It's all about controls and navigation. I'm not sure if this works for Flex as I have not done any gtv development yet.

Flex 4: Is it possible to show a Flex application on clicking a button in another flex app

I remember launching a JFrame from within a JApplet.
I was wondering if I could do the same.
The requirement is like this
I have a screen estate just enough for a flex Button.
On clicking this button, I want to open another flex app which can be of larger real estate.
I dont want to open a new Browser window.
IS it remotely possible.
Your question is very unclear and referencing java applets is even more confusing. I'd suggest you learn more about flex; free tutorial videos on the adobe website. look into viewstacks, navigation and loading modules.

Resources