Embedding local .swf file in AIR app

Hi all,
I want to include a small Google Maps .swf file as part of my overall HTML based AIR application and I was wondering whether anyone here has had any success in achieving this. Currently, my set up looks like this:
AIR xml file:
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/1.5">
    <id>gmaps</id>
    <filename>gmaps</filename>
    <version>0.1</version>
    <initialWindow>
        <title>gmaps2</title>
        <content>gmaps2.html</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <width>1200</width>
        <height>1000</height>
        <x>20</x>
        <y>20</y>
        <minimizable>true</minimizable>
        <maximizable>true</maximizable>
        <minSize>850 636</minSize>
        <resizable>true</resizable>
    </initialWindow>
My gmaps2.html file:
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>GMAPS</title>
    </head>
    <body>
        <div id="map_canvas" name="map_canvas">
            <object
              classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
              codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
              width="800px"
              height="600px">
                  <param name="movie" value="app:/flex/GMapsController.swf">
                  <param name="quality" value="high">
                  <param name="flashVars" value="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CC">
                  <embed
                    width="800px"
                    height="600px"
                    src="app:/flex/GMapsController.swf"
                    quality="high"
                    flashVars="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCC"
                    pluginspage="http://www.macromedia.com/go/getflashplayer"
                    type="application/x-shockwave-flash">
            </object>
          </div>
    </body>
</html>
My GMapsController.mxml file:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%"
    url="http://my.domain.com" key="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"/>
    <mx:Script>
        <![CDATA[
            import com.google.maps.LatLng;
            import com.google.maps.Map;
            import com.google.maps.MapEvent;
            import com.google.maps.MapType;
            private function onMapReady(event:Event):void {
                this.map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
            public function setLocation(lat:Number, long:Number):void {
        ]]>
    </mx:Script>
</mx:WindowedApplication>
When I open my air app, I don't get any error messages and it appears that the swf is not loaded at all.
When I switch my AIR .xml file to point to the GMapsController.swf file instead of the gmaps2.html file, it works perfectly - this gives me the impression that there's either:
1. Something wrong with including a WindowedApplication in a HTML file.
2. Something wrong with including a local .swf file in HTML based application.
I've tried referencing the .swf file in the html file from a remote server with the following:
  <div id="map_canvas" name="map_canvas">
             <object
               classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
               codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
               width="800px"
               height="600px">
                   <param name="movie" value="app:/flex/GMapsController.swf">
                   <param name="quality" value="high">
                   <param name="flashVars" value="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CC">
                   <embed
                     width="800px"
                     height="600px"
                     src="http://my.server.com/GMapsController.swf"
                     quality="high"
                     flashVars="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCC"
                     pluginspage="http://www.macromedia.com/go/getflashplayer"
                     type="application/x-shockwave-flash">
             </object>
           </div>
but no luck with that.
Any help would be greatly appreciated.
Thanks
Sean

Brandon,
Thanks for the link - I wasn't aware about the HTML Loader class and how it relates to loading Google Maps. I'm not using the HTML loader class though, so I'm not sure how it relates to the issue I'm having.
I'm currently following the advice outlined at http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.htm l where the SWF object is loaded through JavaScript, but I haven't had any luck with it yet. I'm pretty new to Flex/Flash/AIR applications - I'm starting to think it could be something simple wrong with my .mxml file:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%"
    url="http://my.server.com" key="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"/>
    <mx:Script>
        <![CDATA[
            import com.google.maps.LatLng;
            import com.google.maps.Map;
            import com.google.maps.MapEvent;
            import com.google.maps.MapType;
            private function onMapReady(event:Event):void {
                this.map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
            public function setLocation(lat:Number, long:Number):void {
        ]]>
    </mx:Script>
</mx:WindowedApplication>
I've tried creating a different .mxml file from the code outlined http://www.mikechambers.com/blog/2007/11/07/air-example-native-drag-and-drop/ (just as an example), just to make sure that the problems I'm having are not related in any way to the Google Maps API for Flash. Even with this second .mxml file, I still haven't had any luck in getting the swf content to load locally from the HTML file. However, if I set the content element in the AIR .xml file to look like this:
<content>DragAndDropExample.swf</content>
... it works as expected.
So, this has started me thinking that you cannot include a .swf file which has a base tag of WindowedApplication in a HTML based application? Can anyone confirm that this thinking is correct?
Has anyone here managed to load .swf content in a HTML based application using the code outlined at http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.htm l?
Thanks
Sean

Similar Messages

  • Embedding swf files in AIR app for ios

    Hi,
    After going through a lot of articles already available, I found answers with varying views on the following questions:-
    1) Can we embed swf files using the embed tag in air app for ios, with symbols exported ?
    Something like [Embed(source="someSWF",symbol="exportedSymbol")]
    and also something like [Embed(source="someSWF")].
    From what I understand, one can't embed swf's with actionscript byte code in them. So exporting symbols actually creates class linkages which leads to creation of abc. But I'm unsure on this because some sources say otherwise.
    2) Can we embed swf files using embed tag in air app for ios, without symbols exported ?
    Something like [Embed(source="someSWF")]
    and also something like [Embed(source="someSWF" mimeType = "application/octet-stream")]
    I read somewhere else, that you can actually embed symbols separately by providing symbol tag in embed tag but not entire swf (which leads to uncompiled actionscript error) but not sure about this as this is contradictory to finding #1.
    3) If #2 is possible, then do embedding two different swfs with same symbol names would cause a conflict and result in #3747 error ?
    Please note I am not asking about the Loader class here but using the Embed keyword for embedding swfs.
    Also do the results differ with AIRSDK 3.8 and 3.9 and using different swf-version in compiler flags ?
    In our application we started getting error #3747 in class creation of one of the embedded swfs (like new EmbeddedClass()) when we changed from swf-version 17 to 21 using AIRSDK 3.8. So was this error not there earlier or it was there but swf-version was suppressing it ?
    Any help is much appreciated.
    Thanks!

    I am fairly sure that the answer to your questions is: “no”.
    For embed to work the AIR app would have to be working in interpreter mode, and that can work for local testing, but can’t work for submitting apps. An easy change for you to do would be to use SWCs instead of Embed. Other than that you’re looking at Loader, but also a tricky command line build of the app.

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • Embedding a SWF file with an iFrame

    I wanted to embed an assessment in to one of my PDFs. I know I can't do it directly so I tried to create a small little Flex app that shows an iFrame (see here for the example). I then tried to insert this (as a SWF) in to my PDF file. I have a problem where when selected in the PDF it displays the SWF file, but not the linked URLs for the iFrames. Any ideas? how I might be able to get around this. Here is an example of what I was working on.
    Any help would be much appreciated.
    Noel

    hat do you mean with embedding a SWF file into another?
    you can embedd a SWF file in a HTML file. you can load a SWF
    file in another SWF file.
    but to embedd a SWF into another is not possible.

  • Differences between the 2 ways to play local swf files in flash player

    There are 2 ways to allow the flash player to play local swf files:
    Add the directory/file of the swf to the Global Flash Player Trust directory. http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7c95.html
    Add the directory/file of the swf to the Trusted Location Settings in the Local Settings Manager.http://help.adobe.com/en_US/FlashPlayer/LSM/WS6aa5ec234ff3f285139dc56112e3786b68c-7ff0.htm l#WS6aa5ec234ff3f285139dc56112e3786b68c-7fea
    Adobe doesn't mentioned in the document what's the differences between these 2 methods, and they look has the same effect. But when I'm doing it on OS X, Safari 6.1, the first method doesn't work (It was working when I was using Safari 6.0). And then I tried method 2, it works…
    So I'd like to ask what are the differences between these 2 methods to play local swf files?

    For playing local SWF files, Download the Macintosh Flash Player 11.9 Projector
    It's a standalone app. Just copy it to your Applications folder. Launch it, and drag the SWF to the Dock icon. It'll play.

  • Is this possible to package flash 8 swf file with AIR

    Hi All,
    Is this possible to package flash 8 swf file with AIR
    packager or load flash 8 swf file in AIR?
    Any info on AIR would be greatful.
    Thanks,
    Shailesh

    Yes.
    -ted

  • Problems running local swf files

    I recently developed problems running local swf files in
    Internet Explorer. This was working previously but recently it
    stopped working. Any ideas why the local files no longer work and
    how I can correct it?

    Hi Aquasue and welcome to our community
    In addition to the usual suspect fellow Adobe Community
    Expert Steve pointed out, the Flash player itself may be to blame.
    If you recently upgraded to the latest version (8 I believe) it
    imposes security particularly when using .SWFs locally.
    Click here to read a
    TechNote about it
    Cheers... Rick

  • Play local FLV files in AIR

    Hello,
    Here is another question regarding FLV files: I'm developing my AIR application using Dreamweaver. My app will need to play some local FLV files wich will be delivered together with the application (they are not online).
    I'm using the built in feature of Dreamwever, wich creates a small SWF called "FLVPlayer_Progressive.swf" when you insert an FLV in the page. If I preview the page in Firefox, everything works fine and the video is played, but if I preview it in AIR, there is just a blank box where the video should be.
    All the files are in the site's root folder and are included in the "AIR application settings" (FLVPlayer_Progressive.swf, Clear_Skin_2.swf, video.flv, index.html and application.xml).
    I tryed importing the video in Flash (through progressive download) and then creating a small SWF wich would work only as a player but it didn't work either. The only way it worked was if I actually embedded the video in the SWF (so there is no external file), but then I have some audio synchronization problems and I loose quality...
    So the problem seems to be that AIR doesn't allow the SWF file to access external files, even if they are in the same folder. Is this a bug or is there a workaroud?
    Regards,
    Manuel

    Well, I just spent a few hour trying to make this work, and still nothing... but I think I know now what the problem is.
    As you said, after putting an absolute path in (I used "C:\video.flv" for testing) it worked fine! So what I did was create a code that would get the absolute path to the video located in the app-storage folder. I came up with the following:
    var flvFile = air.File.applicationStorageDirectory.resolvePath("data/flv/video.flv");
    var flvFilePath = flvFile.nativePath;
    This code returns flvFilePath as "C:\Documents and Settings\Manuel\Application Data\Test.08196269638DC859464A7A09369FF97BAC18DD7A.1\Local Store\data\flv\video.flv".
    I tried suplying this path to the player but it didn't work. So I inserted a new player in Dreamweaver using the path above and I got a message saying that the path can't have any spaces. This seems to be the cause of all my problems! I tried substituting the spaces with "%20" but it didn't work either.
    Do you have any ideas?

  • How to use expansion files for AIR app (flash cs6) on Google Play Store

    I am currently working on an app that will undoubtedly end up bigger than the maximum size of 50 MB for the APK, and I have no clue how to add files to an expansion pack, how to load expansion pack, what files need to be in expansion pack, or even what an expansion pack does/how it works. If anyone can point me in the right direction, that would be great, I want to make an expansion pack now before I get even more files.

    Haven't had a need to do this for file size purposes but since we can now download and use SWFs with ABC, I just specify my external SWFs when I compile and once my app is run it downloads the SWFs (with a pretty preloader) before the user can do anything. I have my own servers so I believe that's all that Amazon Bucket is actually used for. That user didn't have their own web servers to serve up the SWF content from.
    Aside that, check the answer here. Google will turn any extra files uploaded for your app into OBB for you. You just upload the SWF:
    Create expansion file for AS3 android Air App Flash cs6 - Stack Overflow
    It also outlines if you need to upload multiple files then .zip them up and use an AS3 .zip library to extract the files.

  • How to correctly load an external swf file into iosAir app? I'm getting blank screen.

    So this code works flawlesly on Air for Android, it even works fine when I test the movie in Flash, but once I export it, I'm getting a blank screen. I made an swf with a square and withotu any code, and flash still fails to load it. It's weird cause everything works fine when I use the interpreter debugging option, but when I switch to standard debugging the blank screen appears on my ipad. I've read somewhere that it's caused by the way flash saves the link to external files. Thus after the file is compiled Flash fails to find the prefiously added files, which results in a blank screen. There's clearly something wrong with how the process of compiling the application.
    Tried this:
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var loader:Loader = new Loader();
    var link:URLRequest = new URLRequest("Untitled-1.swf");
    loader.load(link);
    addChild(loader);
    And this:
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest("Untitled-1.swf"));
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
    function loaded(event:Event):void {
    addChild(event.target.content);
    But nothing works. I'm still getting a blank screen. Is there any way to add the swf file manually into the descriptor file cause flash most likely messes it up? I don't really want to use through command line.

    Read this article, especially the bit about loadercontext and currentdomain:
    http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air- apps-on-ios/

  • Only want upgrade swf file in my app

    i have like 50 app compile from the same air file. But we
    compile the air file online, and every app has their own names like
    0345.air and 0450.air. if you see inside the file all them have
    same "father" swf. Now we have to upgrade them and we want to use
    only one air for upgrade all. But when the app upgraded, take the
    same name from the "father" swf, and if one user has 2 app like
    0345 and 0450.air installed after that only live him install one,
    because the another one is the same.
    Is posible to create an .air only with the swf file for
    upgrade? or can i donwload the swf file and put inside the system
    program files?
    thank u

    You need to package different apps.
    AIR files with different appId are different applications.
    They can updated from each other.
    Your AIR app. is not allowed to write the application
    directory. So you can't just replace the swf file.

  • Local SWF File locked after loading.

    I have 2 swf files... the main.swf loads the secondary.swf
    main.swf is and will run on my local computer in the
    standalone flash player.
    When main.swf loads secondary.swf all is well except
    secondary.swf is locked on my local file system, I cannot rename,
    delete, or overwrite it as long as main.swf is running.
    I would like main.swf to load secondary.swf and then close
    the file, seems simple!! however I have had no luck in
    succeeding....
    I am using the standard methods for loading URLRequest and
    Loader.
    Any ideas!? Thanks!

    SOLVED
    Eventually, I found out the reason of the error. It seems due to security reasons pathes including ".." (up directory) are considered as unsafe!
    http://www.adobe.com/devnet/air/articles/introduction_to_air_security.html
    Unfortunately, it's not mentioned explicitly that the usage of such notation causes the security error.
    The solution is to process pathes before pass them to URLRequest e.g. by using the following routine:
    private function canonicalize_path(fn: String): String
         var f: File = new File(fn);
         f.canonicalize();
         return f.nativePath;

  • What is the use of embedding Xcelsius Swf file in to Crysatl report?

    Hi all,
    I read some documents related to this integration, but still am in a confusion about the final purpose.
    Can any of you answer my question patiently?
    1.Is the embedded SWF acts just like a static object (just like a SWF)?
    2.If, I embed a swf file in CR 2008, Will both have any interactivity between those two?
    I mean, if I change the source data for CR , will the data SWF be changed? (If I have same columns like Country, Sales)
    3.How the interactivity will work..? From SWF to Crystal data OR Crystal data to SWF (as I asked above).
    4.I read BO doc with an example, but its not clear up to my doubts.
    It would be thank full if any of you spend your time for a clear description.
    Thank you,
    Krishna Pingali
    Dell India.

    Hi Mathew,
        The Convert to Formula in Excel Allows you to Convert you Embedded Bex Query into API Calls. This enables you to Better Format the Excel Output by allowing you to move your Cells Around.
    This helps because when you refresh you Query all the Changes you make will be maintained.
    [More Info on Working with Formula|http://help.sap.com/saphelp_nw70/helpdata/EN/d3/015369f54f4a0ca19b28c1b45acf00/content.htm]
    Hope this Helps
    Datta.

  • AS3 issue embedding AS2 .swf files

    Hi there,
    I'm attempting to create a menu navigation system with Flash/AS3 that opens up a series of older AS2 activities.
    At the moment I'm testing it with two buttons/two activities.
    The problem I'm having is that when I'm testing the navigation, the first button clicked will open its respective activity correctly, which can then be shut down using the original activity's exit button, and return to the two buttons on my AS3 menu. However, if I then select the other activity from the same screen, it won't load. I'm able to click the original activity again, and have it open, but not the new one.
    If I test the main flash navigation file again and click the other button first (that wasn't working), the other activity opens fine, and can be closed down. However the first button now won't open the activity. So both the buttons work (if they're the first ones clicked), but from then on, only the first button clicked works.
    In the debug panel, it looks as if the AS2 .swf files that I'm attempting to embed are themselves embedding a wrapper.swf file (with navigation buttons) as well as another sub set of shared .swf files for their own operation. Might it possible that these sub swf files aren't being unloaded properly when I switch between the main AS2 movies from my menu system?
    Is there a way to clear/unload everything that's been loaded (even resources loaded by the external files themselves - like a hard reset) between button presses?
    I have no access to the original AS2 code as this was done by another team years back.
    I'd be really grateful for any help or advice that anyone might be able to give.
    Thanks

    Just looking at the debugging panel, this is what I see when I try and run the program:
    Attempting to launch and connect to Player using URL /*****/*****/****.swf
    [SWF] Volumes:Data:Documents:*****:****:****:*****.swf - 876582 bytes after decompression
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_pr_qu_3:quiz.swf - 176016 bytes after decompression
    LocateFolders.enginesFolder(file:///*****/****/****/*****/F11_pr_qu_3/quiz.swf)
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_pr_qu_3:wrapper.swf - 481279 bytes after decompression
    ### Latest wrapper ###
    etc etc...
    Then follows a whole set of loading instructions and trace instructions put in the as2 swf which show XML files being loaded and the program launching. These must have been put in place by the previous programmer.
    When I click the exit button on the 'embedded' swf, the debugging panel shows things shutting down:
    ActivityToolbar clickQuit()
    Wrapper quitActivity()
    EndGame clear(false)
    Now when I click the second button, I should see a similar set of launching greetings etc. instead it bottles out at the following:
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_wb_fc_1:flashcards.swf - 94720 bytes after decompression
    LocateFolders.enginesFolder(file:///file:///*****/****/****/*****/F11_wb_fc_1/flashcards.s wf)
    And there it stops.
    If I restarted the program and pressed the second button first, it would show the flashcards.swf activity loading correctly, but would then refuse to load the first activity when I clicked on the button.

  • Windows Explorer Right Click - Open file in Air App

    I have an AIR App that I made to run on my desktop.  It is used for editing specifc XML files.  I want to know if its possible to setup so that I can right click on an XML file while browsing Windows Explorer and choose an option to "Open in (my AIR App)" ... that would lauch my AIR app and also open the xml.
    Right now, I have to launch my AIR app, click to open a file, and then browse for the file and select it.

    ok so after all of this time, i stumbled upon something that should solve my problem.  i created a new AIR file in flash and put a text field on the stage with the name "my_txt" then I just added this bit of script (below) .... then once I installed the air app, i opened a file into the app and the path to the file was displayed in the text box thats on the stage.  now i just have to use this path to actually open the file.
    import flash.events.InvokeEvent;
    NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, invoked);
    function invoked(evt:InvokeEvent):void{
              my_txt.text = String(evt.arguments[0]);

Maybe you are looking for

  • Closing the report background engine

    hi friends, i have tried using add_parameter function with ORACLE_SHUTDOWN=YES BUT THE Engine doesn't close in fact it shows the first report as in prview and the another report which I am trying to run in forms as waiting. is there any particular se

  • Ios problem with router 2600

    IP_ADDRESS: 10.10.10.1 > IP_SUBNET_MASK: 255.255.255.0 > DEFAULT_GATEWAY: 10.10.10.10 > TFTP_SERVER: 10.10.10.10 > TFTP_FILE: c2600-js-mz.122-15.T16.bin > .... > ARP: ADDRESS RESOLUTION  for 10.10.10.10 timed out > ARP failed with failure code 1. TFT

  • Yet again slower speeds

    router reset it self 3 times this morning and the speeds are still slow it's dropped from 1.2mb downstream to about 0.7mb. on bt option 3 only used 36GB usage so not a heavy user and the router has not been turned of for about a month.  IP profile 75

  • Airport Express connecting to an existing wired network

    Hello, I'm trying to connect an Airport Express unit to an existing wired network, can someone please help me to set this up or what I need to do? I originally connected the ethernet cable from the device (airport express) to the switch it was on but

  • Is there such a thing as "Attachments Preferences"

    When I attach a PDF file in Apple Mail(v3.5), the file may open in the document, or it may appear as an icon in the document. I would prefer it not open in the document, and that it moves as an attachment rather than as an insertion. Is there a way t