I need flex sdk 4 do load data file

Looks like I need flex sdk 4 to do the loading of the data file as seen on the following thread:

http://forums.Adobe.com/thread/510429?TSTART=0



Hi, I'm now trying to use the new features of file Flash 10 but I get this error when I try something like

fileRef.load ();

ReferenceError: Error #1069: charge of property not found on the flash.net.FileReference and there is no default value.

The "require flash player version" also in Flex Builder setting change your build configuration. Specifically, it changes the version of playerglobal.swc is included in your compilation.

If you do not want to change then you need to make this change manually in order to take advantage of the features of Flash Player 10.

Tags: Flex

Similar Questions

  • Error while loading data file with using a file of rules through a MAXL.

    I think that the functionality to generate a. Records error during loading data in the ERR file is supported only if there is a. RUL file being used.

    Is this good?

    I tried to get. ERR files to generate by using the following statement:
    Import database PL_RPT. Reprting data data_file
    "E:\Hyperion\AnalyticServices\APP\PL\PL.txt" to load_buffer with buffer_id 17
    Error writing to "E:\Hyperion\Scripts\Pln\Logs\LoadlData.err."

    When I run this, if there are errors, it is not generated any file errors and stops the load.

    I saw the technical reference Essbase ASO MAXL data loading and code syntax diagram indicates that it is supported.

    Any suggestions will be greatly appreciated.

    Thank you

    Hello

    Here are a few suggestions for trapping errors. I hope that one of them will meet your needs:

    1._____________________________________________

    spool to 'D:\logs\maxlresults.out ';

    function SIERREUR 'WRITE_ERRORS ';

    / * do stuff * /.

    Define the label 'WRITE_ERRORS ';
    spool off;
    spool to 'D:\logs\maxlerrors.out ';
    "exit";

    2._____________________________________________

    coil stdout to "D:\logs\maxlresults.out."
    coil stderr to "D:\logs\maxlerrors.out."

    3._____________________________________________

    essmsh script.msh 2 > D:\logs\maxlresults.out

    Robb

  • Cases of failure to load data files should ROLLBACK and error only records...

    Hi all

    In my loading of data from source to the target process, for example iam loading 100 records in this 50th record with error, once recording error occurred the total loading process take to fail, recordings must restore and record error need to move the table of errors... one can guide you on this process...

    Thanks in advance...

    30021986 wrote:
    Hi all

    In my loading of data from source to the target process, for example iam loading 100 records in this 50th record with error, once recording error occurred the total loading process take to fail, recordings must restore and record error need to move the table of errors... one can guide you on this process...

    Thanks in advance...

    Hello

    Test this...

    Control flow set to YES
    Set the maximum number of errors allowed on 0 (zero)
    Run the interface

  • problem when loading data file DB

    Hello

    I am new to ODI,

    I just do a test, loading DB data in the text file, I did encounter a problem,

    a DB table has two columns, ID and NAME,

    I created a text file "TEST.txt", as follows,
    ID NAME
    2B

    I created a logical and physical structure in the topology, and created, last model creates the interface, selected 'LKM SQL SQL' and 'IKM SQL incremental update.

    Then run the interface, it had mistakes, said 7000: null: java.sql.SQLException: ODI-40475: invalid column: C1_ID',.

    I found it will remove the 'TEST.txt', and recreated, but column names have been changed, C1_ID, C2_NAME, IKE

    If so, how can I load table DB file with success and the name of the columns in the DB table were the same as the name of the columns in the file.

    Thank you!

    Hope you have selected "Different from the target of the staging area" and set it to any schema RDBMS?

  • How dynamically load data in target tables using as source files

    Hello

    My script needs a single interface to load data from 5 different files in five paintings of target using a single interface. All target tables have the same structure. It is possible to point to files variable source using ODI. But the same approach does not work with database tables. I get errors trying to make my table as dynamic target/source.

    Can anyone suggest anything. The last option would write a dynamic PL/SQL block in the KM. Other friends of suggestions?

    Kind regards
    Jay

    and not exists)
    Select 'X '.
    h. #PLAYGROUND. "v_tab_name"T ".

    have you provided the name of the resource with the quotes, if so please remove it and try.

    If you have provided the name of the variable, a v_tab_name and do not provide quotes. Can you please change the name of the variable to the capital, namely V_TAB_NAME and use the same in the data store too and please try again.

  • ODI load data into essbase

    I have load data files dishes to Essbase and got the following errors:

    Description:

    from com.hyperion.odi.common import ODIConstants
    from com.hyperion.odi.connection import HypAppConnectionFactory
    import java.lang class
    import java.lang Boolean
    import java.sql *.
    from java.util import HashMap
    #
    # Get the select statement in the meeting area:
    #
    SQL = "" "select C14_ACCOUNT" Account", sum (C5_AUG)" Aug", sum (C6_SEP)" Sep", sum (C1_OCT)" Oct", sum (C15_NOV)" Nov", sum (C13_DEC)" Dec", sum (C9_JAN)" Jan", sum (C2_FEB)" Feb", sum (C8_MAR)" Mar", sum (C3_APR)" Apr", sum (C4_MAY)" May", sum (C10_JUN)" Jun", sum (C16_JUL) 'Jul', 'Work', 'Version', 'Real' 'Scenario',"FY05"" Years", trim (C12_PEOPLESOFTHYPERIONPLANNING)"Entity"of" C$ _0SampleBalSheet»» "" "" "" "" "" ""» , "C$ _1SampleBalSheet" where (1 = 1) and (C11_ENTITY = C7_HYPERION) C14_ACCOUNT group.
    «Trim (C12_PEOPLESOFTHYPERIONPLANNING) "»

    srcCx = odiRef.getJDBCConnection ("SRC")

    stmt = srcCx.createStatement)

    srcFetchSize = 30

    stmt.setFetchSize (srcFetchSize)

    RS = stmt.executeQuery (sql)

    #load data
    stats = pWriter.loadData (rs)

    #close the database result set, connection
    RS. Close()
    stmt. Close()

    "" "" Message - error
    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 21, inside?
    java.sql.SQLException: unexpected token in the statement [select C14_ACCOUNT "Account", sum (C5_AUG) "Aug", sum (C6_SEP) "Sep", sum (C1_OCT) "Oct", sum (C15_NOV) "Nov", sum (C13_DEC) "Dec", sum (C9_JAN) "Jan", sum (C2_FEB) "Feb", sum (C8_MAR) "Mar", sum (C3_APR) "Apr", sum (C4_MAY) "May", sum (C10_JUN) "Jun", sum (C16_JUL) 'Jul', 'Work' 'Version', 'Real' 'Scenario' "" ' "" ' "" ' "] , "FY05" 'Years', trim (C12_PEOPLESOFTHYPERIONPLANNING]

    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)

    at org.hsqldb.jdbc.jdbcStatement.fetchResult(jdbcStatement.java:1598)

    at org.hsqldb.jdbc.jdbcStatement.executeQuery(jdbcStatement.java:194)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)

    at org.python.core.PyMethod.__call__ (PyMethod.java)

    at org.python.core.PyObject.__call__ (PyObject.java)

    at org.python.core.PyInstance.invoke (PyInstance.java)

    to org.python.pycode._pyx24.f$ 0 (< string >: 21)

    to org.python.pycode._pyx24.call_function (< string >)

    at org.python.core.PyTableCode.call (PyTableCode.java)

    at org.python.core.PyCode.call (PyCode.java)

    at org.python.core.Py.runCode (Py.java)

    at org.python.core.Py.exec (Py.java)

    at org.python.util.PythonInterpreter.exec (PythonInterpreter.java)

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)

    at com.sunopsis.dwg.cmd.e.i (e.java)

    at com.sunopsis.dwg.cmd.g.y (g.java)

    at com.sunopsis.dwg.cmd.e.run (e.java)

    at java.lang.Thread.run(Thread.java:619)


    java.sql.SQLException: java.sql.SQLException: unexpected token in the statement [select C14_ACCOUNT "Account", sum (C5_AUG) "Aug", sum (C6_SEP) "Sep", sum (C1_OCT) "Oct", sum (C15_NOV) "Nov", sum (C13_DEC) "Dec", sum (C9_JAN) "Jan", sum (C2_FEB) "Feb", sum (C8_MAR) "Mar", sum (C3_APR) "Apr", sum (C4_MAY) "May", sum (C10_JUN) "Jun", sum (C16_JUL) 'Jul', 'Work' 'Version', 'Real' 'Scenario' "" ' "" ' "" ' "] , "FY05" 'Years', trim (C12_PEOPLESOFTHYPERIONPLANNING]

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i (e.java)
    at com.sunopsis.dwg.cmd.g.y (g.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run(Thread.java:619)

    You use an agent defined instead of the LFA to reverse, I recommend using an agent also sometimes there may be problems reversing with the local agent.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Why the Media recovery is necessary once a data file is brought back to fashion online?

    Hi DBAs,

    Consider the following scenario:

    Offline data file:

    08:09:38 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    08:09:47 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' offline;

    Database altered.

    08:09:58 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    RETRIEVE F:\ORACLE\ORADATA\CD\UNDO4. DBF

    08:10:02 coredev > select * from v$ tablespace where name = "UNDO";

    ENC FLA BIG TS # NAME INC.

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

    UNDO 33 YES NO YES

    Data file online:

    08:10:53 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    ALTER database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online

    *

    ERROR on line 1:

    ORA-01113: file 21 needs media recovery

    ORA-01110: data file 21: ' F:\ORACLE\ORADATA\CD\UNDO4. DBF'

    08:11:04 coredev > recover datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF';

    Complete media recovery.

    08:11:13 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    Database altered.

    08:11:49 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    Now my doubt is:

    1.Pourquoi Media recovery is necessary once a data file brought to online from offline mode?

    2. why DB not open and throws the error message after brining online of offline?

    3. Why is he asking for recovery of the media?

    I'm very confused...!

    Kind regards

    Ritu

    In order to make the UNDO4 data file. Coherent DBF with other UNDO tablespace data files, when you bring it from OFFLINE to ONLINE, the changes that happened during the period offline needs to be applied to this data file hence it is requires media recovery.

    It is directed by my understanding.

  • How to move data files from drive C to drive E in MS SQL Server 2005 used for hyperion

    Hi all

    We have installed Hyperion with MS SQL Server 2005. Hyperion 11.1.1.3 works well.

    But in the SQL server data files will register in C drive only. But we have to back up the files in drive E.

    I used the Attach and Detach method to move files from C drive to E drive.

    After that, I am reconfiguring the EPM system. but I get errors in the configuration.

    Now I get the planning of database failed when Confiuring planning.

    Configuration of data source interface has failed in the Configuration of EPMA.

    Please suggest the best way to make this scenario.


    Thank you

    Mady

    Why do you need to reconfigure after that move data files, if it is done properly it should be without data loss.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How do I know if a loaded SWF file have the source code?

    Hi!, I need to know if a loaded SWF file have the source code. I develop an application running on iOS and admin can upload SWF files that show in the APP, but I must know before show (mobile Adobe AIR APP) or activate (PHP script server), if this SWF file have the source code for no show or enable him not it.,.

    Thank you!

    I have it!

    Only that we need to do is:

    1. If the first tank is:

    F-the swf is uncompressed

    C - compressed with Deflate

    Z - compressed with LZMA

    2. If it is compressed, uncompress it with the right method

    3. search MainTimeline string, if concluded the SWF actionscript so it is not found, the code is not actionscript.

  • deleting a data file

    Went to add a file to a tablespace using create as in oem.
    I forgot the give it a name for what he called .dbf and also put it in the right place.

    I disconnected it immediately and tried to rename it using OEM. I got an error need media recovery.

    I published the following command to retrieve the file data that has changed the online_status to 'recover' to 'offline' in dba_data_files view.

    SQL > recover datafile ' / u03/oradata/instance_name/.dbf'

    Is there something special I need to do to remove this data file? He is currently offline and seems to be empty?

    I have the datafile now because I have created another. Can I get it?

    Yes, you can drop,

    SQL > alter database datafile drop offline;

    BTW, you don't need to file also, you can rename the data file by putting in offline mode.
    But you have already removed. no problems.

  • Need data files and rules file to create and load data for sample.basi

    I need emergency data files to build dimensions dynamically and also the rule files for loading data to the application Sample.Basic for Essbase 9. Kindly let me know if anyone can provide them. Otherwise any link frm where I can get it?

    Thanks in advance.

    Outline and all the data (calcdat.txt) are included in the zip, so you don't need to rebuild something with the loading rules

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Need a sql script loader to load data into a table

    Hello

    IM new to Oracle... Learn some basic things... and now I want the steps to do to load the data from a table dump file...

    and the script for sql loader

    Thanks in advance

    Hello

    You can do all these steps for loading data...

    Step 1:

    Create a table in Toad to load your data...

    Step 2:

    Creating a data file... Create your data file with column headers...

    Step 3:

    Creating a control file... Create your control file to load the data from the table data file (there is a structure of control file, you can search through the net)

    Step 4:

    Move the data file and the control file in the path of the server...

    Step 5:

    Load the data into the staging table using sql loader.

    sqlldr control = data =

    connect as: username/password@instance.

  • Support TLS 1.2 Air Desktop Version-Flex SDK 4.5.1

    Hi all

    I'm new to this forum. I'm working on the desktop air application. recently of Salesforce announced we'll disable the TLS 1.0 since their servers and they will support the TLS Protocol 1.1,1.2. Here is test url that we can use to test in the Office of the air: https://tls1test.salesforce.com/s/. I went through some of the messages in this forum and have not found similar post about this issue. I found one, but it did not help either: done FLEX and AIR support TLS 1.1 + encryption?  


    I wrote the code to verify that the url below. SecureSocket connection is successful. but UrlRequest is a failure, because it uses TLS 1.0 version to connect to the server, since Air app uses the TLS 1.0, the handshake protocol is a failure. I found this info in wireshark: TLSv1 Record Layer: alert (level: Fatal, Description: failure of the handshake)

    Screen Shot 2015-11-12 at 11.57.16 AM.png

    My goal is to spend my desktop client to support TLS 1.2 Protocol. I use the version of the Flex SDK 4.5.1 to build the application. Can you please help me understand this issue?

    1. Is there anyway to set the version of the Protocol TLS for UrlLoader and UrlRequest?
    2. I need a client certificate to authenticate with the server for TLS 1.2 Protocol?
    3. This will work if the upgrade from Flex and Air SDKS, I tried, it doesn't work, but do not know what I have tried is correct or not?

    Import flash.display.Sprite;

    Import flash.events. *;

    Import flash.net.URLLoader;

    Import flash.net.URLRequest;

    Import flash.net.URLRequestDefaults;

    Import flash.net.URLRequestHeader;

    Import flash.net.URLRequestMethod;

    import flash.net.URLVariables;

    private function {URLRequestHeaderExample()}

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    configureListeners (loader);

    SecureSocketExample();

    var header: URLRequestHeader = new URLRequestHeader ('Permission', ' sampleToken');

    var request: URLRequest = new URLRequest ("""https://tls1test.salesforce.com/services/oauth2/token"""); / /https://tls1test.salesforce.com/

    //request.data = new URLVariables ("name = John + Doe");

    Request.Method = URLRequestMethod.GET;

    URLRequestDefaults.idleTimeout = 1200000;

    request.requestHeaders.push (header);

    try {

    Loader.Load (request);

    } catch (error: Error) {}

    trace() "Unable to load the document asked." );

    }

    }

    private function configureListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.COMPLETE, completeHandler);

    dispatcher.addEventListener (Event.OPEN, openHandler);

    dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpRespoStatusHandler);

    }

    private function completeHandler(event:Event):void {}

    var loader: URLLoader = URLLoader (event.target);

    trace ("completeHandler:" + loader.data "');

    }

    private function openHandler(event:Event):void {}

    trace ("openHandler:" + event "");

    }

    private function progressHandler(event:ProgressEvent):void {}

    trace ("progressHandler loaded:" + event.bytesLoaded + "total:" + event.bytesTotal);

    }

    private function securityErrorHandler(event:SecurityErrorEvent):void {}

    trace()"securityErrorHandler:" ( + event); "."

    }

    private function httpStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpStatusHandler:" ( + event); "."

    }

    private function httpRespoStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpRespoStatusHandler:" ( + event); "."

    }

    private function ioErrorHandler(event:IOErrorEvent):void {}

    trace()"ioErrorHandler:" ( + event); "."

    }

    private var secureSocket:SecureSocket = new SecureSocket();

    private function SecureSocketExample()

    {

    secureSocket.addEventListener (Event.CONNECT, onConnect)

    secureSocket.addEventListener (IOErrorEvent.IO_ERROR, onError);

    try

    {

    secureSocket.connect ( "tls1test.salesforce.com", 443);

    }

    catch (error: error)

    {

    trace (Error.ToString);

    }

    }

    private function onConnect (event: Event):void

    {

    trace() "connected". );

    secureSocket.close ();

    }

    private function onError (error: IOErrorEvent):void

    {

    trace (error.text + "," + secureSocket.serverCertificateStatus);

    }

    []] >

    @kumarkasimala

    Our quality assurance team has been able to reproduce this problem.  We consider you cela a bug and will start working on fixing it for a future release.  Our internal bug for this number is 4095988 in case you need to reference it later.

    Thank you

    Chris

  • Flex Application Interaction with load Flash SWF

    Hi all

    First of all, the context:

    I'm creating a Flex application with a component that displays several SWF loaded dynamically, one at a time (a bit like a kiosk). These loaded SWF files is created in the Flash IDE, Flex No. They will not be created by us (we will provide a .fla but model it is), so I am loading them in a separate SecurityDomain.

    My Questions:

    1. I want the application to be able to call methods inside the loaded SWF file. To do this, I would just call Security.allowDomain ("flex application domain") in the boot process for the loaded SWF file?

    2. I want the SWF loaded to throw events that are taken by the application. Can I achieve this through the SWFLoader.swfBridge (http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html#swfBridge) property?

    3. I'm defining an interface for methods inside the loaded SWF file. But I don't want to leave the implementation up to the customer. Instead, I want to provide another SWF that contains the implementation of the interface and have a constraint that the customer includes it in their SWF file. I'm not very familiar with the Flash programming environment, how would that work so that the SWF interface implementation exposes his methods so as to be accessible to the Flex? Is it possible to sign the SWF file so that the Flex application knows that it is dealing with the original, not a parody? How would the Flex code pass in arguments, since it is through SecurityDomain limit - is there marshaling involved (for example if I want to pass in a dictionary or some kind of object graph)?

    4. The Flex application can load hundreds of these small other sovereign wealth funds during his life. How can ensure me that it is not continue to use more memory? I intend using SWFLoader.unloadAndStop () and erase all references to the Flex object that refers to it. Is this enough? Will be the AppDomain for the loaded SWF file to tear down automatically so that the class definitions are no longer in memory?

    Thank you

    Knockaert

    3 sounds good, but that's all theory.

    I think that there are other ways to package code to Flash other than "components".  I think that there are some libraries of data/network, but I don't know how they are packed these days.

    4. in theory, it will try to match fields that match and ignore those that do not fit as well.  With the help of readObject/writeObject should work, but you should be able to call the IExternalizable APIs directly.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Maybe Flex SDK bugs: visible converters element DataGrid control

    Hi all, I'm still a noob to flex, but this seems a little strange to me.

    I tried to hide a converter button in a DataGrid control, but he would just hide.  I was setting visible inside the mxml and also in the class that extends the buttonbut would just hide.  Then, I overloaded the property visible set/get back what was setting the property and found that inside the DataGridBase.as the setupColumnItemRenderer function sets still visible of the renderes to true.

    DataGridBase.as
    protected function setupColumnItemRenderer (c:DataGridColumn, contentHolder:ListBaseContentHolder,
    rowNum:int, colNum:int, uid:String, data: Object): IListItemRenderer
    {
    var listItems:Array = contentHolder.listItems;
    var point: IListItemRenderer;
    var rowData:DataGridListData;

    Item = listItems [rowNum] [colNum];
    If (! point | itemToUID (item.data)! = uid)
    || columnMap [item.name]! = c)
    {
    Item = createColumnItemRenderer (c, false, data);
    If (point == null)
    Returns a null value.
    If (item.parent! = contentHolder)
    contentHolder.addChild (DisplayObject (item));

    a space is used if there is no so text widgets get a default size
    columnMap [item.name] = c;
    If (listItems [rowNum] [colNum])
    addToFreeItemRenderers (listItems [rowNum] [colNum]);
    listItems [rowNum] [colNum] = item;
    }

    [Mat] left in the above block out because
    the element is without a doubt at this stage and still need
    its up-to-date information
    rowData = DataGridListData (makeListData (data, uid, rowNum, c.colNum, c));
    rowMap [item.name] = rowData;
    If (item is IDropInListItemRenderer)
    IDropInListItemRenderer (point) .listData = data? rowData: null;
    Item.Data = data;
    item.Visible = true;

    If (uid & & colNum == 0)
    contentHolder.visibleData [uid] = item;
    return item;
    }

    Why would he do that?  If it should not respect the visible property for the mxml rendering engine already set and not force it to true on init?

    Converters use the visible property to recycling.  Invisible rendering engines are not supported.  The attack detection logic he would find the cell, it belongs to the same if it were invisible.  You can set alpha = 0, but that does not block the attack detection logic.

    Why are you trying to hide a converter?

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for