Textinput issue from external file in AIR application (Is it bcz of mask?)

Hi
I tried to load external swf in TabNavigator. In this file, I have some input text.
I can key in external file's text input after load. But i got  "Security Sandbox Violation" error.
Here is the code
<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">
<mx:TabNavigator width="100%" height="100%">
                    <mx:Canvas>
                                   <s:SWFLoader id="_swfLoader" source="C:\Users\bala\Desktop\TextSWF.swf"/>
                    </mx:Canvas>
</mx:TabNavigator>
</s:WindowedApplication>
To solve security issue, i used load swf as bytes. After load there is no security issues, but i cannot key in external file's text input.
Here is the code,
<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">
<fx:Script>
                    <![CDATA[
                              protected function CreationCompleteHandler(event:FlexEvent):void
                                        var loader:URLLoader=new URLLoader();
                                        loader.dataFormat=URLLoaderDataFormat.BINARY;
                                        loader.addEventListener(Event.COMPLETE, onSWFLoaded);
                                        loader.load(new URLRequest("C:\\Users\\bala\\Desktop\\TextSWF.swf"));
                              private function onSWFLoaded(e:Event):void {
                                        var loader:URLLoader=URLLoader(e.target);
                                        loader.removeEventListener(Event.COMPLETE, onSWFLoaded);
                                        var context:LoaderContext=new LoaderContext(false, new ApplicationDomain());
                                        context.allowLoadBytesCodeExecution=true;
                                        _swfLoader.loaderContext = context;
                                        _swfLoader.load(loader.data);
                    ]]>
          </fx:Script>
<mx:TabNavigator width="100%" height="100%">
          <mx:Canvas>
                    <s:SWFLoader id="_swfLoader" />
          </mx:Canvas>
</mx:TabNavigator>
</s:WindowedApplication>
How can solve this issue. Is there anything to do with css?
Is tabnavigator conatin default mask? How can user edit masked textinput without embed font?
Thanks
Regards
Balasubramaniyan.S

Thanks for your reply,
Yes, the addedToStage handler is executed every time. I set my host application up to work exactly with that behaviour. There are several events going from client to host to help the communication inside the the application. I can't get behind the reason why it won't work.
I made a case where I created a camera instance inside the host application and passed it over to the client via
client.setupFunction(inArg: arg, sendCamera: Camera);
That works. But I also need a microphone, and I can't get the mic working over with the same technique. And also I'd prefer to have it all in the client, cause I designed the application model to work exactly in that fashion.
I guess it's a secruity sandboxing problem, but I can't find any documentation on this issue.
Thanks, maybe another solution can be found here. ;-)

Similar Messages

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • To save each Project file in AIR application separately

    Hello
    I'm on the verge of developing a Desktop AIR application for a particular purpose. Now this application has the facility to develop multiple projects. What I would like to do is to save each of this project in a separate file in a specified location.
    And moreover when I double click this project file, the AIR application should load with the specific project. My main purpose is to port project file of user's choice from one PC to another and open the same (assuming AIR application is installed in that machine) on double clicking it.
    So if a user has created 5 projects inside the application and wants to share only one of the project, he/she should be able to do that.
    A application that works the same way is MarketSamurai.
    I hope I have explained it clearly my requirement, kindly please provide me suggestions.
    Thanks

    You can register file types, sure. Did you check the API reference ?

  • Creating Target Group from External File

    Hello Experts
    We need to create target group from external file. (That is to say we will have let's say txt file containing BP that belongs to specific target group and we need to assign these BPs to to specific target group in SAP CRM)
    I have searched for it on sdn and found something benefical. I have found BAPI_TARGETGROUP_CREATE, I have checked it but I don't understand how should we use it becuase as far as we understand it just creates target group, we cannot see anything related with Business Partner. How can we relate BPs with the target group we create by this BAPI.
    What should we do, is anyone have previous experience about it? or is there a way to do it without using BAPI.
    thanks it advance
    M.
    Edited by: Mehmet Ergul on Jan 22, 2009 11:19 AM

    Hi,
    You can do this from within the standard Web UI. It's straight out of the box.
    Create a profile set and in there create a target group in the target group assignment block just by entering the description of the target group. Then enter edit mode of this target group and click the button "Import Members". Remeber to mark "Change selected target group" unless you want to create a new target group.
    /Anders

  • Code for reading particular  fields from the file placed in application

    hi,
    code for reading particular  fields from the file placed in application server in to the internal table.

    Hi,
    Use the GUI_UPLOAD FM to upload the File into ur Internal Table.
    DATA : FILE_TABLE TYPE FILE_TABLE OCCURS 0,
             fwa TYPE FILE_TABLE,
             FILENAME TYPE STRING,
             RC TYPE I.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      EXPORTING
        WINDOW_TITLE            = 'Open File'
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
       INITIAL_DIRECTORY       =
       MULTISELECTION          =
       WITH_ENCODING           =
      CHANGING
        FILE_TABLE              = FILE_TABLE
        RC                      = RC
       USER_ACTION             =
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE FILE_TABLE INDEX 1 into fwa.
    FILENAME = fwa-FILENAME.
        CALL FUNCTION 'GUI_UPLOAD'
             EXPORTING
                  filename                = filename
                  FILETYPE                = 'DAT'
           IMPORTING
                FILELENGTH              =
             TABLES
                  data_tab                = itab
             EXCEPTIONS
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  invalid_type            = 5
                  OTHERS                  = 6 .
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Regards,
    Balakumar.G
    Reward Points if helpful.

  • Best to load preloader from external file or place it directly into existing movie?

    Is it best to load the preloader from external file or place it directly into an already existing movie?

    there's no one answer for everyone.
    but for an inexperienced coder that's already completed their main project and is adding a preloader as an after-thought, it's usually easiest to create a stand-alone preloader.
    and even for experienced coder's, that's usually the easiest way to preceed.

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

  • Passing Parameters from XML file to Java Application

    Can any one help me to know the way of passing values from XML file to Java Application..
    Thanx in advance

    With the Processing Instructions <?name pidata?>
    Get the Nodes in a Document.
    Node node;
    if(node.getNodeType()==Node.PROCESSING_INSTRUCTION_NODE)
    //String param=node.getData();

  • Xhow XDP file in AIR application

    Does anyone knows how to load an XDP file in a HTML component
    in an AIR application? Loading PDF files is no problem.
    The XDP comes from a JAVA webserver. So, another possibility
    would be to convert the XDP to PDF on the server, before sending it
    to the AIR application. Does anyone knows if this is possible?
    thanks,
    Peter Vermeulen
    Belgium

    Having basically the same issue.  A blank screen appears.  I am using an iframe to display the PDF file (or trying to)
    Windows 7 Professional
    Acrobat Pro X
    AIR 2.7
    AIR SDK 2.7
    Code:
    <script>
    function init()
      var out = document.getElementById('outDiv');
      if (air.HTMLLoader.pdfCapability ==
       air.HTMLPDFCapability.STATUS_OK)
       out.innerHTML =
        "<iframe src='pdf/newsletter.pdf' width='700' height='500'></iframe>";
      else
       out.innerHTML = "<h2>PDF capability not found</h2> <p>Error is: " + air.HTMLLoader.pdfCapability+"</p>";
    </script>
    I am receiving a 3202 error on return from HTMLLoader.pdfCapability (acrobat version too old)

  • Problem in displaying topics from external files

    Hello,
    I have a set of Help projects created using Robohelp classic
    7.00.139 by Blue sky Software Corp. There is a Master project and
    sub projects linked together using “.cnt” files.
    Now I want to move to HTML Help format (".chm")
    Using Adobe Robohelp 6 for word, I convert all the help
    projects to .CHM FILES using Batch generate option in Adobe
    Robohelp 6 for word. I put all the “.chm” files in a
    single folder of my application. But now the links from my MASTER
    projects to the sub projects are not working.
    When an external topic is selected from the master it points
    correctly to the topic title in TOC, corresponding to the external
    sub project but the topic from the selected external file is not
    displayed there.
    What could be the problem? Are there any settings to be made?
    Best regards
    VIPL

    hi,
    when you are creating the key figure info object. there is one tab called additional properties on that select decimal places as you want. activate it. and the reporting. check it out.
    if helpful provide points
    regards
    harikrishna N

  • Packaging AIRHelp .air file with AIR Application

    Hi,
    Has anyone had any experience packaging an AIRHelp project (generated by RoboHelp) with an AIR Application?  I want installation for our app to be simple as possible for the end user, and requiring them to install the help separately from the real AIR application seems to be complicated and error prone.  (In addition, ProductManager launch function cannot determine whether or not help has been installed, so there could be problems there.)
    Currently we are using a native installer for the AIR app. 
    Thanks in advance,
    -Tom

    Another thing I learned is that you might have the icon file embeded in the application somewhere and that removes it from the include in AIR package screen.That shows the same 303 error. See more detalis here : http://spy6.blogspot.com/2009/10/error-creating-air-file-303error-some.html

  • Regarding reading data from a file in the application server.

    Hello Everyone,
    My question is:
    The file in the application server consists of data with header, detail and trail out of which the detail contains the main information. The detail again contains the data in the form of a continuous string and again some spaces corresponding to a single record. I need to split the data in the internal table in such a way so that the first few characters get into field-1 of the target internal table. Again I need to consider the spaces for accessing the data for filling up in field-2. How do I decide on the 'Split' statement and specially when the whole string has to be taken care of as contatining data in a single string format without space and again some data after some spaces corresponding to a single record.
    Your help is very much needed. Thanks to all the experts in advance.

    Hi
      This is the sample code I was used for the similar requirement.
    DATA: single_line TYPE string .
    v_file_listings = pa_filn1.
    IF v_file_listings IS INITIAL .
    MESSAGE e039 WITH v_file_listings.
    ENDIF.
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_listings FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    DO.
    READ DATASET v_file_listings INTO single_line. "Reading the content of file into line
    IF sy-subrc = 0.
    IF sy-index > 1. "skip header-line
    SPLIT "Split the content of line into work area
    single_line
    AT k_split
    INTO
    wa_listings-kschl " Condition type
    wa_listings-tabname16 " Condition table name
    wa_listings-vkorg " Sales organisation
    wa_listings-kunnr " sold-to party numberor ship-to party number
    wa_listings-matnr " Material Number
    wa_listings-kodatab " Valid-from date
    wa_listings-kodatb1. " Valid-to date
    APPEND wa_listings TO itab_listings. "Appending Work Area to internal table
    ENDIF.
    ELSE.
    EXIT.
    ENDIF.
    v_count1 = sy-tabix.
    ENDDO.
    Regards,
    Sreeram

  • How to execute command(program) from external file in Oracle SQL developer

    Hi,
    Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
    Example, i have 100 insert SQL inside a text file,
    and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.

    If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
    Now for the big popper: to run an external file: @file
    Best of luck,
    K.

  • Open files with AIR application

    Hy, I made an AIR application that manages video files. Is there any way that when I try to open a video file to be opened with my application and play it ? Not just open the application and browse for the video.
    Thanks.

    bump!
    really? noone knows the answer?

  • Using URL location from external file

    Hello,
    I have a button that opens a new browser window that uses a
    URL that may change from time to time. Simple question: how do I
    set up the URL to be read from an external file so it can be
    changed without having to edit the flash file?
    Thank you,
    Bob

    bobindy wrote:
    > Hello,
    >
    > I have a button that opens a new browser window that
    uses a URL that may
    > change from time to time. Simple question: how do I set
    up the URL to be read
    > from an external file so it can be changed without
    having to edit the flash
    > file?
    >
    > Thank you,
    > Bob
    text file call url.txt, inside that file
    url_link=http://www.yourdomain.com/folder/file.html
    in flash on first timeline frame :
    loadVariablesNum("link.txt", 0);
    button action :
    on (release) {
    getURL(_level0.url_link, "_blank");
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

Maybe you are looking for