Problem loading swf which reads data from a local file

Hello

Using flex with an online project, I load a swf file, which reads data in a xml file (it works fine if I open it with flash player)

I do a very simple test:

" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "
layout = "absolute".
minWidth = "955" = "600" minHeight
>
< mx:SWFLoader id = "swfloader" source="data/player.swf"/ >
< / mx:Application >

Result is that player.swf is unable to read the xml file (error: #2044 Error: ioError unsupported: text = Error #2032: error of flow.) URL: enonce.xml).

I do the same test with a project of AIR, and it works very well!

This also works if I put the xml file directly to the same level as my compiled (in bin-debug for example) application.

I think it's a path problem, but I do not know how to configure it.

Is there a way to solve the problem?

Thank you very much!

Olivier

You need to change the code in the SWF file you load.  If the SWF file is not

properly designed, it can not be loaded into other SWFs.

Tags: Flex

Similar Questions

  • Reading data from an XML file with the same parent tag

    We have the XML file that is stored in a CLOB column. We can typecast the CLOB to XML and access to a particular value. We cannot do the same in the case of same parent tag. We read the amount claimed for LABOUR, the FREIGHT_DUTY and MEALS. Can anyone help us.

    SELECT EXTRACTVALUE (XMLTYPE.createXML (CLAIM_SNAPSHOT_STRING),'path / text () ')

    IN ln_hl_labor_hrs_on_job

    OF TAV_DC_031A_CLAIM_AUDIT_XML

    WHERE CLAIM_AUDIT_ID = 3799;

    < paymentComponents class = "dΘfinir" >

    < company.domain.claim.payment.PaymentComponent >

    < id > 30310 / < ID >

    < version > 0 < / version >

    < forCategory class = "company.domain.claim.payment.CostCategory" >

    < id > 6 / < ID >

    < version > 1 < / version >

    Meals from < name > < / name >

    < code > < code > MEALS

    < description > meal < / description >

    < / forCategory >

    < claimedAmount >

    < amount > 0.00 < / amount >

    "< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >

    < / claimedAmount >

    < /company.domain.claim.payment.PaymentComponent >

    < company.domain.claim.payment.PaymentComponent >

    < id > 30311 / < ID >

    < version > 0 < / version >

    < forCategory class = "company.domain.claim.payment.CostCategory" >

    < id > 3 < /ID >

    < version > 1 < / version >

    < name > work < / name >

    < code > < code > WORK

    < description > work < / description >

    < / forCategory >

    < claimedAmount >

    < amount > 217.00 < / amount >

    "< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >

    < / claimedAmount >

    < /company.domain.claim.payment.PaymentComponent >

    < company.domain.claim.payment.PaymentComponent >

    < id > < /ID > 30312

    < version > 0 < / version >

    < forCategory class = "company.domain.claim.payment.CostCategory" >

    < id > 5 / < ID >

    < version > 1 < / version >

    < name > point freight and duty < / name >

    < code > < code > FREIGHT_DUTY

    < description > point freight and duty < / description >

    < / forCategory >

    < claimedAmount >

    < amount > 0.00 < / amount >

    "< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >

    < / claimedAmount >

    < /company.domain.claim.payment.PaymentComponent >

    < / paymentComponents >

    Kind regards

    Franck Giri

    SQL> with t
      2  as
      3  (
      4  select
      5  xmltype
      6  (
      7  '
      8  
      9  30310
     10  0
     11  
     12  6
     13  1
     14  Meals
     15  MEALS
     16  Meals
     17  
     18  
     19  0.00
     20  
     21  
     22  
     23  
     24  30311
     25  0
     26  
     27  3
     28  1
     29  Labor
     30  LABOR
     31  Labor
     32  
     33  
     34  217.00
     35  
     36  
     37  
     38  
     39  30312
     40  0
     41  
     42  5
     43  1
     44  Item Freight And Duty
     45  FREIGHT_DUTY
     46  Item Freight And Duty
     47  
     48  
     49  0.00
     50  
     51  
     52  
     53  '
     54  ) xml_data
     55    from dual
     56  )
     57  select t1.*
     58    from t
     59       , xmltable
     60         (
     61            '/paymentComponents/company.domain.claim.payment.PaymentComponent' passing t.xml_data
     62            columns
     63              code   varchar2(20) path 'forCategory/code',
     64              amount number       path 'claimedAmount/amount'
     65         ) t1;
    
    CODE                     AMOUNT
    -------------------- ----------
    MEALS                         0
    LABOR                       217
    FREIGHT_DUTY                  0
    
    SQL>
    
  • Read data from a text file

    Hi, using Cp 8.01.

    I would like to read the textual data to a text or XML file into a variable in order to display a message (using a form) on my project of Cp can I do this without using Javascript?

    Thank you.

    You need JS.

  • Reading data from a text (JS CS3) file tabs-delimited

    Hi - I'm working on a script to read data from a text file and use in a dialog box. But I hit a wall.

    I used a script from a previous post that defines a variable text document when the user script he chooses from a drop-down list.

    var myDialog = app.dialogs.add({name:"Map",canCancel:true});)
    {with (MyDialog)}

    {with (dialogColumns.Add ())}
    {with (borderPanels.Add ())}
    staticTexts.add ({staticLabel: "choose the location :"});})
    {with (dialogColumns.Add ())}

    var file = File("~/Desktop/myPlacesfile.txt");

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var myPlaceList = str.split (/ [\r\n] + /);
    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
    }
    }}}
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    If (myPlaceMenu.selectedIndex == 0) {}
    myPlace var = ' - undefined ";
    } else {}
    myPlace var = myPlaceList [myPlaceMenu.selectedIndex];
    Alert (myPlace);
    }

    myDialog.destroy ();
    }

    That's what I do now:

    The text file is in this format:

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    I need to have the drop down dialog box show only the value 1, and after that the user selects, the script returns only the value 2. (The alert is just there to test - I'm doing something else with the variable).

    Is there a way to view the first part of a tab-delimited line in the menu drop down and return the second half as a variable?

    Any help would be greatly appreciated.

    Thank you

    One of the possibilities is that it. Create a table to the left of the values of the tab of the dialog box. Then create an object that you use it as a table of correspondence. Roughly as follows:

    same thing as what you have

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var array = str.split (/ [\r\n] + /);

    'pairs' are the table of correspondence

    pair of var = {};

    as before, 'myPlaceList' will be used for the menu drop-down
    var myPlaceList = [];

    var v;
    for (var i = 0; i)< array.length;="">
    {
    v = table [i] .split ('\t');
    pairs [v [0]] = v [1];
    myPlaceList.push (v [0]);
    }

    Add the drop-down list as before:

    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})

    the table of 'pairs' correspondence is used as follows: pairs ['value1'] returns 'value2 '.

    so in your script that would be:

    myPlace var pairs = [myPlaceList [myPlaceMenu.selectedIndex]];

    Peter

  • Hi I need to read the data in vaiables local file delimited using the utl_file package «»


    Hi all

    I want to read data from a .csv file which is ',' delimited in a local variable that is different from a plsql stored procedure so that I can insert into the table.

    I use this way to read data...

    --------------------------------------------------------------------------------

    -get the position of ',' (comma) in csv file

    --------------------------------------------------------------------------------

    l_c1: = INSTR (l_in_file, ',', 1, 1);

    l_c2: = INSTR (l_in_file, ',', 1, 2);

    l_c3: = INSTR (l_in_file, ',', 1, 3);

    l_c4: = INSTR (l_in_file, ',', 1, 4);

    l_c5: = INSTR (l_in_file, ',', 1, 5);

    l_c6: = INSTR (l_in_file, ',', 1, 6);

    l_c7: = INSTR (l_in_file, ',', 1, 7);

    l_c8: = INSTR (l_in_file, ',', 1, 8);

    l_c9: = INSTR (l_in_file, ',', 1, 9);

    l_c10: = INSTR (l_in_file, ',', 1, 10);

    --------------------------------------------------------------------------------
    -pull data into local variables
    --------------------------------------------------------------------------------
    l_0003: = SUBSTR (l_in_file, l_c2 + 1, l_c3-(l_c2 + 1));

    l_0004: = SUBSTR (l_in_file, l_c3 + 1, l_c4-(l_c3 + 1));

    l_0005: = SUBSTR (l_in_file, l_c4 + 1, l_c5-(l_c4 + 1));

    l_0006: = SUBSTR (l_in_file, l_c5 + 1, l_c6-(l_c5 + 1));

    l_0007: = SUBSTR (l_in_file, l_c6 + 1, l_c7-(l_c6 + 1));
    l_0007: = To_Char (To_Date (l_bdate_0007, "mm/dd/yyyy '"), 'yyyy-mm-dd');

    l_0008: = SUBSTR (l_in_file, l_c7 + 1, l_c8-(l_c7 + 1));

    l_0009: = SUBSTR (l_in_file, l_c8 + 1, l_c9-(l_c8 + 1));

    l_0016: = SUBSTR (l_in_file, l_c9 + 1, l_c10-(l_c9 + 1));
    l_0016: = To_Char (To_Date (l_eff_dt_0016, "mm/dd/yyyy '"), 'yyyy-mm-dd');

    I need to find an alternative way to reduce the length of the Code.

    Any Suggestion please!

    Hello

    Please see the query below...

    SELECT RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 1), ',') AS part_1

    , RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 2), ',') AS part_2

    , RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 3), ',') AS part_3

    , LTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ', [^,] *', 1, 3), ',') AS part_4

    DOUBLE;

  • problems loading swf to a remote server

    Hi all

    I have problems loading SWF to my remote server of Mr. There is no problem loading all my other SWF files just straight up. I get a message telling me that Dreamweaver is having a problem connecting to the remote server and it times out. I can load up the swf using cpanel. Does anyone have advice helping, what happens if something can be done to address the problem

    Concerning

    Paul

    Hi Paul,.

    Use to troubleshoot Adobe: http://helpx.adobe.com/dreamweaver/kb/troubleshoot-ftp-issues-dreamweaver-cs5.html. (cs5 is similar I think).

    BUT in any case I'm not a friend of a detailed diagnosis. This is one of the reasons why I prefer an external FTP program. The difficulties with which we must fight encourage me in this opinion, especially because we are always looking for experts, we charge a 'jack of all trades '.

    For this reason, for example, manage multiple Web sites or download my files and sometimes the reverse, for a necessary download from my server or use a "sync a whole site", I use FileZilla (cpanel I don't even know). It just seems easy for me to keep track of all transactions accurately and generate or easily reflect the desired tree structure.
    First and foremost, FileZilla has a function (translation of my German FileZilla), called 'compare the list of files. Here it is possible to use the time of size or change file as a criterion. There is also the possibility of 'hide identical files', while only those files that you want to redact remain visible.

    And even if it means that you need to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read information on how it works:

    http://FileZilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager

    Mac: Mac OS X
    http://FileZilla-project.org/download.php

    Of course, you should also access data to reach your server.

    Good luck
    Hans-Günter

  • Read data from table of $ E and insert in the staging table

    Hi all

    I'm new on ODI. I need your help to understand how to read data from a table ' E$ "and insert in an intermediate table.

    Scenario:

    The name of two columns, in a flat file, the employee and the employee id must be loaded into a data EMPstore +. A check constraint is added so that the data with the employee names in capital letters only to load in the data store. Check the command is set to the static movement . Right-click on the data store, select control , then check. The lines that have violated the check constraint are kept in E$ _EMP+ table.

    Problem:

    Problem is I want to read the data in the table E$ _EMP+ and transform in capital letters in the name of the employee and move the corrected data of E$ _EMP+ EMP+. Please advise me on how to automatically manage the 'soft' exceptions in ODI.

    Thank you

    If I understand, you want to change the columns in the tables of $ E and then load into the target.

    Now, if you notice how ODI recycles the error, there is an incremental update to the target using the E table $ after he filled the I$ table.

    I think you can do the same thing by creating an interface using the table of $ E as source and implement the business logic in this interface to fill the target.

  • Can read data from xls using teststand 3.5?

    Hello

    I use 3.5 TestStand and LabVIEW 8.je know these are quite old versions now, but we must continue with this on a test bench.

    My question is how can I read data from the file xls using TestStand 3.5? I have already mentioned a few posts on this, and one response suggested that I should use "tGetExcel" using ActiveX adapter. I tried to run the test example related to "http://forums.ni.com/t5/NI-TestStand/Write-or-read-to-Excel-from-TestStand/td-p/250439/highlight/tru...", but a run-time error. He says that "the tGetExcel type library information not found. Make sure that the server is registered in the system.

    TestStand 4.2, I could easily run excel at the base of operations by using the Office Excel Toolkit.

    I was wondering, is there another way, I can read just .xls file data by using Teststand 3.5?

    Thank you

    Niraj.

    Please check this example for charger of property:

    C:\Program Files (x 86) \National Instruments\TestStand 3.5\Examples\LoadingLimits

    This shows the limits of excel file loading.

    But you can load the values of the variables-consult the help file / Reference manual for this type of step.

    Also in the loader type forum search property - you can find more information.

    I hope this helps.

  • read data from xlsx file

    How to read data from an Excel 2010 worksheet with the .xlsx extension?  The data I want, it's on one of the 10 tabs in the file, I have to choose which programmatically.  I have the Report Generation Toolkit for LV2012, but all the screws that come with it seem to focus around writing data to a spreadsheet Excel and make charts and whatnot.  I want to * read * an Excel worksheet.  Seeking answers led to many 'Open it and save it as tab delimited text', which I can't do because I need data from different tabs, and because this file is quite dynamic with many users opening and adding several times.  In order to save the tab I want as a tab delimited text file per programming, I'm back a square, how to open it?

    My solution would ideally fill in the blanks of: spreadsheet.xlsx---> _---> 2 or 3D data table.

    Thank you

    Adam

    This fixes:

    https://decibel.NI.com/content/docs/doc-3033

  • How to read data from an excel and HTML file

    Hello

    I write a 2D-array of string in Excel/HTML file using the generation of reports.

    Can someone tell me how to get back in return, the written data, same files again and display in table format.

    Thank you & best regards

    Visuman

    You can use activex to read data from the excel fileback to the table format... through this vi... may b this will help you...

  • Write and read data from the user's local file system

    Hello

    I write my first extension for dreamweaver. My extension should backup the data on the local file system of the user. I know that I can use DWfile.read () and DWfile.write () as described in Chapter 2 of the Dreamweaver API reference. I store the data using the XML format. What is the best way to read and parse the XML data in the file? What is the best way to write the XML data in the file?

    If you recommend one format other than XML, I'm open to suggestions. The data are only a few configuration information for the extension which should be persisted.

    Thank you

    mitzy_kitty

    How will the data be used? If it is used by JavaScript, use JSON format which includes js. If you use XML, then you will need to find an XML parser to read the data.

    Randy

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

  • read data from emparray

    I have a function that I would read in pl/sql. How can I read data from it. EMPARRAY function return.

    FUNCTION META_PODATKI_TABEL
    (ime_tabele VARCHAR2, st_napake NUMBER
    )
    RETURN EMPARRAY ACE


    EMPARRAY is:
    create or replace TYPE "EMPARRAY" as VARRAY (10000) OF VARCHAR2 (4000);


    I try but nothing works.

    THX

    Put the function calls in the clause of a query using the TABLE from:

    SQL> create or replace TYPE "EMPARRAY" as VARRAY(10000) OF VARCHAR2(4000);
      2  /
    
    Type created.
    
    SQL> create or replace FUNCTION META_PODATKI_TABEL
      2  (ime_tabele VARCHAR2, st_napake NUMBER
      3  )
      4  RETURN EMPARRAY AS
      5  begin
      6  return emparray('aaa','bbb','ccc');
      7  end;
      8  /
    
    Function created.
    
    SQL> select * from table(META_PODATKI_TABEL('x',1));
    
    COLUMN_VALUE
    ------------------------------------------------------------------------------------
    aaa
    bbb
    ccc
    

    Max
    http://oracleitalia.WordPress.com

  • Read data from APEX_ITEM

    Hi all

    I searched the forums, and unfortunately I have no idea on how to go on the following.

    I have the following SQL report created with APEX_ITEM. SELECT_LIST-

    > select id, questions, APEX_ITEM. SELECT_LIST (p_idx = > 1, p_value = > '- Select Rating-', p_list_values = > 1, 1, 3, 3, 5, 5', p_attributes is > "style =" "color: Black;"', p_show_null = > 'YES', p_null_value = > NULL, p_null_text = > '- Select Rating-', p_item_id = > ' the ROWNUM # f01_ #', p_item_label = > ' label for ROWNUM f01_ # #', p_show_extra = > 'NO') 'Rating' of the sqa_customer_questions by id order

    Query runs as you like, but I don't know how to accept the values of the rows. I would like to insert the values of the selection list and their respective ID for all the entries in another table. I'm not able to find out how I could read data from these APEX_ITEMs and reach my goal.

    Any help is appreciated.

    Kind regards
    Jean-Pierre

    Nope,

    Can you put the app on apex.oracle.com

    In any case if you have a report like this

    SELECT id,
                    something
    FROM table
    

    You can do it for the

     SELECT id||APEX_ITEM.HIDDEN(2,id) id,
                    something
    FROM table
    

    And then reference it as APEX_APPLICATION. G_F02 (the first parameter provided to apex_item determine the number) in your process.

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • read data from a serial port

    Hello to everyone
    I use oracle forms 6i. I want to read data from a serial port. How can I do this?

    HII,

    You may search for any existing OCX or VBX component capable of doing this job.

    Better compliance
    Skyniazi

Maybe you are looking for

  • Hi Apple.  I have had my iPad 2 Air for a week.

    It's my first time with an Apple product and I love my iPad, but I have Safari issues mentioned by many.  If disappointing! Please resolve.

  • Laserjet1102W display as unsecured network

    I am running windows 8. Printer installed fine, but one day need of resettlement. I noticed that the printer has begun to appear as a non-secure network connection. I don't like not just for obvious reasons. How to ensure that or better still remove

  • Yoga 900 - Auto Rotation not working / present

    Hello Well, after my new 900 Yoga for a few days, I turned it off for the first time tonight. Subsequently the auto rotation function had disappeared. No more option in the display settings and registry keys for automatic rotation have been set to 0.

  • Have a virus/malware and cannot open windows mail and how export/copy the measages

    I should have gotten a virus/malware/trojan, which affects the connection and does not allow me to open the control panel, or windows mail. I need to know how to copy/backup/export the e-mail messages that are still there. Of course, I can't use the

  • Made blackBerry Smartphones that look authentic?

    Hello world I bought a new Blackberry Bold 9780 andis, works very well. But I noticed the label of information I have on this device is totally different from the one I have on BlackBerry Bold 9700. The 9700 looks more authentic with small fonts and