Hi everyone, i have a problem and i don't know what to do.. First of all, i have a datagrid with 9 columns, in the first one, i want to insert an itemEditor component, and its integrated by an HBox, and a TextInpu.
In the TextInput click event, i generate a fileChooser, and everything works fine, until I select a file from the filechooser, and i cant make the datagrid cell recognize the name of the file. the component: <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="130" horizontalScrollPolicy="off"> <mx:Script> <![CDATA[ import mx.states.*; import mx.controls.*; import mx.managers.*; import mx.events.*; import flash.events.*; import flash.net.*; public var nomArch:String; public var _refAddFiles:FileReferenceList; public function addFiles():void { _refAddFiles = new FileReferenceList (); _refAddFiles.addEventListener (Event.SELECT, onSelectFile); _refAddFiles.browse(); } public function onSelectFile (event:Event):void { archivo.text =_refAddFiles.fileList [0].name; } public function ponernombre (nombre:String):void{ nomArch = archivo.text = nombre; } ]]> </mx:Script> <mx:TextInput width="130" id="archivo" click="addFiles();"/> </mx:HBox> my datagrid column: <mx:DataGridColumn headerText="Nombre del Archivo" width="130" itemEditor="fileSelection" />

