Access You local Scanner in Air Application
is it possible to access your local scanner and scan a document using air application?
You'll probably need to use NativeProcess to interact with the driver.
Similar Messages
-
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
Accessing AIRAliases.js in my air application
I have my air.htl as:
<html>
<head>
<title>Dierbergs Web Applications</title>
<script language="javascript" type="text/javascript"
src="AIRAliases.js"></script>
<script language="javascript">
function init() {
window.nativeWindow.addEventListener(air.Event.CLOSING,
onClosingEvent);
window.nativeWindow.maximize();
function onClosingEvent(event) {
if (!confirm("Exit Dierbergs Web Applications? Any unsaved
changes will be lost."))
event.preventDefault();
</script>
</head>
<body onload="init()">
<!-- Load into a frame to preserve the javascript in this
file. -->
<frameset rows="100%">
<frame src="
http://hq1svrdev001/zkintranet/index.zul">
</frameset>
</body>
</html>
And in my application I want to use the below commands:
var urlReq = new air.URLRequest(url);
air.navigateToURL(urlReq);
for eg my print.zul is :
<zk>
<window id="winBenryPrint"
title="Print"
sizable="false"
closable="true"
mode="overlapped"
border="normal"
style="overflow:hidden;"
top="5px"
left="10px"
width="325px"
height="175px"
onClose="contractEditor.btnPrnClose()">
<vbox width="100%" height="100%" align="center">
<vbox>
<label value="Select Report:"/>
<hbox>
<button id="btnPrnPrint" label="Print!" width="75px"
action="onclick:oncall()"/>
</hbox>
<textbox id="txtPrnDescription" width="275px"
rows="5"/>
</vbox>
</vbox>
<html><![CDATA[
<script type="text/javascript">
function oncall(){
var url = "
http://elsa.berkeley.edu/";
var urlReq = new air.URLRequest(url);
air.navigateToURL(urlReq);
</script>
]]></html>
</window>
</zk>
So my question is as AirAlliases.js is on my application
level ie: After running an app this is the structure:
--Zkintranet.exe
--AIRAliases.js
--zkinranet.html
So what should be done so that in the <frame src="
http://hq1svrdev001/zkintranet/print.zul">
page so that I can access the shortcuts... I saw the
http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f08. html
which specifies for iframe but got confused as to how it would
apply to my application.. So please if step by step is shown it
would help...Here's an example of using the sandbox bridge in an HTML
application:
http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html
In that example, content in one frame is loaded into a remote
sandbox (the "
http://localhost" sandbox). In
this case, the content is loaded from a local file (in the AIR
application directory) and mapped to the remote sanbox using the
sandboxRoot attribute of the iframe.
However, it sounds like you want to expose AIR functionality
to content loaded from a remote HTTP server. To do this you use the
AIR sandbox bridge. In your main application HTML file
(zkinranet.html, I think), do a couple of things:
1. Load the remote content via an iframe (or a frame). Give
that iframe/frame an ID (such as id="remoteContent").
2. In the JavaScript of your main application file, add
functions to the sandbox bridge, as in:
var Exposed = {};
Exposed.trace = function(str) {
air.trace(str);
document.getElementById('remoteContent').contentWindow.parentSandboxBridge
= Exposed;
Now JavaScript in your remote content can call the trace()
function, which calls the bridged AIR functionality, defined in
step 2.
It is a bit complicated, yes. But for security purposes,
remotely loaded content must not have direct access to AIR APIs
without the host application explicitly granting permission via the
sandbox bridge. -
System Locale Information in AIR application
Hello,
I am building a Adobe AIR application which will have UI in different languages. To change the language in the UI we are setting resourceManager.localeChain property to the locale.
How can I get the system locale information at runtime so that the language can be set at runtime.
I am using Flex SDK 4.0.
Regards,
KarthikIt looks like if you do
var defaultLocaleID = new LocaleID(LocaleID.DEFAULT)
then you can get the language with defaultLocaleID.getLanguage() and the region with defaultLocaleID.getRegion(). But it doesn't give you a list of preferred locales.
Gordon Smith
Adobe Flex SDK Team -
Can you activate a Adobe AIR application?
I am building an application which would be good if a user
could 'activate' it over the internet (similar to how you have to
activate Adobe products before using them). Is this possible? If
so, how would I go about doing this?Hi,
There's no built-in way to do this. You'd have to write it.
(Also, AIR does not let you generate a machine specific UID without
which uniquely identifying the machine that the application is
installed on may be hard). -
Not able to make an air application in dreamweaver
Hi,
I have recently downloaded the air extension for dreamweaver
and have installed the runtime also. Whenever I try to make an
application.xml file, it throws up a dialog box stating that
"already an air application is running or you are previewing an
application. Close the application."
What am I supposed to do?
Any help will be appreciated.
GauravHi Gaurav -
Sorry for the delayed response; I just noticed this post.
Can you tell me a bit more?
1) Is this still happening?
2) What version of the extension are you running?
3) What are the exact steps that lead to this error dialog?
(What do
mean by "making an application.xml file" --- are you just
opening the
AIR Application Settings dialog, entering some details, and
then hitting
the Save button?)
It looks like the error message is actually misleading, but
I'm trying
to figure out what the real problem is.
- Vic -
URL for Redirecting to a Desktop AIR Application
Hi,
I'm developing a Flex Project that runs on ADOBE AIR. This
project contains two Flex desktop applications that runs in ADOBE
AIR.Now i need to redirect to one Flex desktop application from
another Flex desktop application.Can anyone please tell me how the
URL should look like in the new UrlRequest( ). Thanks in advance
for any help....................You can launch an AIR application from the browser if a few
requirements are met.
*Use must have the application already installed.
*The application must have "allowBrowserInvocation" set to
true in the application descriptor.
*Must have AIR installed
*Application must be launched by some sort of user
interaction, ie, a mouse click (can't be launch
automatically) -
Building AIR Applications with the NetBeans IDE
Hello Everyone,
Here's a link to screencast showing you how to Build AIR
Applications with the NetBeans IDE.
http://xwisdomhtml.com/netbeans-and-air.htmlNeat!
-
I start the computer the screen has blue vertical stripes and says that the Adobe Air application can not be found. Some of my programs don't run and say:
You: Error access violation at 0x0055F525. I reinstalled Adobe Air. No change. I went to the Adobe webside and they said to repair it with a program. I bought RegCure. Didn't change anything. What to do?Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
This happens the same whenever I try to install.
To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
My plugin is still showing as out of date.
Is there anything you could suggest. Thanks for your time. -
i accidentally deleted some drivers from my macbook air and now i can not access app store and system preferences as it says the following message (You can't open the application System Preferences because it may be damaged or incomplete)
Repair the Hard Drive and Permissions - Lion/Mountain Lion
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu. -
I have a tesco router and an external hard drive attached to it as a network drive (shared) for my macbook and MB-Air. Have no problems with my MB accessing it, but with MB-AIR it says - 'the version of the server you are trying to connect to is not supported. pls contact your system administrator to resolve the problem'. MB-Air uses maverick downloaded yesterday - upgrade from mountain lion. MB uses snow leopard still, as i am quite used to it and am thinking of upgrade if mavericks work fine on air. Also have parallel on snow leopard but it is no longer supported according to mac website - if i upgrade am i going to lose my parallel and will have to buy a new one!!!
Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think? -
How can you load local server urls on application start?
Background:
I've been searching for close to two days for an answer to this question, it's full of gotchas and I can't quite get it figured out.
I have an application which contains several web services. These services load up listeners when the services are invoked which makes them available for input. The user has the option of disabling automatic load of these services and invoking them manually by typing in the local url and starting the app. The can allow the autoload which uses a the or allowing the auto load to start. Currently the local url is hardcoded in a property file and this is how the services knows the local endpoint to envoke when it autostarts.
<servlet id="AutoStart_01">
<servlet-name>autoStart</servlet-name>
<servlet-class>com.loadmy.StartupClass.Here</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
This works all fine and well until it's deployed onto a machine that runs a local weblogic cluster that has more than one jvm (and multiple ports) loading the application up.
Problem
The question is, how can you get the applicaton to recoginize the local url for the jvm that is running which can be on different ports? Here's what I've tried
A - Using Inet.Address - This doesn't let you know what port your application is on
B - Using the load servlet on start up ( Only the init() function is called and the request object hasn't been created and the request object is what contains ther protocol, server and port information)
C - Loading a jsp page (READ... purposefully loading a jsp page) on application start. The thought here is that this contains a request object, but unfortunately on this doesn't work in my servlet container (currently tomcat 6 but the application is for a web logic machine)
D - I thought about possibly using System.properties() but no luck there
I'm at witts end on this one and I know there is something that can recoginze the local servlet container and extract the url and port from it.
Any suggestions would be great.
Flabergasted [sic]Hi,
I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
Web Dynpro ABAP
Dont have much idea if somethig exists in portal for this.
Regards,
Runal -
Access to local file system for desktop application
As a .NET and VBA developer/user, I have found Flash to be a
great RAD development solution for certain desktop app. projects...
if only actionscript could access the local file system and talk to
local (preferably non-XML) data-sources!
I'm not familiar with the latest version of Flash CS3 &
Actionscript 3.0
Is there any reliable way Flash CS3 can be programmed to access
the user's local file system - that is, as a stand-alone desktop
application????Thanks for the response.
I hope Adobe catches a clue ... with Microsoft's Windows
Presentation Framework and the new ability of easily implementing
Flash-like animation on .NET apps, Adobe is going to have to get
busy. Stand-alone desktop apps still rule (as opposed to web-based)
in the business world, and they are driven by data. If Flash was
capable of easily talking to local data-sources (Access, Excel,
Text etc.), it could significantly increase its adoption as a
widely used business RAD tool. The Flash IDE is great and rivals
any Microsoft RAD IDE + users love the slick Flash GUIs. -
Can you call external exe file from Flex Air Application like notepad.exe
Im trying to make my Air Application open an External exe file anyone know if this can be done?
Hi,
If you want to share code between a flex app and AIR, you
could isolate the common bits as a swc file and link to the swc
from both the flex and air project.
Also, you could have the flex mxml file and air mxml file
load the same module (which has the same stuff as your original
flex application) using ModuleLoader.
Or, you could even load the swf of your flex application
using SWFLoader in your air mxml file.
Basically, check out creating flex libraries, modules and
runtime loading of swfs. -
I face a problem with my macbook air or i think it's from the lion OS cause i didn't happen with snow leopard OS the massage says ( you can't open the application ....... because powerPC applications are no longer supported). any advice ??
Mac OS X Lion has dropped support for Rosetta, the feature that allowed you to run PowerPC apps on previous OS X systems. Check if you can find a newer version of the app you are trying to run that supports Intel processors.
What application are you trying to run? Maybe I can help you find a version that runs on Lion.
Maybe you are looking for
-
any suggestions....
-
Lightroom and Sony NEX5 raw files. How can I make them work together?
Hi All Just got a Sony NEX5. My version of Lightroom 2 doesn't support its RAW files. Can someone let me know what to download or do I need to buy Lightroom 3 upgrade? Thanks
-
Just wonder if someone can give me the recommendations on setting up dns. I'm somewhat familiar with it, however, i'm running into problems. The problem I'm having is that clients computers are accessing my Server's through the Public address not the
-
IPhoto '08 won't let me export photos with *one person* in the frame
After having had no trouble with iPhoto since I got this iMac almost 3 years ago, I opened it this evening to copy a holiday picture. When I try to "Export" a picture to a file location, it only seems to work if the picture has MORE THAN ONE figure i
-
I have experienced 11 unscheduled re-boots since purchasing my iMac in February. Is this normal for OS X computers? Coming from a Windows world I have not had a BSOD or unscheduled re-boot in years on either Win 7 or 8. Is this covered under AppleCar