Problem in Converting a Web App to a Desktop App

Hi all,
I am just new to Flex!
I have a "web application" and I want to convert it to an "Air application". I use the "Add/change project type" in the context menu. As I found here, this process rewrites the Appliaction tag with WindowedApplication in the mxml file.
I have a code like this:
   someMethod (Application.application.parameters.sessionId,Application.application.parameters.entryId, Application.application.parameters.projectId);
After converting, I get this error:
   "1120: Access of undefined property Application"
Then I replace the Application with WindowedApplication:
someMethod(WindowedApplication.application.parameters.sessionId,WindowedApplication.appli cation.parameters.entryId,WindowedApplication.application.parameters.projectId);
Then I get this error:
"1119: Access of possibly undefined property application through a reference with static type Class."
I have tried different ways, but no result. Would you please help me with this?
Thanks

Dear John,
Thanks for your helpful reply!
My SDK is 4.6.
I do this: "import   mx.core.FlexGlobas" and the IDE says it does not know the class.
Then I use this: "xmlns:mx="library://ns.adobe.com/flex/mx", instead of this: "xmlns:mx="http://www.adobe.com/2006/mxml",
but the IDE hangs and stops working!
Strange!

Similar Messages

  • Communication between a web app and a desktop app

    Hi,
    I would like to know how i can make a web application communicate with a desktop application (protocols,technologies, patterns�).
    And if I'm using a jsp web app and a java se app?
    Indeed, i have a desktop app. which use some information provided by an user via a web app,and the work performed by the desktop app cannot be performed inside a web container.
    Thanks.

    you mean it the other way around I think. You have a desktop app that needs to communicate with a web application.
    There are multiple ways.
    1) use plain old XML combined with URLConnection / HttpClient
    2) use XML-RPC
    3) use SOAP
    and there are more even. You will need to decide for yourself which technology can do what you require.

  • Can we login to web app from the desktop app?

    I have a link in a wing based desktop app. That link is related to ticket of some bug tracking tool.
    Is that possible to navigate to that page in a browser (with login) by clicking the link in desktop app?
    Thanks in advance,
    Bachchu
    Edited by: Bachchu on Mar 30, 2012 2:42 AM

    http://docs.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse%28java.net.URI%29 will open the System browser on the page designated by the specified URI argument.
    If your bug-tracking webapp enables to browse directly to the given page, you probably just have to put the right URI (maybe with app-specific additional arguments to support direct login).
    In most cases, the webapp will detect you're not logged, and first insert a login page then redirect you to the target page after login in.

  • Porting an iPhone app to a desktop app

    I am new to objective C and Cocoa, and yet have managed to develop a pretty complex app for the iPhone.
    Being lazy, I would like to also run this on a Mac Pro for instance, or other Mac computers/laptops.
    Is there a simple way for me to "port" my iPhone app to the desktop?
    Thanks.

    Well its not necessarily easy, and you also have to think about rewriting your views for Mac OS X, and not the iPhone, and also keep in mind you have to have a completely different interface in Mac OS X compared to the iPhone. Note that something complex in a mobile device might not be complex at all on a full desktop environment. But considering you have already created the application for the iPhone, you know where your headed and have your objects planned out, and also saying that you can program Mac in the same coding language, it should be easier than scratch right?

  • Openning a native web browser on Air desktop app

    I have developed an desktop air app with aptana studio.
    i want to attach a google adsense banner into my air app.
    but i got a problem that air app doesn't open a native webrowser.
    How can app open a native web browser when click in iframe?

    The iframe seems to load code from a remote location, and thus this code will be in a remote sandbox, not in the application sandbox, for obvious security reasons. This means that the code inside the iframe will net be able to use the air APIs.
    If you can control the content from the remote location, you can use the parent sandbox bridge (http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f08. html#WS5b3ccc516d4fbf351e63e3d118666ade46-7edd) to make a call from inside the iframe to the main application to open the browser window.
    Otherwise, I don't think there's a way for content loaded from a remote location to open native browser windows (this would be a security issue).

  • Problem in accessing a web service from a desktop client

    hello,
    i have deployed a webservice on JSAS 9.1 and i test it, its working fine.
    then i create a client by using netbeans IDE6.0. the client is a simple java class and i make it webservice client. then after compling i run the client it works fine.
    but when i try to run the .jar that the IDE has made after compling the client application, the program close on the statement where i made the Object of the service (i.e. CircleService service = new CircleService();)
    try{
    CircleService service = new CircleService();
    Circle port = service.getCirclePort();
    double r = 10.0;
    double arearesult = port.area(r);
    The webservice is properly deployed as i have tested it from the JSAS admin console.
    Can anybody tell me whats the problem? Is there any security issue or someother issue.
    null

    i have tried the stack trace in the catch but as i said on the statement where i made the object for the service the program just exits. it didn't return any exception or any output.
    thanx for refering me any answer.......

  • WEB authentication from a Desktop APP

    Hi everyone,
    does anyone know how to open a browser window from a desktop already logged in that webapplication. Something like MSN, Google Notifier, that you click on one of these and open your email inbox?
    For example, I have a simple desktop application, this application stays cheking if some there is some new messages in database, if I click on this application a browser window will open (already logged) in some kind of application. How can I pass this data or how can I do this?
    Thanks,
    Jorge Lu�s
    Natal, RN, Brasil
    Message was edited by:
    jlfcosta

    It depends. In detail, it depends on the server-side app. If you are just using someone else's webapp, ask the developer if such a mechanism is implemented, if it's your own webapp, feel free to implement such a functionality in any manner you are up for. An as simple as insecure solution would be adding the login information as parameters to the request URL.

  • CC Desktop App login problem

    Hi,
    I have migrated over to a new iMac and am having trouble with CC.
    I just get a blank desktop app screen with no chance to login.
    I have tried the items mentioned on other forums about deleting ppm.db files and deleting OOBE folders but neither have helped.
    I have also deleted all CC apps and the desktop app and still no luck.
    I have reinstalled the CC desktop app but still it is blank and does not allow a login.
    I\ve attached a pic of what i'm getting.
    Any help would be appreciated.
    Thanks
    Barry

    BLANK Cloud Screen http://forums.adobe.com/message/5484303
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html
    or
    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html

  • Creative Cloud Desktop App. No apps in window ?

    Hi,
    CC has been working fine since months but today I've got no apps in the "Apps" list
    of Adobe CC Desktop App but an error message :
    Download errror
    Contact customer support
    Download CC
    No answer to this problem on the following page :
    http://helpx.adobe.com/fr/creative-cloud/topics/getting-started.html
    After removing opm.db in OOBE folder and relauching Adobe CC : same problem
    After uninstall and new install of Adobe desktop app. : same problem.
    Thanks for your help.
    Claude MAC BURNIE
    <Removed by Moderator>

    Claude this topic was just discussed at http://forums.adobe.com/thread/1315769.

  • BB Desktop App Updater-malfunctioning

    Please Help me with this dear BB Community
    It took some niffty bit of working out to get this screen print to you because the page here couldn't hold the word docx.file I originally screen shot, this is a double screen shot for anyone wanting to know.
    First from the PC, then with the docx.file opened on the phone, bb screen shot app.
    In the screenshot below (follow the arrow) is a picture of two BlackBerry Desktop Icons in the Quick Launch Toolbar.
    I believe it is representing the updater, but when I go to open it up, nothing is happening and it doesn't open up into a dialogue box or anything.
    I do not know if it at work or not and have tried to find out.
    Is there a problem why it's shown itself here and am not able to start/stop or remind later why it is not opening for me.
    Please if someone could guide me with this, because if my bb desktop app needs updating, am quite happy to proceed but don't know where to start.
    Yours Sincerely
    JTValerie 
    JTValerie

    I need to add to this post an attachment with the dialogue report box that appeared.
    This dialogue box appears after opening my Windows Live Mail App and BlackBerry Desktop App shuts down while tethering.
    Rim.Desktop.exe. Application Error
    Application has generated an exception that could not be handled
    Process ID =0xefc (3836), Thread ID=0xf00 (3840)
    Click OK to terminate the application.
    Click CANCEL to debug the application
    Monday
    Dear BB Support Community
    I have been back at my home and I use my BB Torch to make a tether connection as I find that I get continuous connection better than my dongle.
    I know that the area am in does not have great reception as others to which I keep my provider informed of this.
    I use Windows Live for all my important mail but have found that when I open this App either at opening or while working my connection breaks and windows has to assess a report to deliver back to Microsoft company.
    I did receive updates for the desktop and I believe it's connection to my phone but this has not made any difference as this is the first time I have written to you using this PC I have also noticed that I have been receiving a notice twice to say My Request could Not Be Completed.
    I know the PC am using is an old XP Dell Dimension 4400, with 37GB Hard Drive Space with 11GB left and RAM of 512MB and the full Kaspersky Internet Security, why would my BB Desktop App stop working and disconnect.
    Please if someone can help please reply
    JTValerie

  • Updates aren't appearing in my Creative Cloud desktop app

    Hello!
    All my apps in the desktop app appear to be up to date even though a new version of Photoshop, Muse and Illustrator are available! I updated Photoshop from within Photoshop itself but haven't yet done so with the other two!
    Thankyou!
    Louisa

    HI,
    Please try quiting the creative cloud App and re-launch it.
    OR
    Please Update CC App from following link:
    http://www.adobe.com/appsmanager/index.html
    Do let us know if it works for you.
    Regards
    Pragya

  • Desktop app store app shows old priced apps

    App store app vs 1.0.2 shows older release date for a specific app with older higher price, where iTunes store has newer vs at lower price! Why doesn't desktop app store app reflect same newest vs's that iTunes does? I checked software updates and there is no updates found.
    (FYI, sending this question via iPhone and from it tried to update to show my desktop OS is now 10.6.8, but that choice is not in drop down list for OS, so added comment)

    Don't get confused:
    the iTunes App Store only has apps that are for Apple Mobile Devices (iPhone; iPod; iPad) running iOS as operating system.
    The Mac App Store (or Desktop App Store as you refered to) only has apps that are for Apple Mac computers running Mac OS X as operating systems.
    These apps are different from each other and not interchangeable.
    Stefan

  • BB Desktop App Closes Down

    Dear BB Support Community
    I have been back at my home and I use my BB Torch to make a tether connection as I find that I get continuous connection better than my dongle.
    I know that the area am in does not have great reception as others to which I keep my provider informed of this.
    I use Windows Live for all my important mail but have found that when I open this App either at opening or while working my connection breaks and windows has to assess a report to deliver back to Microsoft company.
    I did receive updates for the desktop and I believe it's connection to my phone but this has not made any difference as this is the first time I have written to you using this PC I have also noticed that I have been receiving a notice twice to say My Request could Not Be Completed.
    I know the PC am using is an old XP Dell Dimension 4400, with 37GB Hard Drive Space with 11GB left and RAM of 512MB and the full Kaspersky Internet Security, why would my BB Desktop App stop working and disconnect.
    Please if someone can help please reply
    jtv
    JTValerie

    I need to add to this post an attachment with the dialogue report box that appeared.
    This dialogue box appears after opening my Windows Live Mail App and BlackBerry Desktop App shuts down while tethering.
    Rim.Desktop.exe. Application Error
    Application has generated an exception that could not be handled
    Process ID =0xefc (3836), Thread ID=0xf00 (3840)
    Click OK to terminate the application.
    Click CANCEL to debug the application
    Monday
    Dear BB Support Community
    I have been back at my home and I use my BB Torch to make a tether connection as I find that I get continuous connection better than my dongle.
    I know that the area am in does not have great reception as others to which I keep my provider informed of this.
    I use Windows Live for all my important mail but have found that when I open this App either at opening or while working my connection breaks and windows has to assess a report to deliver back to Microsoft company.
    I did receive updates for the desktop and I believe it's connection to my phone but this has not made any difference as this is the first time I have written to you using this PC I have also noticed that I have been receiving a notice twice to say My Request could Not Be Completed.
    I know the PC am using is an old XP Dell Dimension 4400, with 37GB Hard Drive Space with 11GB left and RAM of 512MB and the full Kaspersky Internet Security, why would my BB Desktop App stop working and disconnect.
    Please if someone can help please reply
    JTValerie

  • Desktop apps moved and General settings app moved

    My 2 year old daughter loves the ipad and plays games, watches cartoons, etc. I set up restrictions under the general settings for her safety. Some how she or one of my family members moved or deleted some of the apps including general settings. How can I get my apps and general settings back? I scrolled and did not see the general settings app to reset desktop apps.  Thanks in advance.

    They can't be deleted, as they are native to iPad.  If you have scrolled to additional pages on your iPad and still can't find them, you can use the search function to find them, or you can connect to your laptop and find them in iTunes and move them where you want.  To find them using search, with your home screen open, hit the home button once and the search bar will appear.  Type in the name of the app and it will bring it up.

  • Converting the web app into AIR app leads errors

    Hi all,
    I am new to flex, i am trying to convert a web app into air app.
    I changes the tags and when i complie i get the below 3 error popups with dismis and continue buttons on the bottom right..
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Any help would be greatly appreciated.
    Thanks in advance.

    Thanks peter.
    commenting those lines avoids the first 2 errors but still i am getting the below errors.
    this is a microstrategy flex project.
    Error #1009: Cannot access a property or method of a null object reference.
    at com.microstrategy.web.vf.viewer::MstrWindowedApplication/handleCreationComplete()[Z:\Flex \projects\VisFrameworkAIR\src\com\microstrategy\web\vf\viewer\MstrWindowedApplication.as:9 9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]
    at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as :1169]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:718]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]

Maybe you are looking for