Launch URL from AIR (Flex) App

Hi There,
Is it possible to launch a window containing a foreign URL
i.e. something that will launch cnn.com?
My customer wants an AIR App that will take the user to their
homepage..
Thanks,

Hi
try navigateToURL()
http://livedocs.adobe.com/flex/2/langref/flash/net/package.html#navigateToURL()
A pretty simple browser can be built only by using mxml
tags

Similar Messages

  • Get Machine Name and IP Address from Air Flex App

    New to Air..... Is there a way to get the name of the machine
    and the ip address for the client running the Air application? Not
    that this matters, but the applcation would be a Flex 3 application
    built specifically to be deployed to the Air runtime. I need to be
    able to have the Air/Flex application know what the client's
    machine name and ip address is. Can this be done?
    Thanks

    Hi Frank,
    Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
    Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
    on my block's canvas I've put a button and used this trigger to get client info function like this.
    when-button-pressed trigger of INFOBUTTON
    DECLARE
    o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
    begin
    message(o_clientinfo);
    end;
    but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
    thanks

  • Sending JSON from a Flex app?

    I have a bunch of data in my app I need to send to a back-end developer.  It's a series of string and arrays,.  The developer wants in sent as a JSON object.
    Can I construct one from my Flex app, and how would I get it to the server?  Can anyone point me to any examples or documentation on this?
    I have consumed JSON in the past, but never sent it.
    Thanks.

    "... limit the .swf file to be run within a web page..", Yes,
    but why is this a problem? It is the normal way to deliver a Flex
    app.
    The only other way is to use server-side functionality to
    send the mail.
    Tracy

  • How CAn I Use a URL variable in Flex App

    Let say the link to a web page embedding a flex 2.0 app is
    http://www.myname.com?name=Bruce
    and I need to use the URL.name variable in the Flex app.
    How can I access URL parameters inside my Flex app?
    Bruce

    You probably know by now but I though maybe a could actualy
    answer someone question.
    {Application.application.parameters.name)
    put that in mx:text and you can see the var "name"

  • Draw a rectangle from a flex app

    Hello,
    GRAND CHALLENGE (should be "hello world" that anyone should
    easily find):
    1) - a flex app with a button
    2) - when clicked the button draw the rectangle
    PROPOSED NON WORKING SOLUTION:
    draw.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>import DrawApp;</mx:Script>
    <mx:Script>
    <![CDATA[
    function drawNow():void{
    var myRectangle:DrawApp = new DrawApp();
    myCanvas.addChild(myRectangle.returnRectangle());
    ]]>
    </mx:Script>
    <mx:Canvas width="100%" height="100%"
    id="myCanvas"></mx:Canvas>
    <mx:Button label="draw"
    click="drawNow()"></mx:Button>
    </mx:Application>
    DrawApp.as:
    // ActionScript file
    package {
    import flash.display.*;
    class DrawApp extends Sprite
    public function DrawApp()
    //don't use the constructor anymore since it won't return
    the rectangle
    public function returnRectangle():Shape
    var rectAndCircle:Shape=new Shape();
    rectAndCircle.graphics.lineStyle(1);
    rectAndCircle.graphics.beginFill(0x0000FF,1);
    rectAndCircle.graphics.drawRect(125,0,550,575);
    rectAndCircle.graphics.endFill();
    return rectAndCircle;
    }//class
    }//package
    I've got an error "1034" (BTW as a bonus if anyone know how i
    can avoid to have the localized AS3 error messages so I can paste
    full error messages in English)
    CHALLENGE:
    Can someone show me how to make this wok before Silverlight2
    Beta get out?
    Thanks from francois who's mad trying to solve this "should
    be obvious hello world" for too long and who also discovered
    lately:
    - the lack of threads in AS3
    - the insane security policy around Flash Player (must
    install a proxy to access a public API...)
    - etc.
    Help please Oo

    Ok found the solution: needed to change the "Shape" object by
    a "UIComponent" object (don't know why).

  • Run out other tools directly from a Flex app

    Hi all.
    I develop a flex app and I want to integrate it with another tool.
    More specifically, I would like to click a button at my interface, and automatic and transparently to the user, a file with name and address pre-defined be written at the HD (without to use the FileReference object) and after, that an interpreter automatically run this file.
    I had saw this is possible with the AIR technology, but the web nature of my project doesn't allow me a platform change.
    So, I woudl like to ask you if my demand could be accomplished using the flex technology.
    Thanks in advance,
    Péricles

    Probably not.  Otherwise lots of great malware would be delivered via Flash.

  • Playing HTML 5 animations/ interactives from AIR mobile app

    Hi,
    Is it possible to play/ launch HTML5 animations and interactives [drag n drop, cloze, etc] from an AIR based mobile app supporting iOS and Andorid devices?

    Hi
    It seem's to be a common issue of ghosting itemrender.
    In flex item renderer is reused to keep memory performance.
    You can try this fix
    1- you can fix it by turning the "virtual layout" property of the llist to false;
    But it will decrease the performance, because you turn off the behavior of reusing item renderer
    2- you can override the "set data(data:object)" function of your item renderer class and move the "field=data" assignement inside it.
    3- Or you can use a dataChange event handling function instead of the creationComplete.
    I hope it's help you

  • Problems calling context-sensitive AIRHelp from Adobe Flex App

    Hi everyone...
    I´m having problems calling context-sesitive AIRHelp from Flex.
    I can launch the help from flex using the following code (flex), but allways starts on the default topic.
    private function invocarAirHelp(tema:String):void {
          var appID:String = "pc1";
          var pubID:String = "8C47FDE4638CAF7F210634E52A5F8318D893A57C.1";
          var mgr:ProductManager = new ProductManager("airappinstaller");               
          mgr.launch("-launch " + appID + " " + pubID);
    the launch method can recive parameters after the publisherID, but i dont know the parameters that i should give to the method to start the AIRHelp on an specific topic.
    I tryed using the parameters as the call was on the command line, ex:
      mgr.launch("-launch " + appID + " " + pubID + " -csh mapnumber 12");
    but i can get any results... with those parameters the help application doesn´t even start
    Anyone have an idea to make this works?
    Thanks in advance, Sabin

    Hi Sabin,
    The only supported way to launch AIR applications from the browser is the air "browser API": http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html#1035834
    The browser API uses ProductManager internally and exposes higher-level browser API so that we change the implementation if necessary someday. The browser API will stay the same, even if the interactions through ProductManager (or something else) change.
    The browser API (air.swf) has other features that make it the preferred way to launch apps. For instance, it provides accurate information about which platforms support AIR, and can therefore manage install of new apps and of the runtime itself.
    Also, if the application is not installed then Browser API will return Error to the flex application, but that does not happen in case of ProductManager.
    That said, you can probably use "--" to separate arguments intended for airappinstaller from arguments that should be passed through to the app itself. 
    mgr.launch("-launch " + appID + " " + pubID + " -- -csh mapnumber 12");
    -Praful Jain

  • Adobe Air 2.5 and AIR Debug Launcher (ADL) from AIR 1.5.3 SDK

    I am having some issues with the differences between running my Air Desktop application with the ADL from within my IDE and actually running it as an packaged air application that is installed. Everything functions as it should in the IDE when run with ADL, but once it is packaged the drag and drop functionality no longer works correctly.
    I was able to get this to work when Adobe Air 1.5 runtime was installed, instead of 2.5. I am aware that there were a lot of changes made with this last update, but I am unsure of how to proceed, as I am unable to debug the packaged air application to see what is actually happening.
    One solution that I could see would be to install the Adobe Air 2.5 SDK and use that to debug with.
    If anyone has any insight to why drag and drop works in the ADL and the runtime, your feedback would be much appreciated.
    Also, I am using Flash Builder 4, with the Flex 3.5 SDK

    Hi,
    We have same problem. On AIR 2.0.4 the drag&drop works correctly but with version 2.5.1 is problem. Do you found some solution for it?
    Thanx

  • Can I remove the startup progress bar from a Flex app?

    Hey all,
    I have built a few charts for my companies' website: http://www.midwestmarket.org/page/Area+Control+Error
    On all of them, I have noticed that there's a delay of 3 or 4 seconds from the time the page loads, a progress bar shows, and then the graph is actually shown.
    The charts in question are all Flex 3 builder built, and I am upgrading now to Flash 4 builder. But, still I see the progress bars.
    I know that Fusion Charts doesn't have this same startup routine, those charts pop right up as soon as the site is loaded. Now Fusion is of course build to JUST be a chart tool and probably doesn't load as much stuff. But, is it possible to get there with Flash 4 builder?

    hi,
    With flashbuilder you first need to load the swf, then it creates the display objects this is what the loadbar is there for, if you have embedded assets then that bar will stay even longer. Once the application creation sequence is complete the displaybar disappears and then your application is displayed.
    Now imagine removing that bar, on a slow connection with a 'large' app, the user would be faced with a blank screen for several seconds, not the desired end-user experience we are after.
    You can make it more interesting by customising the pre-loader with say a company splash screen which offers a more visually appealling startup
    this is a simple example of a custom preloader, source is included
    http://flashhub.net/ezflex/testloader/
    One quick note with preloaders there is no flex sdk at that point so preloaders have to comply with the immediate requirements of the flashplayer api. So basically on flash components.
    David.

  • How to Call report from Adobe Flex App.

    Hello. We are trying to create a reporting solution for our Adobe Flex Applications. We use java and postgre. We also have Crystal Reports 2008 and run a lot of reports locally on end users machines. We have some reports we would like to call from flex and have execute in java and send a PDF back to the end user. So:
    1. Is it possible to do this with Crystal for Eclipse?
    2. If yes can we send values from flex to the filter fields in the report?
    3. Do we then connect the report diereclty to postrgre to get the data?
    RIght now I have a report running in eclipse connecting to postgre. Just trying to see if we are going down the right path. THanks.

    You can integrate your reports with operational workflows by embedding Adobe Flex
    (SWF) applications into your reports. Using Adobe Flex Builder, you can
    create any business-user UI that accesses report data and also integrates
    with external web services. Data in your report can be passed to the Flex
    application via Flashvars, making it easy to create flexible UI even when you
    don't have web-services access to your data. The Flex applications can do
    tasks like database write-back and can invoke operational workflows directly
    within Crystal Reports.
    Thanks,
    Tej

  • Generate PDF from existing flex app

    Hi all,
    Is there a way that i can generate a pdf file based on the
    existing flex application? For example, if i have a VBox called
    "my_vbox" and it contains some child elements, so how can i simply
    create a pdf that contains all my_vbox's content?
    Currently i only have a dummy solution that to print the
    template and use Acrobat Professional to convert it, e.g.
    var printJob:FlexPrintJob = new FlexPrintJob();
    if (printJob.start() != true) return;
    printJob.addObject(my_vbox, FlexPrintJobScaleType.SHOW_ALL);
    printJob.send();
    So is there a solution that as easy as this one to "print" my
    whole template into a pdf? I have tried AlivePDF but it doesn't
    support pdf creation from IUI component(s).
    Thanks in advance!

    Hi,
    Have you tried the addImage() method of AlivePDF? It takes a
    DisplayObject as input:
    public function addImage(pDisplayObject:DisplayObject,
    pAlpha:Number = 1, pBlend:String = "Normal", pMatrix:Matrix = null,
    pResizePage:Boolean = false, pEncoding:String = "JPG",
    pQuality:Number = 100, pX:Number = 0, pY:Number = 0, pWidth:Number
    = 0, pHeight:Number = 0, pLink:String = ""):void
    More info
    here

  • Mediawiki + Air Flex app

    Hello. I am working on an app that users can login from
    desktop on a wiki site basted on mediawiki. And i need som help
    with the login. I think it work, but how do i go on when the login
    is ok and how do it go to a other mxml windows with a label like
    say Welcome: Username. Or something who can show that the users
    have be loged in. Hope you get it (sorry for bad english)

    I hope some will reply soon. Beacuse i need help :/ And i
    don't can fine any docs or blogs or some info about this.
    Hope some reply :)

  • Communication from a flex app. to a swf loaded inside it at runtime

    I am loading a swf (made with Flex 2) inside another flex
    application using the SWFLoader as:
    <mx:SWFLoader id="swfLoader1" source="Modules.swf"
    width="100%" height="100%"/>
    the swf ("Modules.swf' ) loads as expected, but form the
    parent movie I want to be able to control (change values of
    variables) parameters on the child swf (swfLoader1).
    When a click a button in the host movie I want to change the
    text on a label on the child movie, but it is not working for me.
    I have done this:
    when clicking the button call a function doStuff()
    public function doStuff():void
    var myMovie:* = swfLoader1.content;
    myMovie.mod1_desc.text = "blah blah";
    But it's not working. Then I tried
    public function init():void
    _loader = new Loader;
    extContent.addChild(_loader);
    _loader.contentLoaderInfo.addEventListener(Event.INIT,
    doStuff);
    _loader.load(new URLRequest("Modules.swf"));
    init() is called from creationComplete on the Application
    (MXML) and when the _loadr is loaded it calls the doStuff function
    above. Again is not working.
    Any suggestions on how to do this right?
    Gilbert

    Probably not.  Otherwise lots of great malware would be delivered via Flash.

  • How to start a process from AIR/Flex

    Hi people,
    I just wonder whether it's possible for a Flex/AIR
    application to start a program on the user's machine. I did browse
    the Livedocs but didn't find a solution there. Or is it not
    possible at all because of security implications?
    Best regards,
    Phil

    Hi,
    As of AIR 1.5, this is not possible. But you can have
    indirect workarounds (that complicates installation though) like
    CommandProxy
    http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-conc ept/
    or Merapi
    http://merapiproject.net/

Maybe you are looking for