Is it possible to load REMOTE resource module  from an Air application ?

Hi All,
          Am trying to load remote resource module swf file from an AIR application, am not able make it work,am getting the following error
code:
eventDispatcher = ResourceManager.getInstance().loadResourceModule(remoteURL);
ERROR:
"Unable to load resource module from ".
Please help me out..
Thanks
J Kishore

This might help you out: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/

Similar Messages

  • Loading resource module from private folder.

    Hi,
    I have client(AIR)-server(Java) application working with many locales. Every now and then someone finds a bug in translation and repairs it.  Whenever somebody updates translation (via other tool wchich also creates new xx_XXresourceModule.swf on the server) it's created new resource module. From this reason I want to have resourceModules located on server. Changing resource on server will spread this change on each client during client initialization. Client during starting checks "somehow" whether there is newer resource module on server side and if there is then it should download and loads it.
    The reason why I don't want to just call IResourceManager.loadResourceModule(serverURL+resourceModule.swf) every time client start is quicker  client start up. If there isn't newer localization it uses the one which was dowloaded and stored earlier during former start.
    The problem is that when I download resourceModule.swf I could store it only into File.documentsDirectory where I have WRITE rights. But later on I am not able to load resource module via IResourceManager.loadResourceModule(). It complains "Unable to load resource module from: file:///c:/documents and settings/user/MyDocuments/resourceModule.swf" Do I miss something or is it possible to call loadResourceModule() when the SWF file is located somewhere in myDocument folder?
    Any idea how to solve it?
    //pyso

    AIR had a security restriction that you can only load modules from the app directory (i.e. the same folder the application was installed to). However they added a loadBytes(...) function to allow a module to be loaded that had been downloaded. I don't know if this was added to the resource stuff however.
    You cannot blindly add modules to the app directory either (at least ones that weren't part of the initial install) as the AIR runtime tries to work out from the directory whether it needs to update itself, and adding files in there confuses it (so say Adobe).
    I actually think you might be stuffed unless you create a new version of your AIR application with the new resource bundle, and distribute it as an update.
    Gk.
    Gregor Kiddie
    Senior Developer
    INPS
    Tel:       01382 564343
    Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
    Registered Number: 1788577
    Registered in the UK
    Visit our Internet Web site at www.inps.co.uk
    The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [email protected]

  • Is it possible to load an html page inside a JavaFX application?

    Hi
    Is it possible to load an html page inside a JavaFX application?
    Thank you!
    Alexandra.

    Actually it is very simple to load an HTML page inside a JavaFX application.
    var html:JTextPane = new JTextPane();
    html.setPage("http://www.berkshirehathaway.com/message.html");
    Stage
        scene: Scene
            content:
                ScrollView
                    node:SwingComponent.wrap(html)
    }A JavaFX application "tainted" by Swing is still a JavaFX application, isn't it?
    Loading an HTML page into a native JavaFX control would be a different story. It is hard.
    I don't think it is a top priority for JavaFX team to develop a control to render HTML. Using a Swing component, which supports HTML well, does not make a JavaFX application inferior. But, if JavaFX team could make a fully functional embedded browser control supporting HTML, JavaScript, etc., I would applaud that effort wholeheartedly.
    Right now, JTextPane inside a JavaFX application will crash the system, display gibberish, hang for ever or go haywire inexplicably, if JavaScript is used in the HTML page.

  • Setting up a remote log in from macbook air to a server

    best way to set up remote log in from Macbook Air to a protected server to do work from macbook air remotely

    Hi,
    if your printer is supported to be published in the Internet, you may able to do this. If it is not supported and if the Printer is not in the same network or directly connects
    to your Windows Server 2003, I’m afraid that there is no method to setup.
    To connect to a printer on a network
    https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/print_connect_net_printerw.mspx?mfr=true
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Can we call Remote Endable Module  from another Remote Enabled Moduel

    Hii experts...
    I have a problem regarding Remote Enabled Module Function Module....
    Actually i want to call the standard BAPI 'BAPI_GL_GETGLACCBALANCE' into the BAPI which i hve created...
    is it possible???
    or can anyone tell me if it is not possible then what is the alternative for this..???

    'Remote enabled' means that you can also call the function remotely. The 'Remote enabled' characterstic implies some restrictions for the FMs interface, i.e. parameters can not be passed by reference because the remote system has no access to the memory of the called systems where the referenced data are located.
    Remote call means only a restriction for the remote call, not for any direct call.
    Regards,
    Clemens

  • Is it possible to call Normal function Module from WD4A , Not RFCs

    Is it possible to call Normal function Module(FM) from WebDynPro for ABAP , Not RFCs

    There is no difference, unless you are specifically calling the RFC to connect to another system. If so, then you need to add the DESTINATION keyword to the function call and specify the destination name. This name must be defined in SM59.  But, if you are not going to another system, you can call the RFC the same way you call the regular function module.
    REgards,
    Rich Heilman

  • Loading remote sharedObject data from FMS 3.5 in AS3

    Porting from AS2 to AS3 and have a problem in the terminology, methods and syntax for loading remote sharedObject data. Here's what I have working in AS2 (This works in AS2 but not in AS3)::
    if (info.code == "NetConnection.Connect.Success") {
    drawing_so = SharedObject.getRemote("mySharedObj", main_nc.uri, true);
    drawing_so.onSync = function(list) {
    for (var n in list) {
    var line_obj = this.data[list[n].name];
    trace ("This name = " + line_obj);
    So I got the synching working ( I know that's different) and running error-free but it won't parse the data, nor can I get it into an array as above. Here's what I tried::
    if (cn.info.code.indexOf("Success") != -1) {
    trace("I'M CONNECTED ");// < --- this works
    drawing_so = SharedObject.getRemote("mySharedObj", nc.uri, true);
    drawing_so.addEventListener(SyncEvent.SYNC, syncSO);
    drawing_so.connect(nc);
    and the EventListener function is ::
    function syncSO(event:SyncEvent):void {
    var myList:Array = drawing_so.data.list;
    for (var n in myList) {
    trace("N = " + n);
    var line_obj = this.data[myList[n].name]; // < - - - not able to retrieve values from the sharedObject
    trace ("This name = " + line_obj);
    So I'm just not familiar with the terminology here.
    Sorry - I went through all your excellent tutorials to try to find this and scoured the forum as well. Maybe this would be a good, simple AS3 to FMS 3.5 tutorial! B^)
    Thanks for you help,
    Bobkatzz

    HI
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0c63b84-19e5-2910-fc81-f438716573d5
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/506eb432-0575-2b10-d986-8b41daa4d7af

  • Hi. Is it possible to load/view a pdf file in Flex application?

    Hi,
    Can we load a pdf inside a flex web application (not AIR)? If yes, how to we interact with the loaded pdf using javascript?
    Appreciate your help.
    Thanks
    Mahesh

    No, you can't directly load a pdf inside a flex web application.  You can use the external interface to open one in either an iframe, or a new tab/window in the browser.  Then you can use external interface calls (javascript calls to the host browser) to interact with the loaded pdf.
    Mark

  • How do I share resources between two Android Air Applications

    I have two air applications installed on Android 2.2. What I want to do is load App2.swf into a movieclip in App1.swf.
    Is this possible?
    If I include App2.swf in the APK all works fine. But what I want to do is either load it from a second application folder or from /sdcard/dropbox/App2.swf
    My load command var mRequest:URLRequest = new URLRequest("file://sdcard/dropbox/App2.swf"); // But it doesn't work !!!

    Try loading a text file instead of a swf and see if that works? That will tell you if you have the correct path or not.
    The swf may not work because of security issues. Attach some error event handlers and see what they say - do you get a security error or a file-not-found error?
    I've never tried loading off the SD card, but some useful paths to use are here:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3cc c516d4fbf351e63e3d118676a4c56-7fc6
    Nick

  • Open PS (CS-CS4) and load image from flex/air application?

    Hello,
    (Not sure wether to post this in the AIR forum or the FLEX forum?)
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

    Of course you may have some unstated reason for doing this in Air, but if not...
    Google photoshop droplet....
    Bob

  • Help - Loading Remote XML/PHP File On AIR For Android

    Hi guys
    Just a quick question here. I'm developing an android app which requires a small amount of text data to be retrieved via a remotely hosted on a web server.
    It works fine on a desktop machine but when it comes to testing it on a cellphone it refuses to load the XML file.
    The data file I'm using is a simple XML file for now, but eventually it will be replaced with a PHP file which generates XML.
    I'm uisng Adobe Flash Pro CS6 and have set the target to AIR 3.4 for Android. The INTERNET setting on the android permissions has been checked.
    The code is a simple URLLoader as follows:
    ============================
    private var _appDataXML:XML;
    private var _xmlLoader = new URLLoader();
    _xmlLoader.addEventListener(Event.COMPLETE, _onXMLLoaded, false, 0, true);
    _xmlLoader.load(new URLRequest("http://www.example.com/data.xml"));
    private function _onXMLLoaded(e:Event):void
         _appDataXML = new XML(e.target.data);
         _xmlLoader.removeEventListener(Event.COMPLETE, _onXMLLoaded);
    ============================
    Is there any reason why this works on a desktop but fails to work when tested on a cellphone? Could I have missed something?
    Any help would be appreciated. Thanks!

    Thanks for the response. I did as you asked and looked at the internet permissions which by the
    way was already checked.
    I then managed to solve this issue in a very bizarre way. I originally wrote the app in Flash CS5.
    I recently purchased a subscription to Flash CS6 and after recompiling under CS6 it still exhibited
    the same behaviour. But when I unchecked and then rechecked the internet permissions the app
    somehow fixed itself and is now working.
    Not sure what's going on here but it all seems OK now. Thanks!

  • Is it possible to load multiple exs24 patches from MULTIPLE locations on my hard drive ?

    I have a couple of external/internal HD's all with many patches and samples organised how i see fit in genres.
    Can I get exs to scan all of these drives for relevant patches - as appose to taking each one and putting it into the sampler instruments folder ?
    Surley there is a solouton to this ?
    Many Thanks in advance ..

    Hi
    Yep..
    The short story is that you can put your sample and sampler instruments wherever you like, but the Instruments ( or maybe better, an alias to the Instruments folders in these locations), should be placed either in
    Library:Application Support:Logic 
    or
    <User>:Library:Application Support:Logic
    The Folder in the above locations must be named "Sampler Instruments" with no 'alias'.
    It can be *very helpful* to use Redmatica's EXS manager or ProManager software to re-link samples to Sampler Instruments.
    CCT

  • It is possible to load final cut express from my G5 to my new MacBook Pro

    I have a G5 with final cut express 2 upgraded to 4.  I do not have the serial number for the express 2. Can I switch the program from  my G5 to my MacBook Pro by sharing computers.

    The SLA would only allow one computer at a time to have the software installed.

  • Is it possible to call a  Oracle  Trigger from a Java Application

    Hi
    Please let me know if is it possible to call a Trigger from a Java/J2EE Application .
    Thanks

    A trigger is NEVER explicitly called, from any environment.
    It is implicitly called when you invoke the operation that it's a trigger for.
    Whether you're using Java or anything else to invoke that operation makes no difference whatsoever.

  • Is it possible to create triggers in sybase from jdbc (java application)?

    We are in the need to create a triggers in the database (sybase) from JDBC (java application)?
    Please send me pointers or articles related to this.
    Thanks in advance,
    Kri

    A trigger is NEVER explicitly called, from any environment.
    It is implicitly called when you invoke the operation that it's a trigger for.
    Whether you're using Java or anything else to invoke that operation makes no difference whatsoever.

Maybe you are looking for

  • How do I separate my iCloud from my husband's account?

    Stupidly, when I got my iPhone, I logged into the same iCloud account my husband uses. It's causing major storage issues. Neither of us can update our phones. I can no longer take pictures. I've deleted all of my texts, keep my voicemails deleted and

  • How do I add a new page to my website?

    So I've created my home page, and now I want to make a page that it will link to. I can't seem to find info on exactly how to do this. I've created the new page; do I now set site preferences for it? Do I define it as a "New Site?" If so, what do I p

  • 3rd gen ipod touch faulty screen??

    i have a 32gb ipod touch that i bought on the 10th of this month. i got GTA: chinatown wars for it but for some reason my punch/use gun button (on the right side) doesn't work. i've found that if i flip my ipod to it's other side the punch/use gun bu

  • How to Hide SSID's on Windows 8?

    hello i wanna hide SSID of USB NIC wireless router on winndows 8. more description: i create a wireless router on my windows 8 by USB wireless adapter and i want to hide the SSID of this wireless connection.

  • Dynamic selections in FBL1N

    Hi. Is it possible certain selection fields from dynamic selections (such as clearing document) in report FBL1N to be always available in the dialog appeared in the right hand instead of choosing them every time of the dialog in the left hand? Thanks