How to integrate AIR with Windows superbar? - actionscript-3

I'm making a sort of batch processing application with Flex and AIR and I want to illustrate the progress of the batch. I'm using mx:ProgressBar, but this is not enough for me, I want to see the progress in the Windows superbar, pretty much similar to when I'm copying files.
The only thing I found is this native extension, but i don't want to use native extensions.
Does AIR provide any API for this?

Since you're trying to access native functionality, you will have to use native extensions. There's no way around it. commented by RIAStar.

Related

Confusion regarding PhoneGap/Cordova

I have a webapp developed (game), based on HTML5 + CreateJS, but since Android lacks of standards, I've run into unsolvable issues for my webapp. That's why im recurring to PhoneGap.
Yet my confusion lies in the fact that I need to make this game into a phonegap app that runs on Android/iOS, using for each platform native specific stuff.
So, should I build 2 apps (one for each platform), all over again, or use the one I have and try to deploy it into different devices using phonegap?
The truth is I don't know how to approach this problem... can anyone help?
Best Regards.
Yes, you can use Cordova (PhoneGap) to create a cross platform mobile app. Basically, Cordova (PhoneGap is Adobe's version of Cordova) is an open source project that provides JavaScript API's for accessing native device functionality (like the Accelerometer or Camera.) Cordova also lets you package your app in the native application shell, so you put your app on the app store. Please see my other answer here about Cordova and hybrid apps: Beginning with Apache Cordova
If the game runs completely in HTML5, I think it would be easiest to just use that one codebase and integrate it with Cordova and then deploy to the various platforms - why rewrite the app twice if you don't need to?
However, if you are using native device functionality, you may need to develop your own Cordova/Phonegap plugins for use. This way, you can call regular Android/iOS code (Java or Objective-C code) that you write from your web app code with JavaScript. This might be more work, especially if you have never written in these languages.
Personally, since you already have a working HTML5 app, I'd just try to get it working with Cordova and see how it performs. If you really need some native specific stuff, then I'd try creating that "stuff" as a plugin. Rebuilding the app twice, once for Android and once for iOS seems like a pretty big waste of time to me.
The answer here is either yes or no.
Yes if you want to use some specific feature of the native code. For instance, iOS's default objects is beautiful itself, you can easily drag and drop it to build your application. However, it takes lots of time to rebuild for another platform. Specially, if you intend to create app/game for multiple platforms, it would be a nightmare.
HTML5 is much faster for you to approach several platforms. However, you can't get the best result on all platforms and all devices. I mean, it is really difficult to bring the max performance of the app on all devices. For this solution, I suggest HTML5 with some libraries such as LimeJS, Crafty, Impact, etc. or some tools such as Construct 2, etc. I used to use HTML5 with all those libraries but found out that Construct 2 is much better.
Instead of using phonegap, I recommend cocoonjs. Specially if your targets are iOS and Android platforms.
Hope that help.
Yeah, even the simplest game such as bubble buster would be difficult to make cross platform with different version of android webview and you need cross platform? I would suggest looking into something like Unity3D.

TideSDK and dependency on SDK

I'm very very new to HTML5 programming, so forgive me if I ask a strange question. I'm looking for a good tool to write apps the can be run on iPhone, Android and the most known webbrowsers on a desktop. I came across TideSDK and I was a bit confused by the fact that it has SDK in the title. Does this mean that the SDK is part of anything I will create with it?
Do I have to distribute the SDK along with the App I create and wouldn't that be a problem when wanting to freely distribute my application?
Regards
Gabrie
Well there are two ways to build the application
1) with package.
With package works as stand alone application without any dependencies or anything other things installed.
2) without package.
The think you were saying is right. They need to have modules to be installed.

Embed GTK look and feel in runnable jar

I have a little problem. I made an application which has to use the GTK Look and Feel. But the user will be able to launch the application from windows OS where this LaF doesn't exist...
Can anyone tell me whether it's possible to embed GTK LaF in my runnable jar and load it at runtime?
Thanks a lot!
Regards,
Paranoia25
You won't be able to properly run GTK look and feel on other OS (even if you succeed at extracting it from your OS standard java libraries) due to some native features usage. That is true for all native LaF's - windows/macos/GTK and some others.
I would suggest you to look into some cross-platform LaFs for Swing and use them instead of native one if you are going to create a good-looking cross-platform application based on Swing.

mobile development using flex sdk only?

I have been trying to figure out whether it is possible to use only flex sdk for mobile development.
Do I really have to purchase and use Flex Builder? are there free tools that would allow me to package my application for, say, iOS or Android?
In the past I have developed several SWF applications using flex sdk and emacs only. Can I do the same for mobile platforms?
Appreciate any help.
FlashDevelop is the most popular, efficient and simplest free alternative to FlashBuilder. I develop using both of them (depending on which team I work with) and I prefer FD by far.
You can use the AIR SDK and its associated command line tools without using Flash Builder (although there are several steps involved in producing the mobile applications). You can get the AIR 3 SDK here:
http://www.adobe.com/special/products/air/sdk/
Yes, you should be able to do that. FlashBuilder is only a convenience IDE for development. As long as you have the (freely available) SDK, you can use any editor to write your code and then compile against the SDK.
All you need to ensure is that unlike a standard flex app, you would need the additional necessary mobile device files. You can check this out for reference (ignoring the FlashBuilder part) - http://www.adobe.com/devnet/flash-builder/articles/hello-world.html

What's the alternative for hta (HTML apps)?

I have to convert a HTML application (.hta file) so that it can be executed on Linux and MAC also.
What could be the alternate ways of doing it? Should I convert to an AJAX app?
Any suggestions? OR Has anyone gone through this before?
Reagards,
/Syed
Though you have not provide the nature of application. I mean what you application does.
What I get from question is since you are using HTA application that means you application requires system level access. Now since Linux and windows are completely different platforms. It is not possible to complete port one app from one platform to another.
If you can work at the plugin level like development of flash-plugin or you can use the Adobe AIR to build your application.
I mean to say don't use Microsoft native code in you application.