ActionScript 3.0 :: Kill App Button For Exporting To Air For Android?

Mar 26, 2011

I just started playing around with exporting some of my older Flash projects as android apps.  I have one in particular that is a music player.  It works great but the back button on my android device just backrounds the app.  This is actually what i want since its a music player but would still like to be able to kill the app completely with a button on the stage.  I dont know if anyone has seen the siriusXM app.  When you hit the back button it asks if you want to exit the app (kill it) or just minimize.  I sorta want to do the same thing but simpler by just having a kill app button the stage.  I cant seem to find how to do this.  I created a button called exit_app.  Im assuming I need to make an event listener of some sort and create a function that runs when the button is pushed.  I found this snippet that refers to the back button killing the app.  Id like to modify it to perform the same action when I press my kill app button. 
 
function handleKeys(event:KeyboardEvent):void{if(event.keyCode == Keyboard.BACK)
NativeApplication.nativeApplication.exit();

View 2 Replies


Similar Posts:


Flash :: Android - How To Kill The Softkeyboard From Player

May 6, 2011

I needed a way to invoke softkeyboard in android platforms, and i got to know how to do it form here Flash APIs for Android Platform. Now i need to kill the keyboard, basically there is a button which i want to use to toggle the keyboard. Flash has provided a way to invoke the keyboard but not to kill it.(never understood how they work). One more issue is that when i click the down button on softkeyboard which is located on bottom left of the screen, the Softkeyboard_Deactivate event is not fired. It seems its fired only when the focus shifts from one object to another.

View 2 Replies

Android :: Flash Cs5 - Settings Will Work When Exporting From Photoshop?

Mar 3, 2012

I am creating images in Photoshop with a transparent background. I am calling them into flash dynamically with actionscript 3 but the transparency has a white ghostly look to them. I can see the boxes move around on my ANDROID devices.I found this tutorial and it helps: http:[url]....

HOWEVER I want to import the images dynamically and not have to bring each image in to flash and fix it. what settings will work when exporting from photoshop?

View 1 Replies

ActionScript 3.0 :: Kill Button On A Loaded Swf

Jan 21, 2009

I have a swf loading another swf. The loaded swf has a button (mc) whose purpose is to unload (kill) itself. Anyone know how to code this?

View 3 Replies

Adding OnPress To Mc, It Kill's The AS On The RollOver And RollOut Functions Of The Button Within?

Jul 13, 2003

I have an mc with a button nested inside and on this button I have AS for the rollOver and rollOut to play certain frames of the mc. The problem is when I use this mc (called 'mybutton_mc') in a menu system and I want to add AS to it to navigate to different areas, ie adding onPress to this mc, it kill's the AS on the rollOver and rollOut functions of the button within.

View 1 Replies

ActionScript 3.0 :: Kill Button On A Loaded Swf That Removes Itself (loaded Swf)?

Jan 21, 2009

I have a swf loading another swf. The loaded swf has a button (mc) whose purpose is to unload (kill) itself (the swf).

View 3 Replies

Professional :: No Publish Button - AIR For IOS And Android

Jul 12, 2011

I upgrade Web Premium from CS5 to CS5.5. I have a big problem with publishing for mobile devices.When I am in Publishing settings I cany see buttons :OK, Cancel and the most important Publish. For OK I ken press Enter, for Cancel Esc, but it looks there isn't any key, which can be pressed as Publish. I am Mac user. My version of Adobe software is Polish. I tried reinstall all Web Premium, but it ist't working. What else can I do?

View 3 Replies

ActionScript 3.0 :: Air For Android - How To Handle Back Button?

Jun 16, 2010

I have two questions:

1.Where is the Adobe Air for Android (or Flash for Android) or Adobe sanctioned mobile development forum?

2. I am developing a Flash/AS3 app for Android. 

View 7 Replies

Actionscript 3 :: Handling Back Button On Android?

Aug 14, 2011

I'm developing an Adobe Air 2.6 app for android tablets (using ActionScript 3.0).

I want to know how can I handle user back key press.

I read somewhere there is a specific Adobe Air SDK for Android, but I read it on a forum from 2010.

View 2 Replies

Actionscript 3 :: Radio Button And Radio Button Grooup On Adober Air For Android?

Aug 3, 2011

I'm developing an Adobe Air application for Android using ActionScript 3.0 (I'm not using Flex).I'm trying to use radio buttons and a radio button group, but they aren't available on ActionScript mobile.I'm using Flash Builder 4.5.1 Standard and when I want to import fl.controls it complains saying that it isn't available.Is there any other control that I can use instead of radio buttons?

View 1 Replies

ActionScript 3.0 :: Exiting Android App When Click Home Button?

Jun 1, 2011

I've created an andriod app in flash and need it to exit when the user clicks the home button. I found the following actionscript 3 online
 
// Check if we are on a Android / iPhoney device.if(Capabilities.cpuArchitecture=="ARM"){    NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, handleActivate, false, 0, true);    NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE , handleDeactivate, false, 0, true);   

[code]....
 
However I'm getting errors at lines starting with "private function handle" saying "The private attribute may be used only on class property definitions."

View 2 Replies

Flash :: Air Android App Always Launches In Portrait Mode Irrespective Of The Way The Android Device Is Held?

Jan 25, 2011

i have an AIR android app which i am running on an android device ( samsung TAB ). i want the app to get laid out in landscape mode when the user starts the app holding the device in landscape ( same goes with portrait ).

but the AIR app always gets started in portrait mode irrespective of the way the device is held.

i tried the following ways use stage.deviceorientation (but when the app starts (after the applicationComplete notification ) the value is UNKNOWN) use stage resize event. (this gets triggered at start itself, a manual resize is not required - the values are based on portrait mode though - the width is 600 and height is 1024 (should have been otherway) )

i get correct values when i try changing the orientation of device, only at the startup i see problem with the required values.

View 1 Replies

Android :: Android Tablet Browser Flash Movie To Landscape When In Fullscreen Mode?

Oct 28, 2011

I have an as3 built osmf video player swf that we embed on a standard HTML page. When you touch the image the video automatically goes fullscreen and begins playing. Droid and Flash often break after changing back and forth between landscape and portrait while in fullscreen.(by break I mean freeze, where you can hear the video and use the controls, but everything is just a still frozen image, the redrawing fails).Can you lock the fullscreen orientation in html, javascript, or do you have to try to handle it inside the swf?

View 1 Replies

Android :: Capture Video And Stream It To Flash Server On Realtime In Android?

Mar 14, 2012

I working on a project where the client side need to capture video and audio from the camera, use some library (proberly ffmpeg) to convert from mp4 to flv and send it to flash server on realtime,in the other side the client need to get flv and convert it to video type of android on real time. Is it possible to do?

View 2 Replies

Android :: Frame Rate Is Very Low For Android Game Developed By Flash CS5?

Dec 29, 2010

I am porting my flash games on android. I have ported 3 successfully. But the problem with all of them is they are giving very low frame rate near about 7-8. And I have observed 1 thing that frame rate always varies. Sometimes it goes upto 45 and again in next frame it comes to 3-4 and again goes to 15-16.

I am quite confused. Please let me know if anyone is having any idea about this.

View 1 Replies

Android :: Flash Inside Android WebView - How To Set Fullscreen Automatically

Apr 14, 2011

I am loading flash SWFs into an android WebView.I want the SWF to be instantly fullscreen and focused.The class name that handles flash is com.adobe.flashplayer.FlashPaintSurface .

Watching the log, when I fullscreen the flash manually, it calls com.adobe.flashplayer.FlashPaintSurface.toggleFullScreen()The first part of my question is, How can i call that method manually for my flash swf? Note that with a webview with a flash embedded, the only way i seem to be able to fullscreen it properly (to have flash's surfaceview fullscreen instead of the flash being displayed over top of the webview view) is by touching the screen with two fingers until an interface pops up at the top of the screen, and doesnt happen reliably.For focus, inside my webview class I call

@Override
protected boolean drawChild (Canvas canvas, View child, long drawingTime) {
if (child.getClass().getName().equals("com.adobe.flashplayer.FlashPaintSurface")) {

[code]...

This doesnt set the focus as I thought it would. Although i assume, if fullscreened properly, the flashpaintsurface should give itself focus. But if if the first part is not doable, i would wonder at least to not have to give focus to the SWF by clicking on it on startup.

View 1 Replies

Access Front Camera In Android Devices Using Flex-android?

May 17, 2011

There are samples to show how to access front camera of android devices using android sdk.

View 1 Replies

Android :: Performance - Taking Too Much Time To Finish The Activity In Android?

Jul 20, 2011

I have loading the webview in my Activity. the Web content is having some flash content. when i try to finish the Activity. Its taking too much time. the screen goes to blank screen for little time and resuming to the app.

View 1 Replies

Android :: What Versions Of Android And IOS Is Adobe AIR 3.0 Captive Runtime Compatible With?

Nov 16, 2011

I can't find this information online or in the documentation, does anyone know what versions of Android and iOS the AIR 3.0 captive runtime is compatible with? I'm assuming there is some restriction there, but short of actually compiling a program and trying it on iPhone for example, which I don't have, how can I tell which OS versions are supported?

I know that you can compile an Adobe AIR 2.7(?) application to target say Android 2.2, but what about the captive runtime with AIR 3.0? Also I don't see anywhere to find out the iOS version restriction with AIR, as you have to pay $100 to Apple to even get the SDK which would allow me to make an iOS project in the first place.

View 2 Replies

Android :: Adobe Flash Application Is Not Working On Android Tablet

Dec 2, 2011

I gone thorough the adobe flash builder video tutorials and did the same thing to create an application for android device, but when i run the application it is showing Sorry dialog box saying that, The application Test1-debug(process air.Test1.debug) has stopped unexpectedly. Please try again. I tried many times but it is not working. Initially i thought no Adobe-AIR in my device, but it is there. I am using Reliance 3G Tab. I don't why it is not working, if anybody know this please reply me.

One more thing, i downloaded one APK (which is designed with adobe flash or flex) file from [URL]..and installed on my android device. When i run that application only blank screen is appearing, but in video they shown, it is working. Why it is happening like this?? Is any problem with my tablet ?? or application ?? or adobe AIR not installed properly on device ?? Like this i am getting too many doubts.

View 1 Replies

Android :: Eclipse Can't Locate Android.webkit.WebSettings.PluginState?

Dec 12, 2011

I am trying to load a flash in a webview using the codes below

mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
mWebView.loadUrl("http://www.adobe.com/software/flash/about/");

but when I import android.webkit.WebSettings.PluginState; eclipse return an error, asking me to search repositories to find it , the minSDK of my app is 7, any ideas?

View 1 Replies

Flash :: Android - Playing SWF Files Locally From Android Webview

Feb 21, 2012

What is the right way to view .Swf files that plays .Flv videos in Android? The code that I am using right now to enable Flash support in web view is

[Code]....

For the HTML file, I'm using swfObject. The problem is that I can open up the SWF file just fine from third party apps like SWF Player from the market. In addition, I can load up the HTML page from the browser by calling it directly through file:///. However, when I load it up using my webview, I'm stuck with a blank screen.

View 1 Replies

ActionScript 3.0 :: Handle Back, Menu And Home Button On Android?

Aug 15, 2011

I'm developing an Adobe Air 2.6 app for android tablets (using ActionScript 3.0 and Flash Builder 4.5).I want to know how can I handle user back key press.

View 1 Replies

Android :: Install Adobe Flash On The Android Emulator?

Sep 14, 2010

I want to use Adobe Flash in the development of Android applications. But how do I install flash on the emulator so that I can test my software with flash?

View 5 Replies

Android :: Away3DLite On Android Objects Doesn't Appear On The Screen?

Mar 16, 2011

I have implemented an Augmented Reality application on Adobe Air for Android. When I publish my app on the android mobile phone (Nexus One) the 3D models that I have created don't appear on the screen.On flash CS5 it is working fine.I have used Away3DLite engine and I have imported a 3D collada object.I have also tried to publish some projects that I found online and I checked if the the 3D model appears on the screen but it doesn't show it either. how the 3D Models that I have imported in my project using Away3DLite can be visible when I publish the application on the android phone. Some extra stuff be usefull: I'm using GPU rendering.A also using a combination of the following softwares in order to create my AR application:

FLARToolkit
FLARManager
Away3DLite

I have created one 3D Model on 3DS MAX and another one on Maya 2010.

View 1 Replies

Android :: Choosing Flash / OpenGL / Other Animation For An Android App?

Jun 1, 2011

I need to add some animation to the UI of my application. Something similar to the Talking Tom application that is all the rage these days. I am a complete noob to animation, so had the following questions to zero in on a particular platform before I began with any development.

Out of Flash/Rendered Images/OpenGL which one would be the fastest to implement (assuming that I have a graphics designer to do the drawing)? If I was to go with flash, would I still be able to interact with the application or will it be more of a one-way play-and-stop kind of animation? I have looked over a lot of questions on SO about this issue and have not been able to make up my mind.

View 2 Replies

Android :: Android, Hook Mount As Flash Drive?

Nov 12, 2011

There are way for:On USB connect to PC (or other flash drive reader) - hook process and allow access only specified files and folder on android (custom store)?

View 1 Replies

Android :: Recording Audio With Adobe Flex On Android And IOS

Dec 1, 2011

is it possible to record Audio on iOS and Android with Adobe Flex Mobile? I can't find anything about that feature on Adobe's website.

View 1 Replies

Android :: Flex - App Requires Android.permission.BROADCAST_STICKY?

Jan 26, 2012

I've recompiled my app with Flex 4.6 / AIR 3.1 and now when I upload to the Android market it says my app is using a "android.permission.BROADCAST_STICKY" permission. In it's simplest terms what is it and can or should I turn it off (it's not in the app descriptor file)?

BTW I used captive runtime for the first time in this upload. Would that have anything to do with it?

View 1 Replies

Android :: Android - Flex Mobile Project Option?

Mar 12, 2012

I have a problem with Flash builder, I can't find the "Flex mobile project option in the list" How can I install it?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved