How can access iPhone camera with AS3 - actionscript-3

I'm a newbie with flash AS3. And I'd like to create app with air for ios.
how can I access iPhone camera with air and use library ( ASFEAT and Away3D ) for create AR app. I want to see example code for use, please

This is the standard way to get it
Is there any other alternate ways to access camera?
Also read about native api provided by ios to air.

Related

How to prompt user to turn on Location Services using adobe air

I am developing an app that uses GPS, so typically the app must prompt the user to turn Gps on if it is muted.
So is there a way to open the Location Services menu from inside my app using adobe air?
I would imagine an ANE would be required for this.
Perhaps contact Distriqt to see if they would consider adding the functionality to one of their existing ANE's ?
http://airnativeextensions.com/extension/com.distriqt.NetworkInfo

How to obtain Android Device key in AIR with Action Script 3?

I am trying to make a push notification in my game using GCM through AWS.
I have bought this ANE: http://myappsnippet.com/gcm/comment-page-2/
But I cannot get the token in my device.
Can somebody help?
Adobe AIR does not have a built-in function to get any device id, because of various platforms. You should use some kind of extension, like Distriqt's Application ANE.

Adobe Air listening to uninstaling event

I have an Adobe Air Android application. I want to know when the app is going to be removed and to do something basic if I catch this event.
Is this possible on adobe air android? thank you!
No, there is no uninstall event in Adobe Air.
A solution could be to do whatever you want to accomplish every time the applications exits.
// make a reference to the NA singleton instance
var nativeApplication = NativeApplication.nativeApplication;
//add an event listener
nativeApplication.addEventListener(Event.EXITING,onExitHandler);
function onExitHandler(e){
//do something
}
Another possible solution could be to monitor some URL with a unique device identifier. For example http://www.domain.com/activity.php?deviceId=1234567890. You would not know how many apps are installed, but you'd have an idea of how much activity your app is having. I don't know if that would be legal though.
The device identifier can be obtained via a Native Extension such as this one. I'm using it on iOS successfully to identify unique devices.
As for URL monitoring you can use the URLMonitor class.
Finally, I'd like to point out that it is indeed possible to do what you are after using native Java code in Android. Theoretically it should be possible to mimic that functionality developing your own native extension (ANE). Here's an introduction on developing your ANE for Android.

build adobe air to use YouTube API v2.0

I'm trying to use YouTube API v2.0 to let users authenticate into their YouTube account and be able to upload videos from there... but I want to do this application in AS3 as an adobe air application.
I searched the api but I couldn't find any proof that I can do this with AS3? thought to drop a line here and ask if it's possible at all? specially being able to upload videos through the adobe air desktop app?
If possible, is there any link you could give me to get me started faster?
This appears to be a google code project written in as3 that supports uploading videos in desktop air apps (see the example AirYouTubeUploaderSampleApp).

LibSpotify and Windows Store App

I'd like to start work on a Windows Store App client for Spotify, using LibSpotify. However, it seems that I'm unable to use the libspotify dll from inside a Metro app, presumably because it uses parts of the win32 api that are off-limits to the Metro Sandbox.
Loading in my own simple test dll using LoadPackagedLibrary works ok, but loading in libspotify gives error 1114 - ERROR_DLL_INIT_FAILED.
Is there any hope for me?
Thanks
Tom
If you are trying to create a Metro-Style-App - you have no hope until Spotify releases an updated library or someone reverse engineers their library to make it work in WinRT.
If you want to create a Metro style app that is not WinRT - based - there are WPF libraries that let you theme your application to look Metro, but you won't be able to sell it in Windows Store unless you work for Spotify and get into a deal with Microsoft.
You can only use the WinRT library in Windows 8 Metro Apps, not Win32.