Transition from my firefox extension to a Flash Builder desktop app

Trying to make a slow transistion from my firefox extension to a Flash Builder desktop app.
Okay i'm not familiar on how to go about this I have js code that lets my app sync it self with the lates build it looks for a new version number which is in a txt file. Inside the txt file I have 0.0.0 so evertime I change the version number to 0.0.1. The app checks for new updates and sees the txt file has a new version number and start to pull in the zip file and extrudes the zip into the directory.
I can't get my head around on how to modify this code ["@mozilla.org/extensions/manager;1"].getService
to look in the root directory of my Flash Builder app.
function Xcalibur_Sync(){
    document.documentElement.getButton("accept").disabled = true;
    var Cc = Components.classes;
    var Ci = Components.interfaces;
    var url = xcaliburGetUnicharPref("extensions.xcalibur.downloadurl");
    var Step1 = document.getElementById("xcalStep1");
    var Step1done = document.getElementById("xcalStep1Done");
    var Step2 = document.getElementById("xcalStep2");
    var Step2done = document.getElementById("xcalStep2Done");
    var Step3 = document.getElementById("xcalStep3");
    var Step3done = document.getElementById("xcalStep3Done");
    var Step4 = document.getElementById("xcalStep4");
    var Step4done = document.getElementById("xcalStep4Done");
    var xcalSyncDone = document.getElementById("xcalSyncDone");
    var progressMeter = document.getElementById("xcalProgressMeter");
    var progressPct = document.getElementById("xcalProgressPct");
  // Get Xcalibur version and location
    var GUID = "[email protected]"
    var gExtensionManager = Cc["@mozilla.org/extensions/manager;1"].getService(Ci.nsIExtensionManager);
  //var currentVersion = gExtensionManager.getItemForID(GUID).version;
    var currentVersion = xcaliburPrefs.getCharPref("extensions.xcalibur.installedversion");
    var xcaliburdir = gExtensionManager.getInstallLocation(GUID).getItemLocation(GUID);
    var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
    file.initWithPath(xcaliburdir.path);
    //Step 1 - See if an update is available
    Step1.setAttribute("hidden", "false");
    var req = new XMLHttpRequest();
    req.open('GET', url+"CRV.txt", false);
    try{
        req.send(null);
    }catch(e){
        alert("Cannot get update information from "+url+"CRV.txt\n"+e.toString()+"\n\nSync aborted ...");
        window.close();
        return false;
    }//try
    if(req.status == 200){
        var CRV = req.responseText;
Any Ideas?
Thanks,
Ish

Have you taken a look at the documentation on updating AIR applications?
http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff2. html
Or is it something else you wish to do? You can access the directory where your app is installed by looking at File.applicationDirectory and you can hit a URL by using URLRequest.
-Anirudh

Similar Messages

  • Unable to access SD Card / External storage from Flash builder / air app in android KitKat.

    Hi
    We are using Adobe Flash builder 4.7 to create an Android app for Andoid Kit kat platform.
    getDirectoryListing() function returns only one folder of SD card i.e. LOST.DIR. It does not return any other directory or file of the SD card.
    Regards
    Sachin

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
                            width="600" height="600">
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Label text="Hello World"/>
    </s:Application>

  • Upgraded from CSS5.5  to 6. Flash builder not installing. Acrobat not working

    Upgrade not getting Flash builder and after some time Acrobat X is not working.
    Thanking in anticipation.
    Harish

    You need to provide system in formation and the error summary/ install logs
    Mylenium

  • Flash builder mobile app hangs on Realease Build after air 3.1 (3.2 - 3.8) for IOS devices

    The app stoped working after air 3.1 on IOS devices...Its is a Flex/actionscript mobile project...as of May 1st apple forced us to use newer sdk so i updated to air 3.8 and have tried every version since 3.1...the app only works perfectly in release build from air 3.1...on air 3.8 debug on device works perfectly non-debug run on device crashes with sigbus or sig 11 ...Ive used xcode console and device logs and they have not been helpful...since they reference post compiled native code which i dont have acces to i have tried every fix on the web. Ive been trying to figure this out for days..Does anyone have any insight on this issue.
    Curently Using:
    Flash Builder 4.7
    air 3.8 beta
    Compiler options:
    -locale en_US
    -swf-version=21
    -omit-trace-statements=false
    -keep-as3-metadata+=Inject

    The app stoped working after air 3.1 on IOS devices...Its is a Flex/actionscript mobile project...as of May 1st apple forced us to use newer sdk so i updated to air 3.8 and have tried every version since 3.1...the app only works perfectly in release build from air 3.1...on air 3.8 debug on device works perfectly non-debug run on device crashes with sigbus or sig 11 ...Ive used xcode console and device logs and they have not been helpful...since they reference post compiled native code which i dont have acces to i have tried every fix on the web. Ive been trying to figure this out for days..Does anyone have any insight on this issue.
    Curently Using:
    Flash Builder 4.7
    air 3.8 beta
    Compiler options:
    -locale en_US
    -swf-version=21
    -omit-trace-statements=false
    -keep-as3-metadata+=Inject

  • Captivate and HTML issues in Flash Builder / Air App

    I have a Flash Builder project that includes an HTML component and several Captivate SWFs that play in another window of the app. If I do not have the HTML component on, all works fine. However, when I add the HTML component, I get the following error when I go from one Captivate SWF to another:
    Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.
    at Error$/throwError()
    at flash.html::HTMLLoader/throwIllegalMethod()
    at flash.html::HTMLLoader/getChildByName()
    at com.adobe.captivate.main::cpMovieController/restoreFocusObject()
    at com.adobe.captivate.main::cpMovieController/skipFrames()
    at com.adobe.captivate.main::cpMovieController/movieonEnterFrame()
    Does anyone have a suggestion on how to suppress the Captivate movie from calling the restoreFocusObject or how to suppress the error? I have tried  using the HTMLUncaughtScriptExceptionEvent handler but that is not capturing it.
    Thanks!

    Instead of using the File object, try URLRequest instead:
                                            var urlReq:URLRequest = new URLRequest("Special_Assignment_Title.flv");
                                            ns.play(urlReq.url);
    Chris

  • Make Flash Builder "Magazine" App. Appear in iOS 5 Newsstand?

    I know that the Digital Publishing Suite/Service (DPS) can create a "magazine" app that will appear in the iOS 5 Newsstand. I'm evaluating creating my own "magazine" app. using Flash Builder or Flash Pro. Any clues on how to do so? I can understand if this isn't supported, since publishers using the DPS is in Adobe's economic interest. However it would be cool if I could somehow use the "app. descriptor" file to configure an iOS app. exported from the Flash development to appear in the Newsstand.
    Thanks for any thoughts/opinions/answers!
    Ted

    Here's the solution:
    The problem did not exist on an installation of Flash Builder on a spare MacBookPro.
    On my main computer (the one with the Flash Builder issue) I uninstalled and reinstalled Flash Builder 4.5 (then updated to 4.5.1). Creating an iOS Mobile Application now creates the correct code.
    I have no idea why it was creating dodgy code.
    The only difference with the new Flash Builder install is that SourceMate 3.0 is not installed yet. Perhaps something had gone wrong in the Adobe Updater when going from 4.5 to 4.5.1, who know...all speculation...anyhow it works now!

  • Another Flash Builder 4 app launches!

    The menu maker app I have been working on the past couple of weeks finally went live:
    http://www.finecooking.com/create-your-own-menu/thanksgiving.aspx
    Many, many thanks to all the fine people here for their help, suggestions, and general moral support. Special thanks go to Sameer Bhatt for his help with group item renderers and the like!

    Here's the solution:
    The problem did not exist on an installation of Flash Builder on a spare MacBookPro.
    On my main computer (the one with the Flash Builder issue) I uninstalled and reinstalled Flash Builder 4.5 (then updated to 4.5.1). Creating an iOS Mobile Application now creates the correct code.
    I have no idea why it was creating dodgy code.
    The only difference with the new Flash Builder install is that SourceMate 3.0 is not installed yet. Perhaps something had gone wrong in the Adobe Updater when going from 4.5 to 4.5.1, who know...all speculation...anyhow it works now!

  • Cannot remove GoPhotoIt 1.4 or Torrent Handler 1.1 from my Firefox Extensions list.

    I have tried to identify where these programs reside on my computer (Mac running OS X 10.9.1). Looked in library, looked everywhere. These seems to be some suggestion that there are malware/key loggers and this needs to be authoritatively determined and the Firefox user community advised.

    If you are inclined to continue digging, you could query the database file that stores information on extensions. Here's how:
    (1) Install the SQLite Manager extension from https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/
    (2) Open the extension from its new item on the Tools menu. If it pops up a dialog to open a particular database, cancel that and just continue to the add-on.
    (3) From the toolbar, click the (Select Profile Database) button and choose extensions.sqlite then click Go to open it.
    (4) On the right side, click the Execute SQL tab and paste the following query, then click the Run SQL button:
    SELECT locale.name, addon.id, addon.type, addon.descriptor AS Path, addon.location FROM addon LEFT JOIN locale on addon.defaultLocale = locale.id WHERE addon.location != "app-profile"
    ''(ignore the forum's insertion of links into the query, you just want the text of it)''
    You should see a short list showing any extensions installed outside your profile folder. Can you find the physical location of the problem extensions this way?

  • Flash Builder Burrito Apps on iOS???

    Can someone give a step-by-step on how to package FB Burrito apps for iOS???

    1. Download AIR Packager for iPhone from
    http://labs.adobe.com/technologies/packagerforiphone/
    2. extract it into a directory (for eg. iPkg)
    3. Then Open the cmd prompt and cd to the directory where your SWF and app
    xml exists.
    4. Run the following command (Make sure you have java 1.6 installed.)
    java -jar <path to iPkg>\lib\pfi.jar -package -target ipa-app-store -provisioning-profile <mobileprovision> -storetype pkcs12 -keystore <certificate> -storepass <Cert Password> <outputname.ipa> <app xml> <app swf> <app assets>
    5. You can use various ipa targets like ipa-debug, ipa-test, ipa-app-store
    etc in above command
    Hope This Helps!!
    Thanks,
    Saumitra Bhave.
    AIR-Linux

  • Flash builder flex app

    Hy,
    I went to create a flex app, I need some help on:
    - How to choose the action of a button
    - How to integrate the RSS
    Thinks a lot
    Thomas

    Hy,
    I already made the main menu:
    But the "ligne n" button does not make any action,whereas I want that when I click on this button , a new page with a RSS feed appears.

  • How to run Java from Firefox Extension using liveconnect?!

    Hi, I'm trying to run a very simple java program from a Firefox extension I'm making but I've run into a brickwall and just can't get it to work. I'm a complete beginner in java and don't know much javascript so I've copied and pasted code from around the net to get where I am now. I'm sure I'm just making some stupid error at some step.
    In order to work out what I'm misunderstanding/doing wrong I'd be really grateful if someone could show me how to get it to work using a very basic example:
    Say I have a .java file taken from the sun pages:
    * The HelloWorldApp class implements an application that
    * simply displays "Hello World!" to the standard output.
    class HelloWorldApp {
        public static void main(String[] args) {
            System.out.println("Hello World!"); //Display the string.
    }So I stick it into a jar using:
    jar.exe cvfe HelloWorldApp.jar HelloWorldApp.class HelloWorldApp.class
    I then place it directly on my C: drive.
    In the javascript of my firefox extension I have code copied and pasted from https://developer.mozilla.org/en/Java_in_Firefox_Extensions:
    var urlClasz = java.lang.Class.forName("java.net.URL");
    var urlArray = java.lang.reflect.Array.newInstance(urlClasz,1);
    urlArray[0] = new java.net.URL('file:///C:/HelloWorldApp.jar');
    var cl = java.net.URLClassLoader.newInstance(urlArray);
    var aClass = java.lang.Class.forName("HelloWorldApp", true, cl);
    var aStaticMethod = aClass.getMethod("HelloWorldApp", []);
    var greeting = aStaticMethod.invoke(null, []);This seems to start java but then only gives me the error:
    "Error: uncaught exception: Error calling method on NPObject! [plugin exception: java.lang.ClassNotFoundException: HelloWorldApp]."
    I would be infinitely grateful if someone could show me the code I would use in this situation to run the HelloWorldApp. If I could get it working in this basic situation I'm sure I could work it out from there.
    Thank you very, very much!!

    By the way, I answered just because nobody did and I have some experience with using java from mozilla javascript.
    But I never played with Firefox extensions.
    No problem baftos, I understand you might not have all the answers but you've helped loads so far, so thanks a lot! I've found it very difficult to find good documentation on this for a beginner like me.
    Adding public did it (although I thought that I'd tried that, oops) so thanks again for that. I may have a couple of other questions just in case you happen to know the answer!
    I'd like to send some string arguments to the method I really want to run eg:
    public class HelloWorldApp {
    public static void sayHello(String[] args)
    {code}After googling .forName and .getMethod to see how to pass parameters I've added some code:
    {code:java}
    var strClass = java.lang.Class.forName("java.lang.String");
    var parameters = java.lang.reflect.Array.newInstance(strClass,2);
    parameters[0] ="My string argument";
    parameters[1] ="3"; // etc...
    var argHolder = java.lang.reflect.Array.newInstance(strClass,1);
    argHolder[0] = strClass;
    var aClass = java.lang.Class.forName("HelloWorldApp", true, cl);
    var aStaticMethod = aClass.getMethod("sayHello", argHolder);
    var greeting = aStaticMethod.invoke(null, parameters);
    {code}What I thought I was doing was creating a java array: argHolder and putting the string class/object thingy?! in it so that getMethod would look for a method called "sayHello" which took a string array as an argument... but apparently not!
    This brings me back to square one with a cannot find method with these arguments error:
    "Error: uncaught exception: Error calling method on NPObject! [plugin exception: java.lang.IllegalArgumentException: No method found matching name getMethod and arguments [java.lang.String, [Ljava.lang.String;]]."
    You don't happen to know how to do this as well do you?!
    Edited by: mzatanoskas on Feb 13, 2009 1:40 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Flash Builder is an Unprofessional Beta

    In Spring of 2011, I was very excited at the fact that we would be using Adobe Flash Builder 4 in a semester-long software engineering class project at a leading university.  I had used many Adobe products in the past and was very happy with them, particularly Photoshop, Illustrator and Dreamweaver.  I had also been wanting to learn ActionScript/Flex, and this project would give me the opportunity.  However, after extensive use of Flash Builder, I have realized that this product was the biggest let down since Windows Vista.
    There were several people working on the same project using Subversion.  In addition, we would have a lab session once a week using different computers, so it was necessary to frequently import projects into Flash Builder.  Importing Flex Projects was the most annoying and time consuming aspect of many.  Firstly, when one selects the import option, a dialog is presented and is positioned mostly off screen.  It is necessary for one to drag the dialog to the screen manually every time.  In addition, the path of recent projects is not saved, so one must manually navigate to the proper directory each time.  Since there were so many problems with projects falling apart, many imports were necessary.  It is necessary to manually navigate through the long hierarchy of directories to reach the project.  This is very time consuming and unproductive.
    After the import, the project will not run because of some problem finding the HTML files.  It was necessary to create new projects from scratch and do a lot of copying/pasting until a team member directed me to delete the html-template directory.  I am not sure how he came across this tip, as I had searched the Internet for solutions to no avail.  One more tedious step is necessary.  The html-template directory needs to be recreated, and the only way, at least that I see, is to rebuild the project, then after the error appears in the Problems window, right-click the error and select Recreate HTML Templates.  That’s quite a bit of work, and maybe there should be an explicit option to recreate HTML templates that’s not buried as a right-click option in the errors list.
    This leads to the next problem.  Errors do not appear in the code until the file is saved.  Every time I type in a new statement, it is necessary to save the file in order to see if there are any errors.  This is very counterproductive.  In addition, it would be much more productive to add a feature in the code hints that would allow for mouse wheel scrolling.  It takes much longer to navigate through the hints without this feature.
    Another problem related to importing projects is with executing it.  Sometimes after importing a new project, a dialog displays that says that it may be necessary to restart the browser.  This turned out to be a huge problem, as I frequently have many, many Firefox tabs/windows open at a given time.  It is very unproductive to restart Firefox several times until the project finally imports correctly.  Sometimes it will work without restarting, however, and I cannot pinpoint any differences between when it works and when it doesn’t.  This may be related to the Flash plugin as opposed to Flash Builder.
    This leads to another problem.  For testing purposes, sometimes it is necessary to locally run the HTML file in the bin-debug directory.  Even after a successful import and rebuilding of the HTML template, the Flash content will not load at all – just a blank screen.  Sometimes the content will load, but it will not function correctly.  If I upload the files to a live web server, it works just fine.  However, sometimes it is necessary to run the HTML files locally, and it is very inefficient to have to upload/run to/from a web server.
    After all the trial and error of simply importing a project and when you think you’re making progress, something happens to the project along the way.  All of a sudden when you try to execute an MXML application, which is in the same directory of several others, only one certain MXML application decides to run (when you are trying to run another one).  The only workaround that I found is to either bring up a backup or create a new project and copy/paste the code.  This is highly unproductive.
    All the inefficiencies and bugs in Flash Builder made it necessary for me to make constant backups.  When a project fell apart, I had to open a backup and copy/paste the code.  This was a lot of wasted time.  In addition, I learned early on not to count on Flash Builder when presenting or making minor, last minute changes before a presentation.  Flash Builder always managed to encounter some strange problem. 
    Flash Builder is unreliable and highly inefficient.  I love Adobe products and Flash is great, but at this time I can no longer use or support Flash Builder, and I could in no way justify its purchase in the future until most of these bugs and inefficiencies are fixed.  It has potential, and could be a great product if this were the case, but in my experience I spent more time overcoming bugs than coding.  When something would not work right, I first had to determine whether it was a bug in my code or a bug in Flash Builder.  If Adobe needs an engineer to fix some of these seemingly simple issues, I would be willing to take on the task for the sake of saving this potentially amazing product.
    [email protected]

    it's a beta. it stunk. but they put it out for review which helps Adobe and others. But never treat those products as stuff to base your serious work around. Flex3 is stable. FB4 is 90% reliable. Things are still broken in it.
    btw if it was a leading university why in the world would they base it around a Beta that was buggy or was that your decision ?
    now, since I helped, please give me my 5 or 10 points.

  • Show Notifications in Air - Flash Builder 4.6

    Hi, I'm new into Flash Builder mobile apps development.
    I just downloaded the latest release of Flash Builder, the 4.6.
    I read in this Adobe's article, that with this version I can add "Notifications" to my apps.
    I tried to, but all my experiments failed.
    Here's a quick personal video illustrating all my steps, and coding errors, please, whatch it:
    (It's very, very short, just the time to write some lines of code)
    I think my error is simple to solve... but I'm a NewBie and I don't know very much this programming IDE.
    Thanks everybody for any help.
    Have a nice day
    Brandon
    WOW!
    I'm seeing now that my video's quality is very low... here's the code I wrote:
    // Here I want to declare my personal Notification Variable, as said in Adobe's Tutorial
    private var myNotification:NotificationManager;
      // I saw that NOTIFICATION MANGER does not exist in my code library... but I tried pasting Adobe's one...
      // as you can see from this video... the compiler gives me coding error..
      // CONCLUSION... WHAT CAN I DO ???
      // THANKS TO ALL !!!
      // Bye  :-)
    protected function button1_clickHandler(event:MouseEvent):void
    // Here I'll paste Adobe's code to create a new Notification for my first Flash Builder Mobile App...
    // CODE...
    Thanks again

    Here's Adobe's article I missed to link:
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/notification.html
    And the video I made:
    http://www.youtube.com/watch?v=v0S26Qle-tc&feature=channel_video_title
    PS = WHATCH MY VIDEO IN FULL HD - 1080p, or YOU'LL NEVER READ THE CODE

  • I cannot install flash builder 4.6.  Installation hangs while unpacking files

    Below is the information from the event viewer.  I am using Windows XP SP3.  I don't know, but I wonder if it has something to do with our roaming profiles.  The place it seems to be trying to unpack to is \\EssexHQVM\Desktops$\user.name\Desktop\Adobe Flash Builder 4.6 Installer, which has a special character in it.  I can't find any way to have the file unpack to another location, it doesn't prompt for a location.
    Event Type:
    Error
    Event Source:
    Application Hang
    Event Category:
    (101)
    Event ID:
    1002
    Date:
    12/9/2011
    Time:
    10:56:55 AM
    User:
    N/A
    Computer:
    MIKESHOST
    Description:
    Hanging application FlashBuilder_4_6_LS10.exe, version 1.0.1.2, hang module hungapp, version 0.0.0.0, hang address 0x00000000.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 48 61 6e 67   ion Hang
    0010: 20 20 46 6c 61 73 68 42     FlashB
    0018: 75 69 6c 64 65 72 5f 34   uilder_4
    0020: 5f 36 5f 4c 53 31 30 2e   _6_LS10.
    0028: 65 78 65 20 31 2e 30 2e   exe 1.0.
    0030: 31 2e 32 20 69 6e 20 68   1.2 in h
    0038: 75 6e 67 61 70 70 20 30   ungapp 0
    0040: 2e 30 2e 30 2e 30 20 61   .0.0.0 a
    0048: 74 20 6f 66 66 73 65 74   t offset
    0050: 20 30 30 30 30 30 30 30    0000000
    0058: 30                        0      

    So, the best solution that I have come up with, which is a poor solution, is to run the .exe file on a machine that is not connected to our network and wait for the files to unpack.  Then copy the files to a thumb drive and move them to the computer that I work from.  I can then install Flash builder with no problem. 
    This is a kludgy work around that ought not be.  How hard is it to have the unpacking routine prompt for a location?  That would allow me to give it a location to unpack that would not cause a hang up.  Or, failing that, why not unpack in the same location as the file that is doing the unpacking?  Then I could simply place the file in a good location and let it run.

  • Flash Builder 4 Installed, But Won't Start

    I installed Flash Builder 4. The installation completed without a hitch, but the application won't start. Here are the log files from \Local Settings\Temp and Adobe Flash Builder 4\.metadata.
    amt3.log - http://pastebin.com/snrXFkfD
    \metadata\.log - http://pastebin.com/BkmVBBU5
    Any idea regarding what I am doing wrong? I have Eclipse on my comp, but I have installed the standalone version of FB 4 trial.

    > Even if the trial has expired shouldn't the screen with buy now appear?
    Yes, that's what I would expect too. Sometimes there are situations where previously installed Prerelease versions (beta versions from Adobe Labs) can interfere with that though, especially with multiple users on a given machine in a Lab setting.
    > I can requisition a full license from the sysadmin.
    Good idea - that's probably your best shot at getting FB4 activated on that machine, without needing to re-image it. After you obtain an FB4 serial number, you should be able to enter it at install-time to activate the license.
    -Chris

Maybe you are looking for