Can I override the HOME key in an application writen in AS3? - actionscript-3

Hi I'm doing a "kiosk" like aplication using AS3. I want to change the behavior for the Home key of the android phone. So that the public users can't acess the android operating system. So have seen that this question has already been asked a lot but haven't find a answer for it in AS3. This topic is very similiar to what i'm looking for
Android tablet doesn't fire KeyboardEvent.KEY_DOWN
But i really don't see an answer there that can solve my problem.
Most of the answers that i have seen are in Java.
I already had done it for the back button and it works perfectly.
So is there a way to do this in a AS3 application?
Thank you!

May be you can along these lines:
if (Capabilities.cpuArchitecture=="ARM") {
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KE Y_DOWN, handleKeys, false, 0, true);
}
You can check the details here: http://forums.adobe.com/message/4075374

Related

AIR popup window with virtual keyboard(as3.0)

This is about kiosk contents(Full-Screen).
I'm trying to input some texts in the 'AIR popup-window'(facebook login)
with virtual keyboard(as3.0).
I know the 'HTML loader class' can be a solution, But I think this is different case.
How can I make it? I really need your ideas!
Thank you for read this, and sorry my bad English.
With respect you should really do a thorough search on google or even stackoverflow, as this question has been posed already at least once. Anyway here is a question on the same issue some one answered here:
Flash APIs for Android Platform
Basically it involves a new method in InteractiveObjects that manually invokes the system soft keyboard. Pretty basic stuff. Hope it helps! :)

Adobe Flash Player Settings not clickable

When I display the flash player settings panel it dosen't response to any click.
Security.showSettings(SecurityPanel.CAMERA);
I really don't know what I cloud have messed up.
Reposting the answer from the comments here to get it off of the unanswered list. If the asker or the original answerer (Strille) wants to post their answer instead of accepting this one, that is fine with me. (I'm not expecting an accept or anything.)
This problem is a known bug on Mac that was fixed by updating Flash Player to the latest version.
[ANSWER CREDIT GOES TO STRILLE]

Augmented-reality for Flash as3

I am newbie augmented-reality in as3.I've worked as3 since about 2 years but I've never worked augmented-reality.I want to do like this swf:
http://cdn.eyewonder.com/100125/adWdrDemos/56254654/Game.swf
What is the best class or tuttorial that I will use for augmented-reality? I realy need to learn as soon as quickly augmented-reality.
Thanks for advice
i can't see where is the Augmented Reality in your SWF example. But maybe the FLAR Toolkit will help you. It's a AS3 version of ARToolkit. It works with many Flash 3D engines like Papervision, Away3D or Sandy. You will see some example on Google.
Find the official project page here : http://www.libspark.org/wiki/saqoosha/FLARToolKit/en
And a good tutorial here : http://www.marcpelland.com/2009/03/26/getting-started-with-augmented-reality-flartoolkit/
Good luck !

Trouble with FlashVars in AS3 + flixel

I'm building my first flixel app (a flash-based game engine) and I'm having trouble accessing the FlashVars from my html source. Flixel's root element is not derived from the top-level root, and I can't get a workaround in place. I've done some research and found a few promising solution here:
http://forums.flixel.org/index.php/topic,449.msg3101.html#msg3101
however none of these solutions have worked for me. I think the magicRoot implementation is the best offered there, but I still haven't been able to get it working properly. Any help would be appreciated!!
You can get a reference to the stage from within a Flixel game by using FlxG.stage.

adobe AIR native application menu question

HI, I', trying to add some menuItems to an AIR app application menu in the mac, I know that is possible to add to the standard one the application have instead of replace the whole menu, but I can't found any example on adding not replacing the whole the menu, can someone be kind on point me to an example of how to do that, thanks!!
Here's a post I found just doing a quick google search:
http://www.thanksmister.com/index.php/archive/air-adding-application-menu-bar-items/
I've created application menus for many applications, and it works just as described in this post (not written by me).