[flexcoders] Animati a HSlider
Hi, i try to animate a mx:HSlider. I wannt the slider to move smoothly to his new value. idea how to do this? Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] Web: www.plan-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731
AW: [flexcoders] Addressing ArrayCollection Data elements Question
like this? fieldCol.text = dataArr[0].FieldName or you don't know the fieldname? fieldCol.text = dataArr[0][{FieldNameVar}] Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von Dan Pride [EMAIL PROTECTED] Gesendet: Dienstag, 8. Juli 2008 13:49 An: flexcoders@yahoogroups.com Betreff: [flexcoders] Addressing ArrayCollection Data elements Question Hi I am using the create app from database to create an xml interface with a lamp back end. It works great of course and is a great intro tool. I am trying to adapt it to pull a single set of values in response to a query without using a datagrid to catch the data. I can't for the life of me figure out how to address the elements. The query is returning zero or one record, and I want to grab the field values and fill in text fields. i.e. fieldCol.text = dataArr Thanks Dan Pride This board is awesome, and my thanks to all those up here who respond.
AW: AW: [flexcoders] Addressing ArrayCollection Data elements Question
try{ fieldCol.text = dataArr[0].FieldName; }catch(e:Error){} Yes, I know the field name but I keep getting range error and I know the value is there. but even when it isn't how do I trap the error when the value requested returns an array of zero elements? Thanks for the help. Dan Pride The exact error is... RangeError: Index '0' specified is out of bounds. at mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:422] at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:696] at Objects/findBasket2()[/Users/Lib/Documents/Flex Builder 3/Gezer/src/ObjectsScript.as:199] at Objects/__findBasketButton_click()[/Users/Lib/Documents/Flex Builder 3/Gezer/src/Objects.mxml:8] --- On Tue, 7/8/08, Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.com wrote: From: Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.com Subject: AW: [flexcoders] Addressing ArrayCollection Data elements Question To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Date: Tuesday, July 8, 2008, 8:11 AM like this? fieldCol.text = dataArr[0].FieldName or you don't know the fieldname? fieldCol.text = dataArr[0][{FieldNameVar}] Von: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [EMAIL PROTECTED]mailto:flexcoders%40yahoogroups.com] im Auftrag von Dan Pride [EMAIL PROTECTED]mailto:danielpride%40yahoo.com] Gesendet: Dienstag, 8. Juli 2008 13:49 An: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Betreff: [flexcoders] Addressing ArrayCollection Data elements Question Hi I am using the create app from database to create an xml interface with a lamp back end. It works great of course and is a great intro tool. I am trying to adapt it to pull a single set of values in response to a query without using a datagrid to catch the data. I can't for the life of me figure out how to address the elements. The query is returning zero or one record, and I want to grab the field values and fill in text fields. i.e. fieldCol.text = dataArr Thanks Dan Pride This board is awesome, and my thanks to all those up here who respond.
AW: AW: AW: [flexcoders] Addressing ArrayCollection Data elements Question
FieldName is the Variablename of your field! I don't know whats the content of your object. If you need more help, paste some code. :-) Sorry but was that FieldNam e; or FieldName e; Dan --- On Tue, 7/8/08, Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.com wrote: From: Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.com Subject: AW: AW: [flexcoders] Addressing ArrayCollection Data elements Question To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Date: Tuesday, July 8, 2008, 8:33 AM try{ fieldCol.text = dataArr[0].FieldName; }catch(e:Error){} Yes, I know the field name but I keep getting range error and I know the value is there. but even when it isn't how do I trap the error when the value requested returns an array of zero elements? Thanks for the help. Dan Pride The exact error is... RangeError: Index '0' specified is out of bounds. at mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:422] at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:696] at Objects/findBasket2()[/Users/Lib/Documents/Flex Builder 3/Gezer/src/ObjectsScript.as:199] at Objects/__findBasketButton_click()[/Users/Lib/Documents/Flex Builder 3/Gezer/src/Objects.mxml:8] --- On Tue, 7/8/08, Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.commailto:Andreas.Santoro%40plan-b-gmbh.com wrote: From: Andreas Santoro [EMAIL PROTECTED]mailto:Andreas.Santoro%40plan-b-gmbh.commailto:Andreas.Santoro%40plan-b-gmbh.com Subject: AW: [flexcoders] Addressing ArrayCollection Data elements Question To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Date: Tuesday, July 8, 2008, 8:11 AM like this? fieldCol.text = dataArr[0].FieldName or you don't know the fieldname? fieldCol.text = dataArr[0][{FieldNameVar}] Von: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [EMAIL PROTECTED]mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com] im Auftrag von Dan Pride [EMAIL PROTECTED]mailto:danielpride%40yahoo.commailto:danielpride%40yahoo.com] Gesendet: Dienstag, 8. Juli 2008 13:49 An: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Betreff: [flexcoders] Addressing ArrayCollection Data elements Question Hi I am using the create app from database to create an xml interface with a lamp back end. It works great of course and is a great intro tool. I am trying to adapt it to pull a single set of values in response to a query without using a datagrid to catch the data. I can't for the life of me figure out how to address the elements. The query is returning zero or one record, and I want to grab the field values and fill in text fields. i.e. fieldCol.text = dataArr Thanks Dan Pride This board is awesome, and my thanks to all those up here who respond.
[flexcoders] AdvancedDataGrid GroupingCollection
Hi, I have a component with an AdvancedDataGrid inside witch have a GroupingCollection. I Add this with PopupManager to the Screen. The first time i add it, everything is working, but if i remove the popup and ad id again with the PopupManager to the Screen, i can see the Data, but the grouping is lost. i tryed with [MygroupCollection]. refresh(). But it dosn't work. good ideas? Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] Web: www.plan-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731
AW: [flexcoders] How to clear an ArrayCollection
var arr:ArrayCollection = new ArrayCollection(); arr.removeAll() Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED] Web: www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731 Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von timgerr [EMAIL PROTECTED] Gesendet: Dienstag, 6. Mai 2008 06:30 An: flexcoders@yahoogroups.com Betreff: [flexcoders] How to clear an ArrayCollection Is there a command that will clear an array collection or do I have to use a loop to do it? Thanks, timgerr
AW: [flexcoders] questionfor AdvancedDataGrid?
you have a local Variable in your function private function QueueRequest():void{ var dpFlat:ArrayCollection = new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, CHANGE TO private function QueueRequest():void{ dpFlat= new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED] Web: www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731 Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von markflex2007 [EMAIL PROTECTED] Gesendet: Dienstag, 6. Mai 2008 15:55 An: flexcoders@yahoogroups.com Betreff: [flexcoders] questionfor AdvancedDataGrid? Hi, I have the following question about AdvancedDataGrid? The code works fine:(code 1) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#32669D xmlns:ext=nl.wv.extenders.panel.* width=854 mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:Southwest, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:Southwest, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:Southwest, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:Southwest, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:Southwest, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:Southwest, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:Southwest, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000} ]); ]] /mx:Script mx:Panel id=panel04 title=test panel x=255 y=100 width=575 height=342 layout=absolute mx:Label x=15 y=46 text= Requests in the queue: width=152 f/ mx:AdvancedDataGrid id=myADG x=36 y=72 initialize=gc.refresh(); width=520 height=218 mx:dataProvider mx:GroupingCollection id=gc source={dpFlat} mx:grouping mx:Grouping mx:GroupingField name=Territory/ /mx:Grouping /mx:grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn dataField=Region/ mx:AdvancedDataGridColumn dataField=Territory/ mx:AdvancedDataGridColumn dataField=Territory_Rep headerText=Territory Rep/ /mx:columns /mx:AdvancedDataGrid /mx:Panel /mx:Application -- This code doesn't work (code 2) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#32669D xmlns:ext=nl.wv.extenders.panel.* creati show=QueueRequest() width=854 mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var dpFlat:ArrayCollection ; private function QueueRequest():void{ var dpFlat:ArrayCollection = new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:Southwest, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:Southwest, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:Southwest, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:Southwest, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:Southwest, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:Southwest, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:Southwest, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000} ]); } ]] /mx:Script mx:Panel id=panel04 title=test panel x=255 y=100 width=575 height=342 layout=absolute mx:Label x=15 y=46 text= Requests in the queue: width=152 f/ mx:AdvancedDataGrid id=myADG x=36 y=72 initialize=gc.refresh(); width=520 height=218 mx:dataProvider mx:GroupingCollection id=gc source={dpFlat} mx:grouping mx:Grouping mx:GroupingField name=Territory/ /mx:Grouping /mx:grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn dataField=Region/ mx:AdvancedDataGridColumn dataField=Territory/ mx:AdvancedDataGridColumn dataField=Territory_Rep headerText=Territory Rep/ /mx:columns /mx:AdvancedDataGrid /mx:Panel /mx:Application -- The different between
AW: [flexcoders] Re: questionfor AdvancedDataGrid?
First, use CreationComplete as Event if you wannt to wait till the Application is ready. After you added your data to the ArrayCollection, you have to call gc.refresh() if you using Groupping in AdvancedDatagrid. this version works. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#32669D xmlns:ext=nl.wv.extenders.panel.* width=854 creationComplete=buildData() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dpFlat:ArrayCollection = new ArrayCollection(); private function buildData():void{ dpFlat = new ArrayCollection([{Region:Southwest, Territory:Arizona,Territory_Rep:Barbara Jennings, Actual:38865,Estimate:4}, {Region:Southwest, Territory:Arizona,Territory_Rep:Dana Binn, Actual:29885,Estimate:3}, {Region:Southwest, Territory:Central California,Territory_Rep:Joe Smith, Actual:29134,Estimate:3}, {Region:Southwest, Territory:Nevada,Territory_Rep:Bethany Pittman, Actual:52888,Estimate:45000}, {Region:Southwest, Territory:Northern California,Territory_Rep:Lauren Ipsum, Actual:38805,Estimate:4}, {Region:Southwest, Territory:Northern California,Territory_Rep:T.R. Smith, Actual:55498,Estimate:4}, {Region:Southwest, Territory:Southern California,Territory_Rep:Alice Treu, Actual:44985,Estimate:45000}, {Region:Southwest, Territory:Southern California,Territory_Rep:Jane Grove, Actual:44913,Estimate:45000}]); gc.refresh(); } ]] /mx:Script mx:Panel id=panel04 title=test panel x=255 y=100 width=100% height=100% layout=absolute mx:Label x=15 y=46 text= Requests in the queue: width=152 / mx:AdvancedDataGrid id=myADG x=36 y=72 initialize=gc.refresh(); width=520 height=218 m?xml version=1.0 encoding=utf-8? Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED] Web: www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731 Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von markflex2007 [EMAIL PROTECTED] Gesendet: Dienstag, 6. Mai 2008 16:23 An: flexcoders@yahoogroups.com Betreff: [flexcoders] Re: questionfor AdvancedDataGrid? Thanks. But I get error when I do this. private function QueueRequest():void{ dpFlat= new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, 'illegal assignment to class ArrayCollect' Now the question seems how to set a public arraycollection in function. Please help me.Thanks Mark --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Andreas Santoro [EMAIL PROTECTED] wrote: you have a local Variable in your function private function QueueRequest():void{ var dpFlat:ArrayCollection = new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, CHANGE TO private function QueueRequest():void{ dpFlat= new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED] Web: www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731 Von: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [EMAIL PROTECTED]mailto:flexcoders%40yahoogroups.com] im Auftrag von markflex2007 [EMAIL PROTECTED] Gesendet: Dienstag, 6. Mai 2008 15:55 An: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Betreff: [flexcoders] questionfor AdvancedDataGrid? Hi, I have the following question about AdvancedDataGrid? The code works fine:(code 1) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#32669D xmlns:ext=nl.wv.extenders.panel.* width=854 mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:Southwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:Southwest, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:Southwest, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:Southwest, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:Southwest, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:Southwest, Territory:Northern California
AW: [flexcoders] DataGrid custom itemRenderer using a ComboBox
Use ItemRenderer for Display and itemEditor for Edit. If you make the Grid editable you have what you want mx:DataGridColumn headerText=Description dataField=Description mx:itemEditor mx:Component mx:ComboBox width=100% / /mx:Component /mx:itemEditor mx:itemRenderer mx:Component mx:Label text = data.Text/ /mx:Component /mx:itemRenderer /mx:DataGridColumn Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von Fidel Viegas [EMAIL PROTECTED] Gesendet: Dienstag, 29. April 2008 09:35 An: flexcoders@yahoogroups.com Betreff: [flexcoders] DataGrid custom itemRenderer using a ComboBox Hi All, I am trying to implement a DataGrid with one of the columns as a ComboBox. The thing is that I want to show a label with an icon when the column is in a normal (non editable state), and show the combo box when the user clicks the column to edit it. Does anyone have an example or some tips on how to achieve this? Thanks in advance, Fidel.
[flexcoders] Merging Cells Datagrid
Hello. Is it possible to merge cells in a datagrid like in Excel? Andreas Santoro Senior Consultant Plan-B GmbH Kolpingstr. 6 D-73433 Aalen Tel.: +49 (0) 177 1762129 Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED] Web: www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/ Geschäftsführer Tobias Schmailzl Ralph Sturm Registergericht Ulm HRB 720355 Sitz der Gesellschaft ist Aalen Ust.ID DE250875731