URL request syntax to redirect to a Flex Desktop application that runs in ADOBE AIR

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....................

After two days of research and getting localConnection to work, just to realize the application has to be running in order to pass variables to it with localConnection.  I realized that I set <allowBroswerInvocation> to true in my air application, but forgot to uncomment it in the descriptor file.  Extremely upsetting..... I can now get the airSWF.getApplicationVersion() to return the correct version number, but am still having problems with the airSWF.launchApplication() since it hard to debug, and just doesnt do anything.  Below is the code in the Install.log after running the launchApplication() function  I am still working on it and will post my progress.  Any help would be greatly appreciated, thank you.
[2011-04-05:12:20:21] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
[2011-04-05:12:20:21] Commandline is: -playerVersion=10,1,82,76 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -launch com.msp.two -- launchFromBrowser
[2011-04-05:12:20:21] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
[2011-04-05:12:20:26] Application Installer end with exit code 0

Similar Messages

  • Embedding swf into Flex Desktop Application size/scale problem.

    Hello,
    I am embedding an swf animation into my desktop Flex desktop application. I am using SDK 4.6.0. I use the SWFLoader to embed the animation:
    <s:SWFLoader source="img/mch_anim_1.swf"/>
    When I run the application, the animation is loaded and is working, but when I try to maximize the window there is a size/scale bug that happens. The screen  stays half-side maximized (maximized to the top, bottom and stays until the middle of the screen by side).
    I've published the SWF for Flash Player 8 and Actionscript 2 just to test and there was no problem with the size/scale, but I need to use Actionscript 3.
    Any suggestions?
    Thanks in advance,
    Stefan

    I found the problem!
    There was a line of code that was auto-generated from using a template out of Flash CS6. The line of code that caused it is:
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    After deleting it, everything is now working properly.
    Greetings!

  • Audio driver is cashing the flex desktop application

    We have a desktop application which is done in flex 4 which is using the audio video capablilites.
    In that application we have pretesting module like skype audio video testing. Some audio drivers are crashing the applicatiion (realtek HD driver), this issue is not getting in the flex builder 4 only in the exe the issue is showing. and this issue is not happening frequently
    Please help us
    Thank in Advance
    Vijayakumar

    I dont think i really understand what you are trying to achieve.

  • Opening a new URL in an existing browser window from a Java application

    I've tried one of the many codes to open a new browser window and it works, but I need something else.
    Is there any way to open a new URL on the same window on a Java desktop application? (Changing the URL on the current browser window without opening a new one, I mean).

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • Is there a way to save data to just one view in Flex Mobile applications?

    I am having trouble handling data between views in a Flex Mobile application that I am writing. I know how to pass data from one view to another, but I was wondering if there is a way to save that data to a view, then get more data from another view (in this case it would be the same view that the original data came from) and put that data on the same view without overwriting the original data. I would be glad to post some code if anyone needs to see it.

    I think we realise that this is the same question as the other thread.

  • Adobe Air+ Flex applications to build from database

    Hi,
    I know how to create a Flex application from database.But
    when we are developing a flex application from database using Adobe
    AIR,i'm not able to run the application.It is throwing an error
    saying .xml file is missing.Can anyone help me out with
    this?

    In Flex, an application can be created from database by
    following the steps as follows:
    STEP 1. Create a new Flex Project and name it as for example,
    “FLEXDB”. Select the
    application type as “Web Application (runs in Flash
    Player)” and Application server type as
    “ASP.Net”.
    STEP 2. Go to Data->Create application from database.
    Select the project as
    FLEXDB”.Create a new Connection to SqlServer 2005 and
    specify the database and name that connection
    as”TestConn”. Then select any table (for example
    DashboardRegion) from the list of tables and click
    “Next” button.
    STEP 3. Select the Server language as “C# with Web
    Services”. Click “Finish”.
    STEP 4. Then the following files and folders will be created
    under the project “FLEXDB”
    automatically.
    • DashboardRegion.mxml -- is a design page.
    • DashboardRegionScript.as -- defines web service
    object and capture the results and assigns the results to the
    corresponding UI Component.
    • DashboardRegionConfig.as -- calls the Web Service
    file.
    • DashboardRegion.asmx -- calls the Class Files
    (DashboardRegion.cs file).
    • Web.config – defines the Connection string
    • App_Code is a folder which contains the following
    files
    o DashboardRegion.cs that interacts with SQL Server 2005 and
    return the results.
    o TestConn.cs that defines connection to SQL Server 2005.
    STEP 5. Run the application “DashboardRegion.mxml
    ”.We can see the Database results
    Fetched and displayed in the corresponding UI Component in
    the output.
    Now we are trying to create a Similar Flex Application using
    Adobe AIR.
    For this, we have to follow similar steps mentioned as above
    with a slight modification in STEP 1. It will be as follows:
    STEP 1. Create a new Flex Project and name it as for
    example, “FLEXDB”. Select the
    application type as”Desktop Application (runs in Adobe
    AIR)” and Application server type as “ASP.Net”.
    The remaining steps are same as above.
    When we try to run the application
    “DashboardRegion.mxml”, it is throwing an error saying
    “DashboardRegion-app.xml” file is missing. To solve
    this issue we tried creating “DashboardRegion-app.xml”
    file manually, the application is running but, again throwing an
    error saying “Unable to load WSDL. If currently online,
    please verify the URI and/or format of the WSDL
    (../DashBoardRegion.asmx?wsdl)”.
    Can any one please suggest a solution for this?
    Or Help me how to connect sql server 2005 in the Adobe AIR
    application that are buid using Flex builder.

  • How can I redirect a URL with aliases or redirect?

    Hi all,
    I have this partially working on my servers, but am not 100% sure I am doing this corerectly.
    Basically I have a Web site domain, let's call it product.com
    In server admin I have a site set up called www.product.com under port 80 and another under port 443 for my SSL pages.
    Here is my problem: If a customer types "product.com" in their favorite Web browser address bar, I would very much like the server to automatically redirect them (if that's the correct term) to "www.product.com"   Currently they would end up on http://product.com/index.html when they key in the URL without the "www"  I am concerned this is hurting my SEO and Google analytics as well as being an issue internally for PHP pages that are coded to the "www" addresses.
    I also have a sign-in page for my clients at the address: http://www.product.com/lib/app/auth/authenticate.php.  When a client types "signin.product.com" I want them to go to that long URL for the sign-in page.  I have gotten this to work by setting up a new Site in Server Admin > Web > Sites named "signin.product.com" which then has a single entry on the redirect tab with the URL of the signin page above.  Not sure if that could have been done on the core Web site (www.product.com) or if that was the way I should do it under Server Admin or if there is an easier way to do it.
    Primarily I want to be able to handle redirecting any type of subdomain "xxx.product.com" to another address.  The primary one I want to deal with now is the "product.com" redirecting to "www.product.com".....  Should I just set up another Web site in Server Admin with a redirect like I did for "signin.product.com"?
    Any advice on doing proper redirection appreciated.
    -- Jon

    There are so many ways you could do this. You need to pick what's right for you.
    Some of the options are available through the GUI. Many more are available once you get under the hood and drive Apache directly. Your skill and comfort level will undoubtedly influence which path you take.
    At the first level, Apache groups sites together by the hostname used to access the site.
    If you want 'www.product.com' to go to the same place as product.com you could create one site with an alias, so that Apache uses the same 'site' configuration for both hostnames.
    If you want the two hostnames to do different things then you could create two sites - in this case 'www.product.com' has the full, normal site and 'product.com' has a redirect to the equivalent page on 'www.product.com'.
    Within www.product.com you can also setup selective redirects to the HTTPS site. This will ensure that things like the login form are accessed securely. In this way your HTTPS site is another 'site' in Apache with the SSL configuration.
    One caveat in your post is the use of 'signin.company.com'. You don't describe your network, but if you have only 1 public IP address then this is going to be an issue since you cannot easily run multiple SSL sites on a single IP address - you'll need a different public IP address for each SSL site. This is because the SSL negotiation occurs before Apache knows what site the request is for, and therefore it doesn't know which SSL certificate to use for the connection.
    So, in general, you'll create one site for each variation in your web setup - one for 'www.product.com/port 80', one for 'www.product.com/port 443', one for 'product.com/80' (which redirects to 'www.product.com'), and so on.

  • Passing URL variable on login redirect

    I first want to say thank you for all the great help I have received on these forums over the past couple months - it has been very helpful and saved me countless days.
    Saying that, I do have another problem. I would like to pass a URL variable to the success redirect page when users login. I want to have a recordset on the login page that retrieves an issueid for the most current article and then passes it on the URL to the page that is loaded when a user successfully logins. I have tried adding the recordset to the login page and then changing the URL for the successful redirect on the tNG_config.inc.php file to:
    $tNG_login_config_redirect_success["5"] = 'dashboard_issue.php?issueid=' . $currentIssueId . '';
    but it isn't working. I have a tried as many variations of that syntax as I could think of or find searching online but still no luck. There might be a much easier way to do this but the way the dashboard_issue page is set up is that it is looking for the issueid in the url. The benefit being that the same page can be used for any issue that the user wants to change to once he is logged in.
    I hope this is making some sense. If not please let me know.
    Thanks!
    -Dan

    The most current issue is actually just the one that is closest to today's date in the future. Users are free to add as many issues as they want in the past and future so I really can't go by issueid to sort since it might come in any order. Right now I have the most current issue found with this query:
    SELECT issueid, DATE_FORMAT(date, '%W, %M %d, %Y') 'date' FROM issues WHERE date >= CURDATE() LIMIT 0,1
    I will try to explain the problem a little more. This works great for what I need to do for this page as soon as they log in since it doesn't even look at the URL at all. If a user wants to go to a different issue I display a different page (which is this page just renamed) where the recordset looks at the URL issueid variable instead of the most recent issue recordset. The problem with this setup is that it is hard to maintain 2 pages all the time and would be great if I can just have one page to handle everything.
    Is it possible to do something like this?:
    IF issueid url variable EXISTS THEN use recordset1
    IF issueid url variable DOES NOT EXISTS use recordset2
    with recordset1 being the one that grabs the most current issue and recordset2 being the one that pulls the issue information based on the url issueid.

  • Open url request from PopUpManager

    Hi,
    I have a function which opens a new browser window with the result of a URL request (an image). I wonder if  I can do the same but with a window "embedded" in the flash application.
    I saw there is a class called PopUpManager. I understood that I have to create a new component ("popup") with the data for the new window. The problem is that I don't know how to pass the result of the URL request to that popup component.
    Is it possible at all? Is there any other alternative?
    Regards,
    Manolo

    Hi there
    Yep cool with the PopUpManager.centrePopUp.
    As for saving an image.  You can save graphics from Flex by specifiying a rectangular region you want to save.  You can save the selected region out as a jpg or a png using the encoders.  In the example below I have saved out an image. 
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
         import mx.graphics.codec.JPEGEncoder;
         import flash.utils.ByteArray;
         private function saveImage():void {
              var bitmapData:BitmapData = new BitmapData(myImage.contentWidth, myImage.contentHeight);
              bitmapData.draw(myImage);    
              var jpeg:JPEGEncoder = new JPEGEncoder();
              var byteArray:ByteArray = jpeg.encode(bitmapData);
              var file:FileReference = new FileReference();
              file.save(byteArray,'TestImage.jpg');
    ]]>
    </mx:Script>
    <mx:Image id="myImage" x="78" y="33" width="283" height="180" source="http://www.maniacworld.com/amazing-cars.jpg"/>
    <mx:Button x="78" y="236" label="Button" click="saveImage()"/>
    </mx:Application>
    Note you need to be compiling for Flash PLayer 10 in your Flex compiler settings as that allow you to read and write local files.
    Hope it helps
    Andrew.

  • Trying to capture a URL String after a redirect.

    I'm trying to capture a URL string after a redirect. Is this possible? Am I going at this the wrong way?
    They code below always comes back; isURLInaccessible: true
    I've tried mutliple attempts of using Security.loadPolicyFile, still no luck.
    Both the URLRequest domain and the redirect domain have crossdomain files with access set to *.
    [CODE]
    public function init():void{
              var loader:Loader = new Loader();
              loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
              var request:URLRequest = new URLRequest(myVideoURL);
              loader.load(request);
    private function progressHandler(pe:ProgressEvent):void{
              var info:LoaderInfo = LoaderInfo(pe.target.loader.contentLoaderInfo)
                     if(info.isURLInaccessible){
                         trace("isURLInaccessible: " + info.isURLInaccessible);
                     }else{
                        trace(info.url);
    [CODE]

    use an Event.COMPLETE listener and listener function to check that property.

  • Losing info after a & on a String url = request.getParameter("refurl");

    Hi...
    Wnen I am passing information.... like this....
    http://127.0.0.1:8080/forumoracle/forum_login.jsp?refurl=http://127.0.0.1:8080/forumoracle/forum_view.jsp?catid=2&threadid=4
    I seem to be losing the information after the amperstand.. and not sure why..
    String url = request.getParameter("refurl");
    So when I print out the url string.. I only get this...
    http://127.0.0.1:8080/forumoracle/forum_view.jsp?catid=2

    You can't redirect to a new window from the server end
    you have to make the decision at the client when you
    click the link. All a web server does is receives a
    request, and sends back a response.
    The decision about where to display that response is
    up to the browser. (ie does it replace current
    content, put into a new window etc etc)
    You can use the target attribute on links and forms to
    specify it from your HTML page, but once the
    link/button is clicked you are committed.While this is all true for JSP that doesn't care about the UI, JavaScripting makes it possible to open new windows, but it is lacking in some respects for my use. I am facing two issues:
    a)how to give a URLEncoder.encode string to JavaScript's window.open() legibly, and
    b) how to close a window opened with a JavaScript after a download of a file
    In both instances, there is ergonomics.

  • Invoking a method on an URL request?

    i want to invoke a method of a class on an URL request,such that the method can navigate the control to number of other pages .

    Implement a Filter.

  • Load the document in Firefox (click gmail "Documents") error: The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    load document in Firefox (clicking gmail "Documents", error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • How to set "Output folder" and "Outputfolder URL" in Flasbuilder 4b1 for combined Java/Flex project with WTP?

    Hi,
    how can I set the "Output folder" and "Output folder URL" in Flasbuilder 4b1?
    In Flexbuilder 3 I can do this under Project Properties/"Flex Build Path" 
    Under "Flex Build Path" in F4b1 I can see the settings, but they are not editable.
    A message says "The output folder settings for server projects are on the Flex Server Property Page" but under "Flex Server" there is nothing (yet) I can change/set?!
    Is there a workaround?
    Thanks for any pointers!
    Martin Zach

    Yes I'm using Flash Builder b1, build 235740. But your settings panel looks different to mine (see attached).
    Just a thought. When you created the Flex project, did you choose a server technology at that point already? I just remember from Flex Builder 3 that if you didn't choose a server technology when you created the Flex project then it was a pain in the ** to add it later. It involved editing the .flexProperties file manually if I remember correctly.

  • URL Request  Strings

    Hi,
    I have found information through research about the URL structure for 'passing information between pages' using the p?f=110:100:etc etc.
    We currently employ Apex to provide an insurance quotation engine for a third party and rely on a link on their pages to direct customers to our application.
    My question is...
    Is it possible to include (in a similar manner to say php) request variables - the client requires a 'customer friendly URL' i.e. www.myinsurance.com/apex/travel.insurance as opposed to www.myinsurance/apex/p?f=100:1:::::::::::::::::
    I assume it is not possible to link to an Apex app using www.myinsurance.com/apex/travel.insurance?referrer=STAFFMEMBER
    Please could you explain if it is possible to pass values in a 'customer friendly' URL to an apex application and if so how (or if not prepared to tell me, point me in the right direction of some reference material).
    Regards
    John

    Hi John,
    the Apache module mod_rewrite is the way to go. They can use the URL format they want to have and as soon this URL request goes to your Apache, it will be "translated" to the format APEX requires.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Maybe you are looking for

  • Outlook Delay Delivery not work in Outlook 2010

    Outlook Delay delivery is not working even after installing SP1 Please update me 10

  • How do you fix iTunes glitch?

    I open iTunes and it automatically closes on my iphone but on my ipad it opens fully and says cannot connect to iTunes  

  • Nothing to Inspect After Importing Media

    I have been importing media to do tests on converted footage. Everytime the media was imported, there was nothing to inspect. I waited for the import to be 100% complete, but still nothing. I keep my final cut files on an external, so then I tried im

  • Mac printing - "printer is in use" forever

    On or about Dec 30, 2014, my MacBook (MacOS 10.8.5) suddenly could not print to either my HP Officejet 6100 or Deskjet 6980, via network printing.  Both printer queues would show "printer is in use" forever, when any document is printed. I did the us

  • Stored contacts missing

    I wanted to send a group email, but in both my main account and sub-account,my contact lists are gone.  I sent emails out earlier this afternoon and had no issues.  What happened in a few hours that my contacts are no gone?