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.

Similar Messages

  • New Adobe AIR  + Flex Application

    Hey Folks,
    We are excited about the launch of our app built on Adobe AIR. The Public Beta of it was launched yesterday.
    It's a backup software/service with free local backups to your disk/drives and online backups to the Amazon Cloud.
    Check it out at http://home.vembu.com/
    The UI is Flex-based and Adobe AIR
    -Dhamu

    Hi,
    Try setting myhtml.htmlText = "" before doing the removeAllChildren.

  • Adobe AIR  + Flex Application

    Hey Folks,
    We are excited about the launch of our app built on Adobe AIR. The Public Beta of it was launched yesterday.
    It's a backup software/service with free local backups to your disk/drives and online backups to the Amazon Cloud.
    Check it out at http://home.vembu.com/
    The UI is Flex-based and Adobe AIR
    -Dhamu

    Is there any other way to install PDT?
    Thanks.

  • Overlaying adobe air sdk in flash builder 4.6

    After overlaying adobe air sdk in flash builder 4.6 i am getting this error in my flex mobile project "Could not resolve <s:ViewNavigatorApplication> to a component implementation.". I have followed the steps mentioned on this link "http://rubberduckygames.com/how-to-overlay-abode-air-sdk-over-flex-sdk/". Can anyone please suggest me what i need to do in order to get this work.

    Finally Figure it out..
    geo = new Geolocation();
    geo.addEventListener(GeolocationEvent.UPDATE, onLocationUpdate);
    has to be executed before checking if it is muted.
    geo.addEventListener(GeolocationEvent.UPDATE, onLocationUpdate);
    Is what requests permissions from the phone to use the gps.
    Hope this saves someone alot of time.
    Tested With Flex 4.9.0 Air 3.8 Beta.

  • Error message generating Adobe Air output Unable to build a valid certificate chain for the signer

    error message generating Adobe Air Output: Unable to build a valid certificate chain for the signer.

    Are you talking about AIR Help produced by RoboHelp or an AIR application that you are creating?
    If the latter, please see the notice at http://forums.adobe.com/community/robohelp/airhelp
    If you are using RoboHelp, which version?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Connecting between two Adobe air mobile applications (On Android)

    Hi There,
    Does an Adobe AIR application can connect and pass parameters somehow (Directly or by http) with another android application?
    Can Adobe AIR mobile application open a listening socket?

    Um, I'm pretty sure this is wrong. You cannot use SocketServer on a mobile app platform for some stupid reason.
    From the doc
    "AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or AIR for TV devices"

  • Change Encore Project into a adobe air desktop application with password

    Good afternoon,
    I am trying to find a a way that i can change or inport a Encore project into a adobe air desktop application so that a can password protect it. I have a training simulator built in Encore that has a large number of menus and videos that i would like to tern into a tesk top application that i can password protect. Encore out puts this as a swf file. Is there any way to do this? I have bin looking around an the web and can't seem to find any information on this kind of problem. Any help would be greatly appreciated.
    Many thanks,
    Justin

    Hi Justin,
    ok, assuming that your external SWF tries to access some hosting application context (methods/properties) you could try:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="applicationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   private var loader:URLLoader = null;
                   protected function applicationCompleteHandler(event:FlexEvent):void
                        loader = new URLLoader();
                        loader.dataFormat = URLLoaderDataFormat.BINARY;
                        var url:String = "MyApplication.swf";
                        loader.load(new URLRequest(url));
                        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);                   
                   protected function loaderCompleteHandler(event:Event):void
                        // allow cross-scripting in case loaded content tries to access
                        // that context properties or methods
                        var context:LoaderContext = new LoaderContext();
                        context.allowCodeImport = true;
                        swfLoader.loaderContext = context;
                        swfLoader.load(loader.data);
                        cleanup();
                   protected function loaderErrorHandler(errorEvent:IOErrorEvent):void
                        mx.controls.Alert.show(errorEvent.text, "ERROR");
                        cleanup();
                   private function cleanup():void
                        loader.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.removeEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);
                        loader = null;
              ]]>
         </fx:Script>
         <!-- ui -->
         <s:SWFLoader width="100%" height="100%" id="swfLoader"/>
         <!-- -->
    </s:WindowedApplication>
    See that doc for some details "allowCodeImport":
    http://www.adobe.com/devnet/flashplayer/articles/fplayer10_1_air2_security_changes.html
    note: I'm not sure if that would 100% work. I don't know what Encore authored .swf really do, for that you could ask on Encore forum:
    http://forums.adobe.com/community/encore/encore_general
    regards,
    Peter

  • Adobe AIR Flash application - fill login and password

    Hi,
    I have Adobe AIR desktop application, which show login form. It is necessary to fill login and password after execute. I would like prepare external application in C# or in Adobe AIR Desktop. My application should executed Adobe AIR Desktop application and fill login and password to text input and press button "Login". I try to use Win32 Api but it is not possible to get handler on input elements. I am nowbie in AIR Desktop. It is possible to get handler to external Adobe AIR Flash application in Adobe AIR application and fill text? I try to find any function for communication with window of external application, but I can not find anything. Can you please help me?

    64bit support will be in the next (v. 16) sdk release and is currently available in beta:
    http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air16_flashplayer16_releasenot es.pdf

  • Is Adobe AIR/Flex good to begin in game creation ?

    Hi all !
    I have a little question, I want to begin to learn how to create little games (2D games first) (I'm more a Web/Server Side Programmer/Administrator than a Desktop pPogrammer), and I would like to know is Adobe AIR/Flex (without using the Flash IDE if possible) is good for that ?
    It looks a lot easer than the others ways (Java, C++, python), no needs to think in "threads","mutex",etc and other things like that, and the multimedia API help a lot for the video/sound side
    So, what about creating games with Adobe AIR ? What about performances ? Is it possible to create 3D games ?
    Thank you !

    Personally I'm still debating whether to start learning iPhone development or AIR at this particular point.
    At any rate, anything you can do in Flash you can do in Air, so I'd probably start with the Kongregate game creation tutorial. It's AS2 not AS3, but it will give you an idea what you can accomplish with a couple hours of development.
    No idea how good it is for 3D, but a lot of those "virtual tour" things are done in Flash. Probably not your best starting point if your plan is to make your own FPS but...

  • Adobe AIR.dll_unloaded When Flash Builder 4.6 closed.

    I found nothing about Adobe AIR.dll_unloaded by Google.

    I've been seeing what sounds like a similar problem (Windows application "BEX" error when attempting to close Flash Builder via its [X] icon).
    (Win 7 Enterprise, SP1, 64-bit, i5 + 8GB RAM), Flash Builder 4.6, Java 1.7.0_07)
    I tried the following:
    -- Launching Tour de Flex (from the task bar icon), and then updating AIR to the latest version
    -- Right-clicking on the Flash Builder task bar icon and then selecting "Run as Administrator"
    -- Right-clicking on the Flash Builder task bar icon and then selecting "Troubleshoot compatability", then applying the compatability fixes it suggested.
    Somewhere along the way, the problem went away. I then ran the compatability troubleshooter again and (I think) removed the compatability changes (since windows security was asking me whether I want to let the application update my computer every time I launched FlashBuilder--annoying!).
    The problem still appears to be fixed--but only with a whole ten minutes testing. I'll just have to see if the above is really a fix/work-around.

  • Problem with NetConnection in Adobe AIR(Flex) using Flash Media Server.

    Hi
    I am creating a small chat application using Flash Media server. I have already created all my user interface components in Flex(Adobe AIR).In this application rather than sending text messages user can also  send  file to another user in his friend list.
    problem what i am facing is, when i am sending file through FMS most of time it send successfully but for some files while sending  application loss netconnection.
    so i would like to know, rather than closing application what are other condition when FMS loses network connection?
    Any help would be appreciated .
    Thanks.

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR 3 application for iOS

    I just update my AIR project for iOS from Adobe AIR 2.6 to Adobe AIR 3.1 (that comes with Flash Builder 4.6), than I always got an exception when packaging my application:
    Error occurred while packaging the application:
        Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.Nsset.match(Nsset.java:263)
            at adobe.abc.Name.match(Name.java:555)
            at adobe.abc.Symtab.getEntry(Symtab.java:37)
            at adobe.abc.Symtab.get(Symtab.java:55)
            at adobe.abc.Type.setNeedsArgumentsUpInheritanceHierarchy(Type.java:343)
            at adobe.abc.Type.setNeedsArgumentsUptoRoot(Type.java:269)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:558)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:448)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:327)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
        Compilation failed while executing : ADT
    What is the cause of this error, so I can avoid it in my project before AIR team fix this?
    Thank you.

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

  • HELP! - Can't update Adobe Air Apps - Application Install Error

    I have several Adobe Air Apps on my Mac OSX (10.9.4) MackBook Pro. They won't update due to the following Install Error.
    "The application cannot be installed due to a certificate problem. The certificate does not match the installed application certificate, does not support application upgrades, or is invalid. Please contact the application author."
    Following the above instructions, I've been contacting the authors of my Adobe Air Apps and they are telling me that it is not their problem. The Apps should simply update without difficulty.
    I searched the "Google" and found no fix other than uninstall and reinstall Adobe Air. Did this and the problem persists.
    If you can help me get beyond this issue and back to productivity, I'd be very appreciative.
    Thanks!
    David

    I had a similar problem when trying to install Zinio.air. I have made it all work out. What i did was remove Adobe Air 15 entirely from the Utiliites and Library/ accounts and preferences. I then downloaded Adobe Air 13 and installed and then clicked on Zinio .air and it all installed ok. I also had to temporarily change security settings from Apple approved to Anywhere. All functioning now.

  • Adobe Air and export to Excel from jasperserver

    Hello,
    I had issues to display PDF's from Adobe Air when using
    jasperserver. As soon as I intalled Reader 9.0 it worked fine..Now
    I am having an issue with excel and csv and rtf files... When I
    click from my air application's and generate a report and export it
    to Xls or rtf or csv, opens a new Adobe air instance with a white
    blank screen.. Can you please please help me in this..
    Thanks in advance

    I am using Adobe Air which displays jasper server reports and
    the report generated gives an option to the user to open that
    report in different format like excel, rtf, csv formats.. and
    jasperserver has it's function to convert it approptaitely in
    different formats. It's just in Adobe air it doesn't work.. I
    tested my application with google chrome which has a webkit just
    like adobe air . So When I want to open the report in excel then it
    gives me an option either to open it or save it. But in Adobe Air
    it comes as a blank page.. not sure what's happening also as I
    dont' get any exception.. so not sure whether Adobe Air recognizes
    the other formats besides pdf... as for PDF I had to have adobe
    reader 9 installed and then it opens up.. If still I am not able to
    explain the scenario please call me at 314-799-3138 (USA). I am
    just stuck in this project.. And we have to use Adobe air as our
    application has to be desktop oriented.

  • Trouble Upgrading to Adobe Air 3.3.0.3650 from 1.5.3.9130

    Hi,
    I have been unable to upgrade Adobe Air from 1.5.3.9130 to 3.3.0.3650 (the latest).  My OS is Windows XP.  I have pasted some errors from the msi installer log and the air log.  I am not sure what is happening.  Can anyone tell me what is going on?
    From MSI Log:
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Now checking product {A2BCA9F1-566C-4805-97D1-7FDC93386723}
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Media is enabled for product.
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Trying source c:\docume~1\lara\locals~1\temp\airbc5.tmp\.
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2203 2: c:\docume~1\lara\locals~1\temp\airbc5.tmp\setup.msi 3: -2147287037
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 1706 2: -2147483647 3: setup.msi
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 1706 2:  3: setup.msi
    MSI (s) (4C:F0) [21:42:02:656]: SOURCEMGMT: Failed to resolve source
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 1714 2: Adobe AIR 3: 1612
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2205 2:  3: Error
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1714
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2205 2:  3: Error
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709
    MSI (s) (4C:F0) [21:42:02:656]: Product: Adobe AIR -- Error 1714. The older version of Adobe AIR cannot be removed.  Contact your technical support group.  System Error 1612.
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2205 2:  3: Error
    MSI (s) (4C:F0) [21:42:02:656]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 16
    Error 1714. The older version of Adobe AIR cannot be removed.  Contact your technical support group.  System Error 1612.
    Air Log:
    [2012-06-17:21:41:46] Runtime Installer begin with version 3.3.0.3650 on Windows XP x86
    [2012-06-17:21:41:46] Commandline is:
    [2012-06-17:21:41:46] Installed runtime (1.5.3.9130) located at c:\Program Files\Common Files\Adobe AIR
    [2012-06-17:21:41:54] Starting runtime update. Updating runtime from version 1.5.3.9130 to version 3.3.0.3650
    [2012-06-17:21:41:54] Installing msi at c:\docume~1\lara\locals~1\temp\airb41.tmp\setup.msi with guid {65CB4C08-C47B-4A7E-A6A4-50C06ADA5FC6}
    [2012-06-17:21:42:07] Error occurred during msi install operation; beginning rollback: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="1603" errorID=0]
    [2012-06-17:21:42:07] Rolling back install of c:\docume~1\lara\locals~1\temp\airb41.tmp\setup.msi
    [2012-06-17:21:42:07] Rollback complete
    [2012-06-17:21:42:07] Exiting due to error: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="1603" errorID=0]
    [2012-06-17:21:42:09] Runtime Installer end with exit code 7
    [2012-06-17:21:56:28] Runtime Installer begin with version 3.3.0.3650 on Windows XP x86
    [2012-06-17:21:56:28] Commandline is:
    [2012-06-17:21:56:28] Installed runtime (1.5.3.9130) located at c:\Program Files\Common Files\Adobe AIR

    I was able to fix my problems by using the Microsoft Fixit utility at
    http://support.microsoft.com/mats/Program_Install_and_Uninstall/en-us
    After uninstalling Adibe Air with the utility I was able to install the latest version without any problems. 
    I got the idea to do this from this post:
    http://forums.adobe.com/message/4490093#4490093

Maybe you are looking for

  • How to create a Service Graph on the contract.

    Hi. all I have been trying to adapt ACI to service provider but it is difficult to fit it to SP environment. Above all service graph hasn't been worked, even though i configured all based on a document regarding service graph. ** I can't understand w

  • Help Please! Restore issue

    Hello, I plugged my iphone 4 into my laptop yesterday and left it to do its thing. I came back, and the phone showed the itunes and cable symbol. I disconnected and reconnected many times, but each time the screen kept saying that the phone was in re

  • Icloud in iphoto not syncing

    Cannot get photos imported in iphoto on my mac desktop to sync to photostream. I can sync all my mobile devices but not within iphoto. Tried checking all the settings, and even added and deleted accounts to no avail. Once I share to photostream the p

  • Project Bug-tracking practices

    I am not sure this is the right place to ask this, but this is the place on the Web I feel most comfortable. Our company projects get larger and we get lot of user requests and problem issues. Currently we keep them in an MSAccess database in a singl

  • IPod classic problem.

    160gb ipod classic. i try to restore the ipod and it doesn't work, i have tried several times, no luck. When i connect the ipod to the pc, windows detects the ipod but only as "Removable Disk" and when i try to access it says "please insert disk into