AS3 Starling stagewebview cant access content - actionscript-3

I have setup a starling project and added stagewebview to embed Google maps. I have tested the project using Facebook and it seems to load http://facebook.com correctly. The issue I am having is I am unable to access the page (click links, log in etc).
I don't know if I understand the use of stagewebview or if something else is stopping me from accessing the content. My understanding is you can load an external page into the project/device.
The project will be used in a mobile app that uses maps. If someone knows of a better way to using Google maps (or any other mapping software) in a mobile (iOS and Android) I am all ears.
Thanks

Loading Google maps into a stageWebView certainly is possible. Although I used StageWebViewBridge as I needed communication both ways between ActionScript and JavaScript.
StageWebViewBridge loading and communicating with online page
Be aware though that the stageWebView won't be on the Starling (Stage3D) display list. It will need to sit above on the Flash NativeStage.
For mobile you could look into using an ANE to access mapping APIs.
http://sleepydesign.blogspot.co.uk/2012/07/ane-free-air-native-extensions.html
http://code.google.com/p/air-maps-ane/
Or Distriqt sell a range of ANE's, mapping included.
http://labs.distriqt.com/native-extensions

Related

In flutter, Is it possible to use Android or iOS widget, just like react native

As we know, flutter can call Android or iOS api by plugin, I had written some widgets, Android and iOS native widgets, can I use those widgets in flutter, just like in react native. Thanks.
The simple answer is NO
Flutter completely bypasses the iOS and Android OEM control pipeline and draws the entire screen as a Skia canvas, with its own dart UI widgets.
There is no mechanism to mix the flutter canvas with OEM controls
If you are looking for App Widgets that are shown on android desktop, then it is possible to implement such Widgets with native code and use it with flutter.
I'll not completely deny that it is not possible to bridge between native widget and flutter's dart code, but I can say the possibility is yet to be discovered.
Here is the simple App Widget created natively and used with flutter.
If you wanted to look into the source code, and build app from source. Here it is.
Hope that helped!
Yes, you can.
With https://api.flutter.dev/flutter/widgets/AndroidView-class.html (Android) and https://api.flutter.dev/flutter/widgets/UiKitView-class.html (iOS)
Google is using this two Widgets to render WebViews and Maps on those platforms.
See: https://pub.dev/packages/webview_flutter and https://pub.dev/packages/google_maps_flutter
It is definitely not easy to use, but it is possible.

QR-Scanning built with HTML5 & javascript, Turned into phone app with phonegap build?

Seen many posts on this around the web but no nearer finding out if it's possible to do...
Have seen http://www.webqr.com/ recommended but I tried uploading the .zip from github (https://github.com/LazarSoft/jsqrcode) for this to phonegap and the compiled app fails on android with "Sorry, native web camera streaming (getusermedia) is not supported by this browser"
Well, I'm not trying to use the webcam really, I want to access the camera on the phone/ipad if possible.
Is it actually possible to do this from HTML5 or does it require a proper native app? (so xcode for the ipad app I have in mind)
I've also seen some plugins for "phonegap" (as opposed to phonegap build) which would also require a mac/xcode so that's not the angle I want to approach it from as I'm trying to do this all from windows if possible.
This may help. it a js plugin. search the phonegap plugin page for 'scanners'
https://build.phonegap.com/plugins/2421
https://github.com/wildabeast/BarcodeScanner/tree/c74e37a

html code to make Blackberry sing ring or vibrate

I know that Blackberry has added new API's on OS5-6 that allow HTML5 code to access native features & widgets. Is it possible to make blackberry beep, ring, vibrate or sing (play mp3) to alert user of an event through an HTML page.
There is a java class called net.rim.device.api.system.Alert that might be accessible, but I don't know how to reach it with html/js.
Are you creating an app with embedded browser wrapped in native shell? Then you can access almost all native features (the one which are exposed) using javascript extensions.
If it's purely a web app or webworks application, you should be able to find all native features that can be accessed from the browser at
BlackBerry® WebWorks™ API Reference
You still will be using Javascript Extensions.

Analytics for pure AS3 Adobe AIR for mobile project?

I've been digging around for days looking for a way to do analytic tracking in a pure AS3 Adobe AIR for mobile project. Does anyone have a solution?
I've tried looking at gaforflash http://code.google.com/p/gaforflash/
but it looks like AIR isn't supported:
http://code.google.com/p/gaforflash/wiki/Roadmap (see comments)
I've tried looking at http://www.appanalyticshq.com/
But this looks to be Flex dependent.
http://getsatisfaction.com/app_analytics/topics/where_can_i_get_a_flash_pro_swc
I also looked at straight up Google Analytics http://code.google.com/apis/analytics/docs/tracking/home.html
But it says on this page: http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html
"Note: Currently, Flash tracking is available for any Flash content embedded in a web page. Tracking of data sent from Adobe Air, Shockwave, or via the Flash IDE (e.g. using Test Movie) is not supported at this time."
Anything else out there? Has anyone got this to work?
Thank Jevgenij and pkyeck.
I was able to get GA working with my project and I verified it is working on both iphones and on Android.
See this example: http://code.google.com/p/gaforflash/
you can get free google analytics ane from http://www.devactionscript.com/. This one is based on the latest Google Analytics SDK v3
you can consider gaforflash obsolete and legacy
there is a new library
Google Universal Analytics for ActionScript 3.0
as3-universal-analytics v0.8
https://github.com/zwetan/as3-universal-analytics/releases/tag/0.8
full support for: Flash Player, AIR, Redtamarin
it just works everywhere or almost everywhere :)
for example
var config:Configuration = new Configuration();
config.forcePOST = true;
var tracker:WebTracker = new WebTracker( "UA-12345-67", config );
tracker.pageview( "/hello/world", "Hello World" );

Does Sencha Touch, or any other HTML5 javascript framework, allow access to a mobile phone's media library for uploading video to a server?

I am looking at building an app that can take a video from a person's media library on their mobile phone and upload it to my servers. As far as I can tell, I'd have to build an application for each type of mobile device I want to include. But if new HTML5 protocols let me upload video files through the browser (and can handle the file size), this would be a preferred method.
Web apps don't have access to the media library on a phone. Use phonegap to get access to the users photos - http://docs.phonegap.com/phonegap_media_capture_capture.md.html
Considering you are using iOS and running the WebApp in iOS' MobileSafari, you have NO access to any system related components, libraries or anything (so no Photos, Videos etc).
And Safari itself does not support file upload. You can add the tag but it will always remain as if had disabled="disabled" attribute.
The only way to access these components is by using a Native code or, like Joel said, PhoneGap since it gives the html pages, access to Native API's through it's JS Framework.
For Android, i have no idea but probably not.