I'm trying to turn a website of mine into an executable for Windows with Adobe Air.
Everything seems to be in order, but I couldn't quite figure out how to save a file from a download link.
I saw this answer that is suggesting that this is not supported by air, but it is possible to download links via an installed browser (IE for example?)
I also tried to search the official documation and found that there are loading external data possibilites but as I didn't see a way to save the incoming result locally, i couldn't get that to work.
1) How can I accomplish this? Are there working code examples available anywhere?
2) How can I make files download on a web browser from an AIR app?
3) What other options do I have?
Thanks a lot.
I couldn't get a download to work with the HTMLLoader class too.
The only working solution might be to start the download with a browser.
var url:String = "site.com/download.zip";
var request:URLRequest=new URLRequest(url);
navigateToURL(request, '_blank');
Related
I am using the PSPDFKit Module (v2.8) for Titanium Mobile (3.0.2GA) to both display cloud based and local PDF files within my App. The module works a treat (great job by the developer), however I've run into a problem.
Some of the PDF files have links to external websites within them, and when they are tapped I am getting a No system handler registered warning. I've checked the documentation and forums / google and cannot seem to located how these events should be handled.
Does anyone have any idea – any help would be appreciated!
Now external links are supported, so this might be a bug. In older releases there was an issue where URLs like "Http" or "hTTp" (note the uppercase) weren't properly detected. That's all fixed in the later releases (2.12 and up). Please update and let me know if this is fixed or if you're still seeing problems. Thanks!
I've seen a ton of games and what not opening their applications using links like "game://15.64.15.64:25876" or something.
I want to be able to launch my game's .exe from my website for users who installed it, and for it to work on any browser; At the same time I want to be able to pass a parameter (just 1).
What registry values would need to be added/modified for this to work for all browsers? If there's extra steps to setting it up in all browsers, can you explain these steps? Other questions I've found didn't quite help or worked only in IE. I require Firefox, Chrome, and IE at the least.
A similar question was asked here:
How do I make the website execute links?
You would end up with a structure like this in your registry:
HKEY_CLASSES_ROOT
game
(Default) = "URL:Game Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "game.exe,1"
shell
open
command
(Default) = "C:\Games\YourGame\game.exe" "%1"
See this article on MSDN for details:
Registering an Application to a URI Scheme
As mentioned by OP, the above approach only works in IE. Here are some thoughts on how to make it work in other browsers:
Chrome: Is it possible to open custom URL scheme with Google Chrome?
Firefox: Writing a Firefox Protocol Handler
One way I can think is download a file from browser ( gamesession.gme or your extension)
and set your game as the default application for that extension.
I am looking for a simple desktop application shell to display an HTML and Javascript application. The web code will be bundled with the app and the app won't need network access. Basically all I need is a window with a webkit view in it I can point to a file on the user's computer.
I thought this would be simple, but I can't find a quick solution to it. What I have looked at so far:
Adobe Air - Fails due to some crazy security choices that break my web framework.
Titanium Desktop - Fails due to some strange page loading sequences that result in dom weirdness.
Chromeless - Looks perfect but discontinued and their download code no longer works.
PhoneGap - No desktop component.
XULRunner - Looks very complex for my needs.
Various others - not cross-platform (I need Windows and Mac), discontinued.
All I want is a simple shell around to display my HTML and run my JS. Please tell me my only solution isn't to use the WebKit view in something like Qt.
Thank you!
See this: http://code.google.com/p/chromiumembedded/
There are also bindings for using this from other languages like Python.
AppJS have served me well in creating desktop shells for html5 apps. I think you should give it a try. It's quite easy to tinker with.
I have a website that would ideally be accessed by users who have downloaded and installed it as "software"... I know i can create an "Application Shortcut" in Google Chrome to allow me to access my web-app in a window that does not resemble a web-browser (i love this by the way and it would work perfectly if it did not require a full install of Chrome). The problem is that i am not sure of a way to re-distribute GoogleChrome with a pre-configured application shortcut like this. I have also read a bit about Mozilla Prism which seems similar. After reading over some options, it looks like AdobeAIR is my best bet. I have not yet worked with it, but it looks like I can create a downloadable executable that will contain a web-based interface. This seems ideal, but all the documentation i have read thus far seems to make it sound like all the resources need to be locally included within the distribution. Can i just create an "empty" AdobeAIR frame that contains my live (server) website? Having never worked with AIR, is this reasonably easy to do (just a matter of setting up an iframe or something)? I do not want any content stored locally on teh user's computer, as it is a constantly changing data set.
AIR has badge installation option, and you can author content in js for it. There is also full-featured browser control in AIR (webkit-based), so it seems AIR has everything you need.
I wanted to let users browse my site as a desktop application,
but didn't have the time to write an application from scratch.
SO tried following trick.
Created a simple Adobe AIR application with a single page.
This page redirects to my website and hence loads the website in the AIR window.
Everything is working fine except that the download links are not working. The download doesn't start. Nothing happens. What is the solution here?
Any help is appreciated.
Well... Adobe AIR doesn't support downloading from a link.
But it does provide you the option to open a link in your default browser. I am using this now.