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

Similar Messages

  • Adobe AIR desktop app with an embedded runtime

    Hi,
    Does an Adobe AIR desktop app with an embedded runtime (standalone/portable)  that got published on Windows work on a Mac too?
    Thanks

    No, you need to compile a "bundle" with ADT on each platform. On Windows it creates a directory with an .exe and the AIR runtime. On OS X it creates a .app file.

  • Adobe AIR Desktop Application - HD Video Playback

    Hello everyone,
    I am new to the forums. Hope I am posting in the correct one.
    I have been doing AS3 development for last 2 years. But recently I had to implement a HD Video playback in windows. I was happy to know that StageVideo helps in that case. So I started coding and created projector (not with Adobe AIR , but to play with Flash StandAlone player). Was working great , playing 3840*1080 video with ease, awesome performance. But the problem came when I had to switch to fullscreen in that program. We were using 2 Monitors with extended desktop to give 3840x1080 resolution. The Flash could switch only to one screen. I leanred a new thing , Flash just can not switch fullscreen on two screens, be it standalone/web.
    Then I came across AIR , saw on some forums that with NativeWindow class you can pretty easily run a AIR app fullscreen on 2 different monitors. I thought awesome ! I installed Flash Develop and got started with AIR 3.7 SDK. when I ported my AS3 code for AIR app , came to know that the stageVideo does not work here (that was completely unexpected!). So Now I am confused which path to take as Flash can not go fullscreen on dual monitors, and AIR can not use stageVideo.
    Any help will be appriciated. Thanks in advance.
    Edit -
    The StageVideo Class seems available , but it returns the stage.stageVideos.length as 0. Attached a StageVideoAvailabiliityEvent to stage but seems it never is available. Any other way to play HD Video ? Native flash.media.Video is not able to handle such big video.
    Message was edited by: amitsarangi

    Hello everyone,
    I am new to the forums. Hope I am posting in the correct one.
    I have been doing AS3 development for last 2 years. But recently I had to implement a HD Video playback in windows. I was happy to know that StageVideo helps in that case. So I started coding and created projector (not with Adobe AIR , but to play with Flash StandAlone player). Was working great , playing 3840*1080 video with ease, awesome performance. But the problem came when I had to switch to fullscreen in that program. We were using 2 Monitors with extended desktop to give 3840x1080 resolution. The Flash could switch only to one screen. I leanred a new thing , Flash just can not switch fullscreen on two screens, be it standalone/web.
    Then I came across AIR , saw on some forums that with NativeWindow class you can pretty easily run a AIR app fullscreen on 2 different monitors. I thought awesome ! I installed Flash Develop and got started with AIR 3.7 SDK. when I ported my AS3 code for AIR app , came to know that the stageVideo does not work here (that was completely unexpected!). So Now I am confused which path to take as Flash can not go fullscreen on dual monitors, and AIR can not use stageVideo.
    Any help will be appriciated. Thanks in advance.
    Edit -
    The StageVideo Class seems available , but it returns the stage.stageVideos.length as 0. Attached a StageVideoAvailabiliityEvent to stage but seems it never is available. Any other way to play HD Video ? Native flash.media.Video is not able to handle such big video.
    Message was edited by: amitsarangi

  • What are the ways to integrate PayPal (or other monetizing service) into an Adobe AIR desktop app?

    Hey all
    I just finished publishing my AIR mobile app for iOS and Android, both featuring freemium style in-app purchasing/billing, for a single purpose only - opening the app to be full featured.
    Now the client wants a desktop version of the app. I need a way to monetize the same way: the user wants all the features - they click a button in the app, pay the 2 dollars, and now all the features are accessible.
    I think going out to PayPal, paying there and returning to the app would be best, but I cannot get the files I found here to work.
    Do you have any suggestions of a workflow with examples, or a service with AS3 support?
    thanx

    http://www.as3gamegears.com/monetization/as3-paypal-api/

  • Adobe AIR HTML Application with Window Shadow

    I have been building a HTML based AIR application that uses a transparent window. I want the window to have a drop-shadow effect which using a combination of JavaScript and CSS3 I make the shadow change depending on window focus.
    The application looks like the following (wireframe diagram):
    The red area is the <html> container itself. The blue box is the application content area (a simple <div>) and the black border with green shadow is a container <div> that is positioned absolute on the page. This black container is the application itself in my design.
    As you can see the black border (around the blue box) has a subtle green shadow in the outer edges of the <html> page.
    The problem is that because the <html> is the application in AIR it means that the application can never touch the edge of the screen due to the fact that AIR is treating the <html> as the application edge rather than the container <div> for the black border.
    Any ideas on how to get around this? The only thing I could think of was some crazy JavaScript that could offset the application somehow.... Anyone else had this problem?

    I use this function to center the window on the screen. Could I use any parts of this to perhaps always offset the window to handle the spacing around the chrome div?
    function centerWindow(instance){
                        //default bounds of nativeWindow
                        var applicationBounds = instance.nativeWindow.bounds;
                        //determine which screen we're located on
                        var screens = air.Screen.getScreensForRectangle(instance.nativeWindow.bounds);
                        var screenBounds = (screens.length > 0) ? screens[0].visibleBounds : air.Screen.mainScreen.visibleBounds;
                        //get initial position
                        x = (screenBounds.width - applicationBounds.width) / 2;
                        y = (screenBounds.height - applicationBounds.height) / 2;
                        //adjust for offset x or offset y (multi monitors)
                        x = screenBounds.x + x;
                        y = screenBounds.y + y;
                        instance.nativeWindow.x = x;
                        instance.nativeWindow.y = y;

  • 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

  • How to allow multiple instances of air desktop application

    hi all
    Adobe air desktop application only allow single instance of
    application. How to allow multiple instances like in other desktop
    applications?.
    thanks

    Thanks a lot morgair, i will check with exe4j tool.
    Actually the problem is, thread is not waiting for second request.
    thatswhat i thought it may because of thread.
    Thanks & Regards
    Sudha

  • Re: Flash Air desktop application

    Hi there,
    I have developed a flash air desktop application with the help of a flash programmer.
    Soon I will put it online for sale. How could I avoid illegal copy from spreading around?
    I need a lot of info regading this.
    Please help me with this issue.
    Many thanks

    A possible solution is described here:
         http://nsdevaraj.wordpress.com/2009/01/20/licensing-flex-air-application/
    HTH.

  • How do I get Adobe Air Desktop App to notify user that a URL text file has been updated?

    How do I get an Adobe Air Desktop App to notify user that a URLRequest ".txt" file has been updated? via blinking system tray icon or something.
    New to Air and need someone to point me in the right direction. I have been searching web for hours and probably not asking the question right.
    I have a very simple Desktop App that just loads a text file from a web location into a dynamic text field at a set timer. it just repeats this action on the timer. right now every 5 minutes
    What would the actionscript be to tell the Air App to look at the date or time stamp of the ".txt" file and notify user if its new?
    Thanks

    Try to follow below steps
    Click on Finder and then hold Command + Shift + G keys on your keypad
    It will open Go to folder window, type  exactly ~/Library and click on Go
    Then open Application Support > Adobe folders
    Trash AAMUpdater and OOBE folders.
    Now click on finder and hold Command + Shift + G keys on your keypad.
    This time type /Library and click on Go.
    Make sure to remove ~ symbol.
    Then open Application Support > Adobe folders.
    Trash AAMUpdater, Adobe Application manager, OOBE folders.
    Now Click on Finder and then hold Command + Shift + U keys on your keypad.
    It will open utilities folder.
    Trash Adobe Creative Cloud and Adobe Application Manager folders
    Download and Run CC cleaner tool from below link
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems/_jcr_conte nt/main-pars/accordion_container_1/accordion-par/accordion-item-1/accordion-item-par/proc e dure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleanerTool.zip
    Accept the license agreement and click on Adobe Application Manager
    Then click on clean up selected
    Close the window
    Download and install Creative Cloud App from below link
    Free Creative Cloud | Download Adobe Creative Cloud free trial

  • Sharing image URL on Twitter from Adobe AIR Desktop

    Hi All,
    Does anyone has worked with sharing image URL on Twitter from Adobe AIR Desktop. I am able to post data but with multiple libraries still not able to post images over twitter. Any help will be appreciated.
    Thanks,
    Sunil Rana

    Can you help ?
    I can't use scout because my other systems are 32 bit and it doesn't seem to be working with them.
    The problem seems to come from the fullscreen mode from adobe air since in windowed mode it runs smoothly (even on a 7 years old notebook).
    I even have 3 different rendering options in fullscreen and all of them are lagging (no scale, show all, exact fit). Not sure what the issue can be when even the no scale mode lags, so i'm guessing it's related to the fullscreen.interactive mode of air.
    edit: Or not.
    I managed to get it run smoothly by using CPU mode as renderer option for adobe air.
    Not sure what the issue was with direct but i will test it some more (on the other computers as well) and will get back to you.
    edit²: it only helped on one computer. The mac still has big slowdowns in fullscreen and the core2duo now has screen tearing with that option.
    edit^3: I tried using the fullScreenSourceRect on the stage for hardware scaling. It seems to run smoothly. Sadly, everything is a bit blurry with it and i can't chose other rendering options (no scale or exact fit), those don't work anymore with the sourcerect.
    I would like to be able to use the hardware scaling and change the aspect ratio, is that possible ?

  • My adobe air desktop app keeps trying to update unsuccessfully

    my free adobe air desktop app keeps trying to update unsuccessfully
    whatever shall i do?
    thanks
    system
    Hardware Overview:
      Model Name: Mac Pro
      Model Identifier: MacPro3,1
      Processor Name: Quad-Core Intel Xeon
      Processor Speed: 2.8 GHz
      Number Of Processors: 2
      Total Number Of Cores: 8
      L2 Cache (per processor): 12 MB
      Memory: 10 GB

    Hello,
    I'm sorry you're having trouble. I'm fairly certain this problem is occurring on the Air side and not on the Acrobat.com side of things. Please try reposting your question in the Air forums.
    Good luck!
    Michelle

  • 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.

  • Convert Air Desktop Application to Android apk Please help!

    I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.
    Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

    Please see adt -package command here
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
    in this example icons folder is packaged along with swf and app xml.
    What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.
    In this case you will find all mp3 and image files in same directory as your swf when you run on android.
    Make sure you use app:// urls for accessing those files

  • How to load a FLEX application in an AIR desktop application.

    I am creating an AIR desktop application (mx:WindowedApplication). I need to load another remote FLEX application (mx:Application) inside my AIR application.Is it possible ? If then ,please mention how to achieve this ..

    If it is bundled with the air app, then it's as easy as using the SWFLoader class.
    If it's loading from a remote host, you need to load it into your app as a ByteArray first.
    More info here: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
    The example is for Modules, but the principal is the same I believe.

  • Adobe Story Desktop Application Won't Install

    Hi,
    I just recently subscribed to the Adobe Creative Cloud CS6. I'm really interested in owning the Adobe Story desktop application and have attempted to download it by clicking the Install Desktop Application button. Unfortunately, all attempts have failed.
    Upon clicking the Install button, I receive a pop-up explaining that I have to install Adobe Air for Story to work. If I click Yes, the window will then say the installation has failed and will ask to Retry. If I do this, the error repeats. How can I get this error to stop appearing?
    Please note I have the latest version of Adobe Air already installed on my computer.

    Hi CBWriter,
    Adobe Story went paid in May this year and we have now two flavours of Story - Adobe Story Free and Adobe Story Plus. The Desktop application is available to Adobe Story Plus users who value the offline capability of the product. Adobe Story Free users can continue to use the web version of Adobe Story.
      We have upgraded your account to Adobe Story Plus for one day. Please login to Story and download/install the AIR application so that you can access your offline data and take them online.
    Thanks
    Aurobinda

Maybe you are looking for

  • Day View in calendar Component showing the next at times not everytime!

    Day View in calendar Component showing the next at times not everytime! My question is when we go to Day view which day does it show? is it Server day where the application reside or the machine time zone day ?

  • How to restore App Store on 10.7.5 ?

    I've damaged the App Store and now it doesn't work. I believe I did it by deleting the languages that I didn't use on my mac. And probably I did something wrong. I'm using Mac OS 10.7.5. Any ideas how can I restore App Store and reinstall it? Thanks

  • Splitting the items in Invoice VF01

    Hi Friends, Is there any user exit or any other method, where I can go and split the items in the voice.I need to split the invoice on the quantity. Regards Elini.P

  • [Z68MA-ED55 (B3)] BETA UEFI Version [E7676IMS.Axx/Bxx Releases]

    E7676IMS.A70 ==> E7676IMS.A87 1. Fix USB3.0 M-Flash Fail Issue. 2. Fixed S3/S4/S5 resume will hang FF issue  when  set Power management to power saver mode. 3. Fixed the pcie gen2 speed change to pcie gen1 issue  when the S3 resume after. 4. Fixed Po

  • Loading ASCII files - too slow

    I have script for loading ASCII file into database. First I use SQL loader to load data into temporary tables. After that I start procedure which does some linking of loaded data which is nessesary. After that I move data from temp tables to main tab