More AIR application in one?

Hi,
I made 2 (and i will make more 6) AIR application.
Can I somehow melt these to a single program?
I thing: I create a new application, I put a ViewStack to it's main form, and I match every program to every tab.
I need when I click in first tab, the first program is loading and start running.
When I click to second tab, the first program should closed, and the second program should load and start.
How can I make it?
thanks,
Gabor

You can create individual swf's for each of your application & create one single app where in you have  multiple tabs  each having a swf loader component to load respective swf of a particular app/functionality.
Tab1-> load swf1
Tab2 -> load swf2

Similar Messages

  • Identical flex-air applications do not compile

    I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.
    I have two identical basic flex air applications, but one will not compile, the other will.
    When I try to run the application from flex builder the first app runs fine while the second one doesn't.
    any ideas?
    http://www.andy-hayes.com/download/TestApp.zip
    http://www.andy-hayes.com/download/TestTransparentApplication.zip
    I've just about had enough of flex builder's bs. tbh.

    Hi Randy,<br /><br />This forum really isn't the place to try to get support on app compilation.  We try to keep discussion here to development of the SDK itself.  I'd suggest looking at the regular Flex forums or flexcoders and posting more details as to the error you're seeing.<br /><br />Matt<br /><br /><br />On 1/13/09 3:51 AM, "randy gland" <[email protected]> wrote:<br /><br />A new discussion was started by randy gland in<br /><br />Developers --<br />  Identical flex-air applications do not compile<br /><br />I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.<br /><br />I have two identical basic flex air applications, but one will not compile, the other will.<br /><br />When I try to run the application from flex builder the first app runs fine while the second one doesn't.<br /><br />any ideas?<br /><br />http://www.andy-hayes.com/download/TestApp.zip<br />http://www.andy-hayes.com/download/TestTransparentApplication.zip<br /><br />I've just about had enough of flex builder's bs. tbh.<br /><br />________________________________<br />View/reply at Identical flex-air applications do not compile <a href=http://www.adobeforums.com/webx?13@@.59b78044><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b78044!folder=.3c060fa3>  form to cancel your email subscription.

  • Is it possible to install multiple AIR applications from single install?

    I've been asked to find a way to install multiple air applications in one install. Is this possible, or am I going to have to use a 3rd party tool like InstallShield?

    I guess it's possible to create a meta-installer, which fires up the individual installers using the command line. It's not the ideal way to do this, but it might work.
    Sample code to use the command line from within Flex:
    <fx:Script>
    if(NativeProcess.isSupported)
        var file:File = File.desktopDirectory;
        file = file.resolvePath("secondAirProgram.air");
        var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
        nativeProcessStartupInfo.executable = file;
        var process:NativeProcess = new NativeProcess();
        process.start(nativeProcessStartupInfo);
    </fx:Script>

  • FLV Playback and Seekbar on different native windows in one Air application

    Hello Everyone.  I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it.  Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window.  Everything works just like it want it to except for one thing.  When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
    I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine.  It's only when they are separated and located on different stages that the seekbar acts up.  When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse.  When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it.  The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed.  Like I said, everything works great except for this and I have reached my limit with time spent on this issue.  Does anyone have any insight into this?
    Here's my code for the project.  This is my first AIR application, so I am coding it as I am learning, please be kind.
    import fl.video.*;
    import flash.display.*;
    import flash.desktop.*;
    import flash.events.*;
    import fl.video.MetadataEvent;
    import flash.geom.*;
    import flash.ui.Mouse;
    import flash.text.*;
    GLOBAL SETUP
    var flvControl:FLVPlayback;
    var MasterWindow = stage.nativeWindow;
    var screen1:Screen = Screen.screens[0];
    var screen2:Screen = Screen.screens[1];
    MASTER WINDOW SETUP
    this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
    transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
    if (Screen.screens.length > 1){
              createVideoBKG();
              createVideoPlayer();
    GENERAL FUNCTIONS
    //Maximize the initial screen
    function maximize(e:Event) {
              MasterWindow.x = screen1.bounds.left
              MasterWindow.maximize();
              MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
    //Hide Mouse Behind Video Window On Roll-Over
    function MouseRollOver(e:MouseEvent):void
              {          Mouse.hide()          }
    function MouseRollOut(e:MouseEvent):void
              {          Mouse.show()          }
    //Play-Pause Button Control
    function PlayButton(event:MouseEvent):void
                        if(transControl.playPauseButt2.currentFrame==1 ){
                                  transControl.playPauseButt2.gotoAndPlay(2);
                                  flvControl.play();
                        else {
                                  transControl.playPauseButt2.gotoAndPlay(1);
                                  flvControl.pause();
    function CloseWindow(e:MouseEvent):void
                        NativeApplication.nativeApplication.openedWindows[2].close();
    VIDEO BKG SETUP
    function createVideoBKG(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoBKG:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoBKG.x = screen2.bounds.left;
              videoBKG.maximize();
              chromeSetup(videoBKG);
              videoBKG.activate();
    //Video BKG Chrome Setup
    function chromeSetup(currentWindow):void {
              var vidBKG = new video_bkg();
              vidBKG.name = "video_bkg2";
              vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              currentWindow.stage.addChild(vidBKG);
    VIDEO Player SETUP
    function createVideoPlayer(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoPlayer:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoPlayer.x = screen2.bounds.left;
                        videoPlayer.y = screen2.bounds.top;
                        videoPlayer.width = screen2.bounds.width;
                        videoPlayer.height = screen2.bounds.height;
                        videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
              videoPlayer.alwaysInFront = true;
              var DVR = new DVR_Player();
              DVR.name = "DVR";
              DVR.x = 0;
              DVR.y = 0;
              DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              videoPlayer.stage.addChild(DVR);
                flvControl = DVR.display2;
              flvControl.width = 1280;
              flvControl.height = 720;
              flvControl.skin = null;
              flvControl.autoPlay=false;   
              flvControl.isLive=false;
              flvControl.fullScreenTakeOver = false;
              flvControl.align = VideoAlign.CENTER;
              flvControl.scaleMode = VideoScaleMode.NO_SCALE;
              flvControl.source = "olympics.f4v";
              flvControl.seekBar = transControl.seekbarContainer2.seeker;
              videoPlayer.activate();

    Does anyone have any ideas about this?

  • My hard drive has 70.93 GB available, yet when i have more than one internet tab open, i have to force quit google chrome because 'there is no more available application memory'. How can I solve this? I have a 2009 macbook pro running on 10.6.8.

    My hard drive has 70.93 GB available, yet when i have more than one internet tab open, i have to force quit google chrome because 'there is no more available application memory'. How can I solve this? I have a 2009 macbook pro running on 10.6.8. I have tried updating to mavericks through the mac app store but after it downloading for a day i got an error message saying there was a problem with the download. The same thing happens if i try to update itunes or the mac app store. After research, i have also tried repairing disk permissions, but every time they do get repaired the 'repair' button still appears, i'm not sure if it's because it was unable to repair the initial problems or if it just keeps detecting new ones.

    2 GBs is a minimum in which you can do many things, but not concurrently. Be very careful to not install third-party add-ons, limit the number of applications you choose to enter in Login Items, run as few applications concurrently as you demand.
    I would consider adding more RAM to your computer. Your model supports 8 GBs, so I would install that.

  • AIR Applications fail to install (Acer Aspire One, Linux)

    I've successfully installed the latest version of AIR for Linux on my Aspire One, although it took a few attempts.
    I am, however, not succeeding in installing any apps.
    1. My system believes that .air files are actually ZIP files and offers to unpack them: there seems to be nothing I can point them at to be opened by AIR itself.AIR does not appear in any menus, app lists etc
    2. If I go to a site that offers a "badge" install, the install system correctly recognises that AIR 1.5 is installed (checked box in the installer) and doesn't try to install it again. However, the apps do not install successfully - all fail with an Error #2004 and ask me to try again, which always fails.
    I can't seem to find any information whatsoever on this anywhere and I'm a bit surprised. It is surely not impossible to achieve, and I equally don't believe nobody else has had any trouble.
    Suggestions anyone?
    Thanks!
    --Richard E

    Right! "rpmbuild" was the answer to installing AIR successfully on this machine.
    Assuming that you have somewhat unlocked the machine as described in http://macles.blogspot.com/ and elsewhere, this simplest way of getting rpmbuild installed is to open a terminal and, as root, do "yum install rpm-build" - note the hyphen in the package name. If you aren't subscribed to a suitable repository, you can find it pretty easily with a Google for "fedora8 rpm-build".
    With rpm-build in place, AIR installed successfully using "./AdobeAIRInstaller.bin".
    ".air" applications are now correctly identified as belonging to AIR and badge installs also work.
    My intention in doing all this was to get a suitable Twitter etc app running on the machine, so I first tried the current version of Seesmic Desktop. It opened normally and allowed me to enter account details… and lo! it downloaded tweets! Unfortunately I never managed to get it to do that again. A bunch of small authorisation windows opened up, one for each installed account, requiring confirmation of password, and I couldn't enter anything in the field with the main window open. Minimising the main window I could now enter passwords, and OK dismissed the window, but it didn't seem to do any good. I have not seen a tweet since and all the panels in the main window are empty. A pity.
    My other favourite Twitter app is Tweetdeck - in fact I think it's superior to Seesmic Desktop if you just run a single Twitter account. Here the main window opens somewhat off-screen and blank (black) with control buttons at the top. Unfortunately although the buttons reveal their tooltips on mouseover, you can't actually access any of them, notably the account setup button. Thus the app is not usable.
    Third attempt was Twhirl, also from Seesmic (http://www.twhirl.org/). The version I had previously downloaded, 0.8.6, opened an account setup window but when you entered a password it just sat there. Luckily behind it was a window offering an update. Updating the package installed 0.9.2. This time the account window allowed the entering of an account name and password and duly displayed a window of tweets! And I was also able to write and send tweets successfully. Success! You can enter details for multiple accounts, and each has its own resizable window that contains messages pertaining to the account. Not as useful for me as Tweetdeck or Seesmic Desktop, but entirely usable (Desktop is actually a bit big for this machine's display anyway). However closing and reopening Twhirl I discovered that the application is not remembering passwords even when you tell it to - though it does remember the account names. Although I would like a fully-functioning app (and preferably one or both of the other two) this will do for the time being.
    I notice that issues regarding passwords and authorisation are the common factors in these misbehaviours: if anyone can shed any light on this, please let me know.
    Thanks to GauravKhurana for the key to solving this issue and the support in discovering it.
    --Richard E

  • One single click to install air application without air runtime or Internet ?

    Hi Guys
    we want to install a air application on the end-user's
    computer.but the problem is that the end-user's computer will not
    have AIR Runtime and do not connect to the Internet, and we want to
    user just one click can install the AIR Runtime and our air
    application.
    can anybody tell me how to do this ~~? thanks!

    i think this link will help you :)
    click
    here

  • I have started migration système to transfert from hold Macbook pro to New MacBook air application starter successfully for several hours. But since more than 3 hours I got the message transferring Time zone paramètres with time left less than 1 minute.

    Hi
    I have started migration système to transfert from hold Macbook pro to New MacBook air
    Application starter successfully for several hours.
    But since more than 3 hours I got the message "transferring Time zone paramètres " with time left less than 1 minute.
    Any recommendation or suggestion to solve it ?
    Many tanks

    If it has run for 3 hours it's probably done and you can quit Migration Assistant and reboot the new computer. In the future rather than using Migration Assistant I would recommend using Startup Assistant which tends to be a bit more reliable and does not create a new user account as MA does. If  you're interested here is an article explaining Setup Assistant tips.
    Roger

  • Add more windows buttons to AIR applications.

    Hello, I was downloading a song with the help of Internet Download Manager and saw this extra button on the border of it, is there any way to add  buttons like this on AIR applications?

    you might be able to do that using a 3rd party tool like zinc.

  • Deployment of an Adobe AIR application in an enterprise environment

    Dear Team members,
    first of all my apologies for posting this thread in more than one forum (see Installations Issues) but the argument is very important to us and I don't know where discuss it.
    I would like to post a question to you regarding deployment doubts that we are trying to address.
    My company is working on the new version of our primary application previously built as a J2EE application with some reporting functions with Flex, and we want to use AIR in order to leverage its possibilities:
    Seamless integration with existing application functionalities (implemented as standard JEE web application pages) thanks to the integrated HTML capabilities
    Improved integration of the user interface with the desktop
    Native processes to provide additional functionalities
    Our application is targeted to pharmaceutical industry, subject to FDA regulations, and it affects more than 5000 users for each customer, so we have some specific requirements affecting the deployment and distribution of the software:
    Allow to run multiple versions of the software on the same client machine (to support test and acceptance activities in addition to the production environment)
    Minimize the effort of the initial setup on each client
    Manage the version upgrades without manual activities on each client
    Keep the test/acceptance and production environments strictly aligned to improve effectiveness of formal validation (ideally, an application once validated should be transported in production without any source code modification, recompilation or repackaging)
    The current browser-based strategy is perfectly fit to these requirements, and in the shift towards a desktop-based strategy we need to continue satisfying them as much as possible. We evaluated the standard distribution strategy of Adobe AIR applications, and noticed several attention points in this scenario.
    The first issue we encountered is the back-end services endpoint discovery problem. Simply hardcoding a server URL in the packaged application could be a viable solution for public internet-accessible applications, but we need to support multiple customers in their intranet, and each one typically requires multiple environments for the application (acceptance, production, etc.). Maintaining dozens of different packages of the AIR application to support all these customer environments clearly is not the solution. Neither we want to force thousands of different users to enter and maintain the correct server location in their local preferences.
    So, we thought to use a badge hosted in the back-end application to run the local AIR application: using the underlying API, we could activate the application specifying also the network location of the back-end services. We could also rely on the badge to install the application (and the AIR runtime if necessary)… however, application packaged as native installers cannot be installed, upgraded, or launched by the badge API (and we need to package ours as native to use native processes).
    We also noticed that multiple versions of an AIR application cannot be installed side-by-side in a client machine, and that the installation and upgrade of the application can be performed only when the local user has administrative rights on the machine (using standard or native packages), forcing us to rely on external software distribution systems in some customer scenarios (introducing additional complexities in the release cycle).
    At this point, in our opinion the standard deployment strategies of Adobe AIR applications are unfit for enterprise environments. In the enterprise world, many of the applications have migrated to a completely browser-based solution, while others enhanced their client layer to comply with the requirements, for example installing only a thin portion of the client code and allowing to connect to multiple server versions/environments with it (e.g. the SAP GUI universal client). Without smarter deployment and distribution tools, AIR applications currently are a step back compared to web applications in terms of manageability.
    So, we are trying to develop a solution to address these problems, with some concepts similar to JStart: install on the client machine a launcher application capable of being activated from a web page, dynamically locate, download and run the actual client bytecode, transparently enforce client software updates, and supporting multiple applications (and multiple versions of the same application). However, we are facing many technical problems due to internal architecture of AIR and we already spent a considerable amount of effort trying to find a solution. We are now thinking to return on the choice of AIR, going back to Flex.
    What is the position of Adobe on this argument? Is Adobe aware of these issues and are there any plans on this topic? Any advice?
    Thank you in advance

    For those following along, Oliver Goldman will be answering this post in future articles on his blog.
    Many great comments and questions here. I’m working on some follow-up posts to address these; nothing I could cram into this comment field would really do your query justice. - Oliver Goldman
    Pursuit of Simplicity
    Chris

  • How to open and show a word, excel, ppt file in Adobe AIR application?

    Dear All,
    I have a requirement to open a MS- word/ Excel file in the AIR application.
    On click of a brows button a file reference box opens...on any file
    selection...it should open in the application itself...
    so plz let me know the solutions u have...

    Here is your basic issue: setting a classpath (and presumably compiling and executing a program) is one of the most basic, fundamental concepts in Java. I would advise you to follow JVerd and Annie's links and get started on a tutorial. Try writing a simple HelloWorld application before delving into POI. When you are more comfortable writing and compiling programs, and post a specific question, it will be much easier to help you.
    - Saish

  • Blue screen of death while installing any Adobe Air application

    Whenever I try to install an Air application I get a  Blue Screen and then my system restarts.
    I cannot even take a screenshot  of it.
    This happens with every air application I try to install.
    I also searched for the same on Adobe forums and found the same problem being faced by someone else.
    His problem was resolved by uninstalling a software named "Folder Lock".
    I searched my hard disk for this software and found one, so I deleted  that software (shift+delete) and removed all it's traces from registry  too but that still doesn't solved the problem.
    I also tried disabling the antivirus software and then install the air application but this also didn't helped.
    I was able to install air applications earlier, but now I can't.
    Anybody having same sort of problem. One colleague of mine is also having the same problem.
    Please help me out.
    My system's config is as follows:
    Windows XP Home sp3
    Flash Builder 4, with SDK 4.1, 3.5 installed in it.
    Adobe Air v 2.5
    1.5 GB RAM
    1.66 MHz processor
    Thanks

    Hello chris,
    Thank you for taking out your time to solve my problem.
    I did all the steps mentioned in that link i.e. installed folder lock and uninstalled it from it's options only.
    But it didn't solve my problem.
    Here is the screenshot of the Blue Screen Of Death that I was presented while the application was being installed.
    The BSOD appeared while the application install progress is shown to the end user.
    I hope this will help you get more insight of the issue.
    Thanks

  • AIR application with Flex 4.5 will not render content. What gives?

    OK,
    So I've upgraded to Flash Builder 4.5 Premium and I am unable to develop desktop AIR applications with the 4.5 Flex SDK. I start by simply creating a brand new AIR application using the default SDK (Flex 4.5). I set the title property on WindowedApplication and include a simple Label component. The project compiles fine but when I run the application all I see is the adl window in the dock but that's it. If I modify the Main-app.xml file to set the visible attribute to true, I will get a small window but there is no content although the output window shows the application swf being loaded. Checking the release version of the Main-app.xml file shows the correct path location to the swf.
    Here is what I've tried so far:
    Install/reinstall Flash Builder, 4+ times
    Downloaded the trial installation twice
    Downloaded the SDK's for 3.6, 4.1 and 4.5.0. I then copied each SDK folder and merged the AIR 2.6 SDK with each copy. So now I have 6 SDK versions; one pristine and the other with the AIR 2.6 SDK merged. I then added each SDK individually and created an AIR desktop application for each. Each and every one works fine with the exception of the two 4.5 SDK's. They will not render content.
    I created a simple creation complete handler for the application that declares a simple variable and assigns a value to it. I then put a break point on the assignment and it never gets caught. More evidence that the swf isn't getting loaded.
    The computer I'm running on is a Mac Book Pro with Snow Leopard 10.6.7. If I create a web project in each of the 6 SDK's, those will work just fine. What the heck is it with Flex 4.5 and the AIR 2.6 SDK on this machine? I have the AIR 2.6 runtime installed as well as a number of AIR applications that work just fine. I also tried my 4.5 test on my windows machine and that worked like a champ.
    I am completely out of ideas. Finding information has been difficult because everyone is all about mobile so searching for desktop issues is a losing battle. I realize this is a long email but I'm desperate for help. There must be someone out there that knows more about the low level interaction between Flex 4.5/AIR 2.6 and the OS.

    Well, I finally found the issue, a corrupted mm.cfg file in /Library/Application Support/Macromedia. I deleted the file and then adl ran just fine.

  • AIR runtime and AIR applications built using Captive Runtime still need Admin Privilege to Install

    I am working on a small project to install AIR application(native .exe & .dmg) with AIR runtime without needing the Administrator privilege so I used Captive runtime but the installation is still asking for admin privilege
    I bundled AIR application with AIR runtime using Captive runtime from flash builder 4.6, then I packaged this into a .MSI using Advanced Installer. Now when I install it for a user without admin privilege it prompts me for Admin credentials.
    Can you please tell me if
    1. I need AIR distribution license to install AIR runtime without Admin privilege
    2. Do I need a different installer
    3. Am I missing any step here
    Thank you

    If you're installing to a location where Windows requires elevated privileges, like Program Files, you'll need to have admin privileges to continue.  Are you using an AIR based native installer or have you taken the application with the captive runtime and rolled this up in your own installer?
    Here's a section from the Installation and deployment options in Adobe AIR 3 article that might help:
    Installation privileges
    When designing an installer, one has the option to choose from approaches that may or may not require administrative privilege. For example, a drag-and-drop install on Mac OS X requires no special privilege; users can always copy the application into their own application folders, for which they have the necessary permissions. On the other hand, if registry keys must be written to the machine-specific portion of the registry on Windows, installation of that application will require administrative privilege to do so.
    The two installer formats directly supported by AIR, AIR files and native installers, have always required administrative privilege. This was a design decision made in part to simplify the implementation of the AIR installers: If administrative privilege is assumed to be available, implementation is possible if the registry can be written to, and so on. It was also selected because, in many enterprises, this is the desired behavior: administrators can use the privilege requirement to gate software installation.
    All the same, there are scenarios where supporting installation without requiring administrative privileges is desirable, or even necessary. This can now be achieved using custom installers; you simply need to author an installer that operates correctly with only standard user privilege. In practice this can be easy to achieve; a simple install-by-copy to a writable location (that is, in the user's own folder) will suffice. Should you author a more complex installer, you should keep in mind that the addition of certain operations during the install process will in turn reintroduce the requirement for administrative privileges.

  • AIR Intrinsic Classes-Tried and Proven Approach to building AIR applications   in the Flash CS3 IDE

    Hi everyone,
    For all of you out there who would like to develop AIR
    applications
    from the Flash CS3 IDE but aren't sure how to get those pesky
    intrinsic
    classes working, I have a technique that you can work with to
    create
    your classes and make fully functional AIR applications.
    First of all, those solutions out there that list
    "intrinsic" functions
    in their class definitions won't work. That keyword has been
    taken out
    and simply won't work. The "native" keyword also doesn't work
    because
    Flash will reject it. The solution is to do dynamic name
    resolution at
    runtime to get all the classes you need.
    Here's a sample class that returns references to the "File",
    "FileStream", and "FileMode" classes:
    package com.adobe{
    import flash.utils.*;
    import flash.display.*;
    public class AIR extends MovieClip {
    public static function get File():Class {
    try {
    var classRef:*=getDefinitionByName('flash.filesystem.File');
    } catch (err:ReferenceError) {
    return (null);
    }//catch
    return (classRef);
    }//get File
    public static function get FileMode():Class {
    try {
    var
    classRef:*=getDefinitionByName('flash.filesystem.FileMode');
    } catch (err:ReferenceError) {
    return (null);
    }//catch
    return (classRef);
    }//get FileMode
    public static function get FileStream():Class {
    try {
    var
    classRef:*=getDefinitionByName('flash.filesystem.FileStream');
    } catch (err:ReferenceError) {
    return (null);
    }//catch
    return (classRef);
    }//get FileStream
    }//AIR class
    }//com.adobe package
    I've defined the package as com.adobe but you can call it
    whatever you
    like. You do, however, need to import "flash.utils.*" because
    this
    package contains the "getDefinitionByName" method. Here I'm
    also
    extending the MovieClip class so that I can use the extending
    class
    (shown next) as the main Document class in the Flash IDE.
    Again, this is
    entirely up to you. If you have another type of class that
    will extend
    this one, you can have this one extend Sprite, Math, or
    whatever else
    you need (or nothing if it's all the same to you).
    Now, in the extending class, the Document class of the FLA,
    here's the
    class that extends and uses it:
    package {
    import com.adobe.AIR;
    public class airtest extends AIR{
    public function airtest() {
    var field:TextField=new TextField();
    field.autoSize='left';
    this.addChild(field);
    field.text="Fileobject="+File;
    }//constructor
    }//airtest class
    }//package
    Here I'm just showing that the class actually exists but not
    doing much
    with it.
    If you run this in the Flash IDE, the text field will show
    "File
    object=null". This is because in the IDE, there really is no
    File
    object, it only exists when the SWF is running within the
    Integrated
    Runtime. However, when you run the SWF as an AIR application
    (using the
    adl.exe utility that comes with the SDK, for example), the
    text field
    will now show: "File object=[object File]". Using this
    reference, you
    can use all of the File methods directly (have a look here
    for all of
    them:
    http://livedocs.adobe.com/labs/flex/3/langref/flash/filesystem/File.html).
    For example, you can call:
    var appResource:File=File.applicationResourceDirectory;
    This particular method is static so you don't need an
    instance. If you
    do (such as when Flash tells you the property isn't static),
    simply
    create an instance like this:
    var fileInstace:File=new File();
    fileInstance.someMethod('abc'); //just an example...read the
    reference
    for actual function calls
    Because the getter function in the AIR class returns a Class
    reference,
    it allows you to perform all of these actions directly as
    though the
    File class is part of the built in class structure (which in
    the
    runtime, it is!).
    Using this technique, you can create references to literally
    *ALL* of
    the AIR classes and use them to build your AIR application.
    The beauty
    of this technique is its brevity. When you define the class
    reference,
    all of the methods and properties are automatically
    associated with it
    so you don't need reams of code to define each and every
    item.
    There's a bit more that can be done with this AIR class to
    make it
    friendlier and I'll be extending mine until all the AIR
    classes are
    available. If anyone's interested, feel free to drop me a
    line or drop
    by my site at
    http://www.baynewmedia.com
    where I'll be posting the
    completed class. I may also make it into a component if
    there's enough
    interest. To all of you who knew all this already, I hope I
    didn't waste
    your time.
    Happy coding,
    Patrick

    Wow, you're right. The content simply doesn't show up at all.
    No
    JavaScript or HTML parsing errors, apparently. But no IE7
    content.
    I'll definitely have to look into that. In the meantime, try
    FireFox :)
    I'm trying to develop a panel to output AIR applications from
    within the
    Flash IDE. GSkinner has one but I haven't been able to get it
    to work
    successfully. Mine has exported an AIR app already so that's
    a step in
    the right direction but JSFL is a tricky beast, especially
    when trying
    to integrate it using MMExecute strings.
    But, if you can, create AIR applications by hand. I haven't
    yet seen an
    application that allows you to change every single option
    like you can
    when you update the application.xml file yourself. Also, it's
    a great
    fallback skill to have.
    Let me know if you need some assistance with AIR exports.
    Once you've
    done it a couple of times, it becomes pretty straightforward.
    Patrick
    GWD wrote:
    > P.S. I've clicked on your link a few times over the last
    couple of days to
    > check it out but all I get is a black page with a BNM
    flash header and no way
    > to navigate to any content. Using IE7 if that's any
    help.
    >
    >
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

Maybe you are looking for

  • Unable to install

    Okay I've downloaded iTunes but can't seem to get it installed. I've tried deleting and redownloading & rebooting the computer but can't seem to get the install window to come up. I have an icon on the desktop for "setup" but I keep getting the windo

  • How to insert the summary symbol? (sigma, Σ)

    Hello SAP friends, can you please help me, how to enter the summary symbol (greek sigma, u03A3) into the smartform? We have non-unicode system with installed languages EN, DE and CS. Code pages 1100 and 1160. Thanks for help in advance. Cheers! - Ste

  • Creating hierarchy on measures

    Hello, I have a requirement where I need to drill-down or Hide/Expand on measure. Ex. Hierarchy expanded view. Sales Europe Sales USA Sales Asia Sales Total Hierarchy normal view. Sales Total In the above example I need to hide detail rows  (Sales Eu

  • Flex 4.1 TLF UndoManager question

    Hey All, I am working on a project using TLF 1.1 and Flex 4.1 and have run into a bit of a problem with the UndoManager's calls to undo(). The situation goes that we have a TextFlow that contains text that fills up the dimensions of the flow. We run

  • I lost my files from creative cloud today, any ideas? (this was the first time i was using CC cloud)

    is there any ways to recover them? they were three illustrator files.