CSHARP and AIR

Hello World!
I have built a csharp/flex application which is really cool!  I really need csharp to connect to another system but that is a whole other story(just know that i must have csharp)....
Initially I built the csharp project with a flash control inside of a window, then I built the flex side project as a flash (web application).  csharp and flash talk and play nice using fscommand.  Dude Sweet!
Then I wanted to drag stuff (i.e. pictures, documents, and etc) into my flex application.  ... So i then converted my flash project into AIR, built my drag and drop, and all was cool.  But when I build, I get a .swf and a executable.  The generated exe file runs fine and i can see everything.  But I cant take the swf and put it into my csharp flash control anymore.
I get these errors:
VerifyError: Error #1014: Class flash.events::NativeWindowBoundsEvent could not be found.
ReferenceError: Error #1065: Variable _macCloseButtonStyle__embed_css_mac_close_up_png_502016742 is not defined.
ReferenceError: Error #1065: Variable _AdvancedDataGridStyle__embed_css_Assets_swf_TreeNodeIcon_1149873145 is not defined.
ReferenceError: Error #1065: Variable WindowMinimizeButtonSkin_macMinDownSkin is not defined.
ReferenceError: Error #1065: Variable _winMinButtonStyle__embed_css_win_min_dis_png_1242201614 is not defined.
ReferenceError: Error #1065: Variable _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_2096733126 is not defined.
...blah...blah...blah
I'm guessing that the executable has extra AIR libraries that flash it did not have before....So, how can I connect AIR with my csharp?

To embed a SWF in a .NET application as you've been doing, you're using the Flash Player ActiveX control hosted in your application.
There is no AIR equivalent to the Flash Player ActiveX control, and (as you guessed) the AIR-only apis are not available in Flash Player.
AIR is designed for creating standalone applications, not user interfaces hosted in other applications. Some people create AIR applications that communicate with other non-AIR code (such as Java or .NET code) but in that case the application is architected somewhat differently. Instead of it being a .NET application that includes a Flash Player (or AIR) control, the whole thing runs as two separate applications -- the AIR application that provides the user interface and probably as much functionality as possible, with the Java/.NET application running in the background (in a way that's usually described as a "server" or "service"). Communication between them can happen in various ways, but most commonly the server app runs a socket server and the AIR app communicates to the server app using the Socket class.
One approach for doing this with .NET is Mike Chambers' CommandProxy project:
http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-conc ept/
For Java there's the Merapi project, which has been in development longer and is more polished -- but of course you've made it clear that you need C# =)
Unfortunately this architecture complicates things somewhat because it means you have to have a way to install both apps together, and run both apps together. I believe the typical approach is to have the executable that the user actually runs be the server part, and have it load the AIR app as soon as it's executed. (Or alternatively, to have a third bootstrapper application that is the one the user runs, that loads both the server and the AIR UI app.)
Since the early days of AIR one of the most vocal feature requests has been the ability to call native code or other processes from within an AIR app., and you can rest assured that this will be implemented some day. But as things stand in the current version of AIR, the approach I described above is how other developers implement this kind of application.
As a complete side note, if you are using the Flash Player ActiveX control in a .NET app, you can use the ExternalInterface class rather than fscommand. The documentation includes a sample app demonstrating using the ExternalInterface class to embed a SWF UI in a C# app.

Similar Messages

  • The difference between AIR-ANT5135D-R and AIR-ANT5135DB-R

    Hi,
    Anyone know what is the difference between AIR-ANT5135D-R and  AIR-ANT5135DB-R ?
    From the dynamic configuration tools for 1252 and 1242, AIR-ANT2422DB-R is inside one of the antenna option.
    However, I can't find it in the "Cisco Aironet Antennas and Accessories Reference  Guide"
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/product_data_sheet09186a008008883b.html
    Inside the document there is only AIR-ANT5135D-R.
    likewise for the 2.4 GHz,  AIR-ANT2422DB-R is inside the dynamic configuration tools and not inside "Cisco Aironet Antennas and Accessories Reference  Guide"
    Any help would be appreciated
    Thanks,
    Richard

    Found the difference, AIR-ANT5135DB-R and       AIR-ANT2422DB-R are  non-articulating antennas.
    Thanks!
    Richard

  • Purchase Order Dashboard using Adobe Flex and AIR

    Hi ,
      I have written a AIR apps for displaying the Purchase Order using OPen source Flex and AIR making Web Service calls to our SAP R3  6.20 Backend System . If anybody would be interested in taking a look at it and expanding the apps please free to post at those forum with the your email ID . I can send the AIR apps along with the source code .
    Thnks
    V

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet.

    Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet and it could not detect the the ip address after i input the correct address on "Connect to Server" window. Please help! Urgent! Thanks

    I did not say it is not possible.
    I said if your company networks are monopolizing both ports, you should talk to them about what options are available.
    Maybe you can get the company Intranet over wireless if you change some configuration items such as Subnet Mask.
    Maybe you can get on the Internet over Ethernet.
    You really need to ask them, and do not let them blow you off because you have a Mac. If they balk, ask them how it would be done on a PC (becasue it will be the same on a Mac).

  • Iphoto continually quit on MBP and Air, now won't reinstall on Air

    I have a MBP and Air with ilife 08 and all the latest apple software updates on each.
    For about three weeks iphoto has been shutting down on either computer whenever i email a photo, or download and save a photo from the internet.
    Today i removed iphoto from both computers and reinstalled.
    After reinstalling my MBP it seemed to work fine, only shutting down once in about 15 emailed photos (as compared to every time previosuly). Thinking all was well (or at least acceptible) I went ahead and installed the three updates from apple via the software updater in system preferences. After i installed the automatic updates and used iphoto again, it shut down every time i emailed a photo. At that point I uninstalled the iphoto and reinstalled it without the latest apple updates. It seems to work fine now.
    So, I tried doing the same thing on my air, but now iphoto won't reinstall, even though each time at the end of the process it tells me the install was successful. The first two times I only uninstalled (dragged to trash) iphoto, but the next two times i also dumped garageband, iweb, and idvd. Each time these programs were reinstalled, but not iphoto. When I search on iphoto no results.
    Any ideas on how to get iphoto back on my air? I am using remote disk and have never had any previous problems with it, and obviously the other programs reinstalled fine.
    Thoughts on why iphoto won't work with the latest apple updates installed?

    fishbio:
    Before reinstalling iPhoto make sure you've deleted all files with iPhoto in the file name that reside in the HD/Library/Receipts folder. Otherwise the installer will think that iPhoto already exists and doesn't need to install.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • I downloaded the iOS7 system and lost connectivity to my in-ceiling speakers and Air Play. How do I get it back?

    I downloaded the iOS7 system and lost connectivity to my in-ceiling speakers and Air Play. How do I get it back?

    Use the iOS7 Control Center to select AirPlay, and then, choose the appropriate AirPlay speaker to stream to.

  • What is best blue tooth presenter for macbook pro and air

    What is best Blue Tooth presenter for MacBook Pro and Air?

    You got lots of choices such as:
    WD Studio
    http://www.wdc.com/en/products/products.aspx?id=200
    WD Studio 2
    http://www.wdc.com/en/products/products.aspx?id=210
    WD My Book
    http://www.wdc.com/en/products/products.aspx?id=250
    Lacie:
    http://www.lacie.com/dk/products/range.htm?id=10007
    http://www.lacie.com/dk/products/range.htm?id=10036
    The are tons of external storage for mac out there but these are a few of them...
    I personally like the WD Studio 2 and the LaCie 2big Network 2

  • My iPhone5 is my wifi hot spot for my mac mini computer and iPad. I live in a rural area. Will this be sufficient to run apple tv and air play?

    My iPhone5 is my wifi hot spot for my mac minim computer and iPad. I live in a rural area with no other options. Will this be sufficient to run Apple TV and air play?

    If you are intending using your hot spot to download movies for the Apple TV, you'll very quickly eat through your data allowance.

  • I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    On your Macs open System Preferences > iCloud
    Deselect the box next to Documents & Data, then reselect that box then restart your Macs.
    On the iPhone tap Settings > iCloud. Switch Documents & Data off then back on then reset the iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    See if you can open the files now without opening on the iPhone first.

  • Using project libraries for both web-based and AIR applications

    I need to develop substantial code to build both web-based and AIR applications.  Yes, they will have different features, especially when it comes to accessing files on the local file system.
    However, 98% of the code can be shared.
    I want to use a project library that can be used for both types of applications. Maybe using conditional compile when required to not use AIR API's in a web-based application.
    I found this (somewhat old) warning:
    Include Adobe AIR libraries Select this option if your library must use AIR features, such as access to the AIR APIs. Flex Builder then changes the library path of this new Flex Library project so that it includes airglobal.swc and airframework.swc. Web-based Flex projects cannot use this library.
    Do not select this option if you are writing a generic library intended to be used only in a web-based Flex application, or in either a web-based or AIR-based application.
    Does this apply to Flash Builder 4.5?

    I have found a workaround, but it's quite clumsy, involving a transfer vector (in old-fashioned terms) in the main application for each function in the AIR library.
    I have created a library for AIR classes only (fourdtext.fileOperations is there). 
    The AIR application provides "Function" values that any other code in the general-purpose libraries can use.
    It works, but it's nasty.
    In Main.mxml:
    import com.fourdtext.fileOperations.AxFiles;
    // this gets a list of native path strings, from and array of "File" objects
    public var AxGetListFunction:Function = AxGetListRedirect;
    private function AxGetListRedirect(list:Array):Vector.<String>{
        return AxFiles.AxGetList(list);
    In general-purpose code:
    var list:Array = event.dragSource.dataForFormat("air:file list") as Array;
    var AxGetList:Function = FlexGlobals.topLevelApplication.AxGetListFunction;
    listFiles = AxGetList(list);

  • Sharing code between Flex and AIR versions using library project

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

  • Pro and air's led display

    Hi, Guys
    Is there anybody know what is difference between pro's led display and air's?
    why air's looks brighter than pro's? since apple upgraded pro on Tuesday, is it going to get exactly same display as air's?
    Thanks

    Keep in mind, guys, that the larger the display, the tougher it is to light both uniformly and brightly. You have a larger area to shine light out of.
    The MacBook Air is a much smaller screen than the 17" MBP and significantly smaller than the 15.4" MBP. All three notebooks use LED backlit screens, but you would expect the smaller screen to be slightly brighter. Achieving the same brightness with the larger screens would require additional LEDs, which would burn more power.
    Having said all of that, I find that the brightness on the 15.4 MBP is very very good. Unless I'm outside, I have to turn it down a few pegs to save my retinas!

  • Flex SDK and AIR Runtime issue

    Hello,
    Please somebody answer my Question.i.e,
    For Instance, I downloaded an Application(AIR application) which is developed with Flex SDK 3.0 and AIR Runtime version 2.5. But I have AIR Runtime version 2.0 installed in my machine. What will happen if i install the application? whether it will be installed completely or Any warning will be shown up regarding the AIR Runtime discrepancies? or will the application be obsolete even after it's successful installation?
    Did anyone experience it?
    Regards,
    venks.

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Adobe Reader 9.2 and AIR hotfix

    I'm running into an Adobe reader 9.2 and AIR compatibility problem. I developed an AIR App with
    browser panel that invokes a PDF doc using Adobe Reader. When I update to the latest Adobe
    Reader (9.2), I start having errors with a dialog saying errors related to the CoolType.dll.
    I found this in one of the devnet articles which mentions a hotfix. Where do I get it??
    I cannot find it anywhere on the Adobe site.
    http://www.adobe.com/devnet/reader/articles/reader_compatibility/readercomp_overview.pdf
    AIR
    AIR applications are unable to load a PDF using Reader 9.2
    AIR applications that load a PDF in the broswer will no longer work with Adobe Reader 9.2.
    Recommended action: This issue will be addressed in an upcoming patch release to Reader. For
    enterprises which can control the deployment of Reader, a hotfix is available from Adobe Support.
    Thanks in advance,
    Eddy.

    As special service for you I just downloaded and installed the Reader V9.2,
    opened the Reader via activex embedde into a small GUI
    and loaded via src a testfile.
    Then printed the file (manual via menuitems/print icon) with some different settings.
    All works fine. Did you try other manual actions, like copy to clip, rotate, ...
    Maybe it is a problem with your GUI.
    Try to start embedded using IE as GUI or simple try if you can print a pdf opend via IE.
    IE use the same activex as you for you GUI.
    HTH, Reinhard

Maybe you are looking for