Needed: A BlazeDS/Remoting/AIR example app

As far as I can see there are no examples available that use BlazeDS remoting in AIR. I'm trying to implement this and am running into problems. A sample would help.
I suspect that my problems have to do with this note which I found at:
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=services_config_2.h tml
It says "If you use server tokens (for example, {server.name} and {server.port}) in a configuration file for an Adobe AIR application and you compile using that file, the application will not be able to connect to the server. You can avoid this issue, by configuring Channel objects in ActionScript rather in a configuration file; for more information, see Channel configuration."
I've tried to follow the instructions under "Channel configuration" but haven't succeeded yet.
Douglas

Hi Mete - Thanks for your response. I was aware of the problems with tokens and have made some progress. I've converted the testdrive-remoting example so that it works as an AIR app (and have blogged about it here: http://www.brightworks.com/flex_ability/?p=74). I suggest that Adobe include an example like this with BlazeDS.
I have now encountered another problem but I think I'll create a new thread for that...
Thanks,
Douglas

Similar Messages

  • Can't update Adobe AIR after Yosemite update and need it for a third-party app.

    I updated to Yosemite and had some issues. After receiving help from Apple, I could not open a third-party app; it said I needed to update Adobe AIR. When I tried to do that, I got the same message saying I needed to update AIR again. I tried uninstalling and installing AIR but without success. What steps do I need to take?

    I had a similar problem when trying to install Zinio.air. I have made it all work out. What i did was remove Adobe Air 15 entirely from the Utiliites and Library/ accounts and preferences. I then downloaded Adobe Air 13 and installed and then clicked on Zinio .air and it all installed ok. I also had to temporarily change security settings from Apple approved to Anywhere. All functioning now.

  • AIR iOS app as Remote controller

    Hi,
    Is it possible to build an AIR iOS app as a remote controller for an html based website?
    If it is what will be the direction to take?. I have been looking at the SocketServer API but is not clear to me that this is the answer.
    Any help or advise will be appreciated
    Thanks

    Solved!  ..."Full Screen Displays your application in fullscreen mode on the device. When this setting is enabled, the device’s status bar does not appear above your application. Your application fills the entire screen."

  • Need HTTPService and play video in flex 4.6 Air Mobile App

    We are porting a flex 3.2 app to mobile app. The 3.2 app uses mx.rpc.http.HTTPService to send XML requests for data and launch video web pages. Will a flex 4.6 Air Mobile app be able to do the same? If so, what replaces mx.rpc.http.HTTPService? I read that mx components will not work in Flex mobile apps.

    HI,
    Its working fine.And the mxml components which are displayobject should not be used in the mobile application except the chart.
    So nothing wrong with using "mx.rpc.http.HTTPService",you can also use  <s:HTTPService/>
    Also there is a nice way to see which components should be used or which not for the mobile application.
    Simply mouse over on the component when you have used it.You can see a message on that if that is not optimized for the mobile application like for the combobox you can see this message:-
    "Adobe discourages using ComboBox when targeting profiles: mobileDevice."
    While this is not the case with <s:HTTPService/>.
    with Regards,
    Shardul

  • Include Air ( desktop app ) inside Mobile app permited by Apple / Android?

    Include Air ( desktop app ) inside Mobile app permited by apple / android?
    This is my question....:
    I need a "viewer" app run in a desktop machine... via p2p... ( done and working )
    I will like to include it in my iOS / Android Release, an then by example move it to the documents folder.
    Run iTunes and then copy the file from the shared document folder.
    Is this permited by apple / android / adobe ?
    Thanks....

    just tracing some kind of tests I'm doing.
    A couple of hours ago I left working 2 instances of my Application, leaving alone this computer: one instance is the Mac desktop version and the other one is the Web version. In this case both versions were running on the same computer (an iMac with OS X Mavericks):
    1) the AIR/Mac version have been recompiled yesterday with the new AIR4(.0.0.1619 - AIR 3.8 is used to fall in a equivalent way - no changes)
    2) the Web version have been compiled targeting FP 11.8 and it is running on Chrome browser with PepperFlash NOT disabled (which reports version MAC 13.0.0.80, the latest)
    I left working both the Mac and the Web versions of the Application opened on the pc screen (= not minimized) but kept totally behind some Terminal/ssh windows (= not on OS focus and the system is not asked to update any screen area of the app for sure).
    I came back after about 2 hours and I got the browser version connected&running (but it is not a rule) and I also found the AIR-based Mac version disconnected (uau, usually I found the app disconnected but with the screen freezed at last user look ->) which rapidly reconnects upon my click on the Apple dock icon (bring to front).
    Why these different behaviours? I ask to myself.
    The two versions of the software are TOTALLY the SAME application: except for the first Flash file (a 24kb swf file for the Web version and a 170kb dmg file for the Mac version), basically a platform-dependent loader, both versions loads the same remote swf modules. Of course t is AIR (or my first Flash file?).
    I attach the source code of the Mac version of the [first file] AIR-based application at the following url:
    http://92.63.230.100/others/others/wtstarter_mac.as.txt
    _Adobe_, is it a bug? isn't it?
    mc

  • Link in Adobe AIR JavaScript app is incorrectly opening the app in the default browser

    I have a couple of links in my Adobe AIR JavaScript app that are part of the app's UI, which when clicked are causing the app to be loaded into a new tab in my default browser.
    This is only happening with two links (Save and Cancel on a form), and not all links in my UI.  The two links that are having the issue are defined in an external HTML file that I load a runtime and connect to the DOM.  The links that are defined in the main HTML file that is loaded when the app starts up do not have this problem.
    Here is how I am loading the template and plugging it into the DOM
    var win = document.createElement("div");
    var f = air.File.applicationDirectory.resolvePath("lib/partials/edit_form.html");
    var fs = new air.FileStream();
    fs.open(f, air.FileMode.READ);
    var content = fs.readUTFBytes(fs.bytesAvailable);
    fs.close();
    var template = new Template(content);
    win.innerHTML = template.evaluate(data);
    document.body.insertBefore(win, document.body.firstChild);
    The links themselves are coded like this:
    <a href="#" id="save_button" onclick="return false;"></a>
    <a href="#" id="cancel_button" onclick="return false;"></a>
    I am using the Prototype JS library to observe the 'click' event for each of these links like so:
    $('save_button').observe('click', onSave);
    $('save_button').observe('click', onCancel);
    This app shows content created by users, which can contain links to external web sites.  To get the external links to open in the browser (as opposed to inside my Adobe AIR window), I am doing the following in a script tag in the head of my main HTML file:
    window.htmlLoader.navigateInSystemBrowser = true
    I've found that if I set window.htmlLoader.navigateInSystemBrowser = false, then the issue with the Save and Cancel links described above goes away.  However, I need to have window.htmlLoader.navigateInSystemBrowser = true so that external links in the user content open up in the browser, not in Adobe AIR.
    Another piece of evidence is that the Save and Cancel links only incorrectly open a browser the first time you click on them after launching the app.  Subsequent clicks work fine and do not have the issue.
    Any ideas on why the links that are plugged into the DOM after app start up have this issue, and only the first time you click on them?

    Not sure where this comes from, but I suspect it has something to do with the security restrictions that AIR has in place, related to dynamic JS evaluation after the document is loaded.
    Make sure you read http://help.adobe.com/en_US/air/html/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html#WS 5b3ccc516d4fbf351e63e3d118666ade46-7ef8
    For example, I've spotted the two onclick="return false;" you have in your code. The evaluation of the onclick attribute after the page loaded event would fail in AIR.

  • What are the ways to integrate PayPal (or other monetizing service) into an Adobe AIR desktop app?

    Hey all
    I just finished publishing my AIR mobile app for iOS and Android, both featuring freemium style in-app purchasing/billing, for a single purpose only - opening the app to be full featured.
    Now the client wants a desktop version of the app. I need a way to monetize the same way: the user wants all the features - they click a button in the app, pay the 2 dollars, and now all the features are accessible.
    I think going out to PayPal, paying there and returning to the app would be best, but I cannot get the files I found here to work.
    Do you have any suggestions of a workflow with examples, or a service with AS3 support?
    thanx

    http://www.as3gamegears.com/monetization/as3-paypal-api/

  • Trying to get my air video app and my airport extreme router to work.

    Hi there. I am getting really frustrated and desperate. I just purchased the app "air video" on my iPad. Installed the software on my mac. Works awesome when I'm on MY WIRELESS NETWORK. I didn't think it would be an issue once I left the house and tried to go on someone else's network to connect, but it just won't work. It keeps giving me the error "host not reachable". I tried opening up the air video troubleshooting info and tried everything but nothing seems to work. I tried under the "remote" tab in the air video server preferences. I clicked both "enable access from Internet" and the "auto map port" options. In the box below I just see the word status and the spinning wheel along with "looking for UPnP or NAT-PMP compatible devices" but the wheel has been spinning for about 15 mins. It doesnt appear to be finding anything.
    I've also clicked off the "auto map port" to see if that would do anything. I got the pin and tried that. Still nothing. I tried to look for some information on port forwarding for my airport extreme but everything I'm googleing seems to be years out of date.
    I am currently on Mac snow leopard 10.6.3 I believe. Everything is latest version. Using comcast modem with apple airport extreme router. Latest version of Air video app and software. On iOS 4.3.1.
    Anyone that can try to help me out, I would be eternally grateful.
    Thank you so much
    Keith

    * need to edit to" trying to get my iPhone not iPhoto**"

  • How to use ScaleNine themes to skin an Adobe Air Mobile App

    Hi,
    I'm rather new to Adobe Air development But I really like it! Now that I've created my app I would like to skin it. I've found ScaleNine (http://www.scalenine.com/gallery/gallery-1.php) which has ready made cool skins for Flex and Air. I downloaded the samples and they compile and work beautifully. HOWEVER: I can't seem to be able to use them to skin my Air mobile app.
    Can anyone post an example ViewNavigatorApplication themed with one of the themes there? this one (http://www.scalenine.com/themes/blend/Blend.html) looks as though someone tailored it to my app :-)
    Thanks a lot!
    Avi

    I don't know how your application is structured, but if you can split sections off into separate SWFs(plain AS3 document) then you could host those section SWFs online and require the user to download them on first run.
    You could use the FileReference object to download the SWFs, save them to the File.applicationStorageDirectory, and then display/load them up with the Loader object when needed from the app storage directory. You would possibly need to check to see if the files are present at every boot of the app though as a user could "Clear Data" or "Clear Cache" of the app in the Settings of their device and one or both of those could/would delete the downloaded files.
    FileReference - Adobe ActionScript® 3 (AS3 ) API Reference

  • Air Installer app launches constantly

    Anytime I go to certain websites, the Air Installer apps launches and quits... on every page! Quite annoying and frankly this erratic behavior makes me think I need to get this AIR stuff off my computer!
    Example: http://www.tweetdeck.com/
    Clicking here or any link within the site causes the Installer app to launch and quit in the background (bounces on the dock). What's up with that?!?
    Anyone have any clues for me? I've upgraded to the latest version of AIR and it still does it.
    Convince me not to uninstall...
    Mac, G5 10.4.11

    Anytime I go to certain websites, the Air Installer apps launches and quits... on every page! Quite annoying and frankly this erratic behavior makes me think I need to get this AIR stuff off my computer!
    Example: http://www.tweetdeck.com/
    Clicking here or any link within the site causes the Installer app to launch and quit in the background (bounces on the dock). What's up with that?!?
    Anyone have any clues for me? I've upgraded to the latest version of AIR and it still does it.
    Convince me not to uninstall...
    Mac, G5 10.4.11

  • Adobe AIR Installer.app and Comcast ID

    Has anyone had trouble with installing the Adobe AIR Installer.app in order to have a comcast ID on your computer and TV?

    If you need it for the usage meter, instructions here  > http://usagemeterapp.comcast.net/air.html
    Repair permissions prior to installing Adobe Air.
    Launch Disk Utility located in HD > Applications > Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click: Repair Disk Permissions
    This process can take a few minutes.
    Quit Disk Utility when it's finished then try installing Adobe Air.
    FAQ's for >  Xfinity Usage Meter Application

  • How do I get Adobe Air Desktop App to notify user that a URL text file has been updated?

    How do I get an Adobe Air Desktop App to notify user that a URLRequest ".txt" file has been updated? via blinking system tray icon or something.
    New to Air and need someone to point me in the right direction. I have been searching web for hours and probably not asking the question right.
    I have a very simple Desktop App that just loads a text file from a web location into a dynamic text field at a set timer. it just repeats this action on the timer. right now every 5 minutes
    What would the actionscript be to tell the Air App to look at the date or time stamp of the ".txt" file and notify user if its new?
    Thanks

    Try to follow below steps
    Click on Finder and then hold Command + Shift + G keys on your keypad
    It will open Go to folder window, type  exactly ~/Library and click on Go
    Then open Application Support > Adobe folders
    Trash AAMUpdater and OOBE folders.
    Now click on finder and hold Command + Shift + G keys on your keypad.
    This time type /Library and click on Go.
    Make sure to remove ~ symbol.
    Then open Application Support > Adobe folders.
    Trash AAMUpdater, Adobe Application manager, OOBE folders.
    Now Click on Finder and then hold Command + Shift + U keys on your keypad.
    It will open utilities folder.
    Trash Adobe Creative Cloud and Adobe Application Manager folders
    Download and Run CC cleaner tool from below link
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems/_jcr_conte nt/main-pars/accordion_container_1/accordion-par/accordion-item-1/accordion-item-par/proc e dure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleanerTool.zip
    Accept the license agreement and click on Adobe Application Manager
    Then click on clean up selected
    Close the window
    Download and install Creative Cloud App from below link
    Free Creative Cloud | Download Adobe Creative Cloud free trial

  • Adobe AIR desktop app with an embedded runtime

    Hi,
    Does an Adobe AIR desktop app with an embedded runtime (standalone/portable)  that got published on Windows work on a Mac too?
    Thanks

    No, you need to compile a "bundle" with ADT on each platform. On Windows it creates a directory with an .exe and the AIR runtime. On OS X it creates a .app file.

  • File upload through BlazeDS remote object?

    Hi,
    After researching file upload options in flex, it seems like the only option is through HTTP service requests, such as:
    private var fileRef:FileReference;
    fileRef.upload(new URLRequest(FILE_UPLOAD_URL));
    Is there any way to use BlazeDS remote objects to upload a file from Flex interface? Perhaps passing in a FileReference object and marshalling it into an equivalent Java object?
    Thanks!

    I know there is a workaround like this. It uses a servlet to upload a file and returns a url. The uploaded file is either stored in session or server file system until the session expires. Use the PropertyProxy to register a custom class which contains this url and convert to java.io.File. It is the limitation of the player. It cannot read the local file system for security reason. There is a sample in blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/blazeds/qa/remotingService/Echo.java
    static
    PropertyProxyRegistry registry = PropertyProxyRegistry.getRegistry();
    PropertyProxy proxy = registry.getProxy(java.io.File.class);
    if (proxy == null)
    registry.register(java.io.File.class, new FileProxy());
    proxy = registry.getProxy(FileReference.class);
    if (proxy == null)
    registry.register(FileReference.class, new FileReferenceProxy());
    Hope it can help

  • HT201335 How do I get the air play app ?

    I contacted support on how to get the air play app, but was lead to the "remote app" that just allows the iPad to be used as a remote. I am looking for the mirroring  option .  Thanks

    It is not an app, if your ipad is 2 or 3 you have it, ipad one cannot mirror.  Hıt home button a couple of times and swlipe l to r twice and you should see the icon.

Maybe you are looking for