[flexcoders] Re: vert scroll fix for Satish T J's PivotComponent?
Fixed it by editing OLAPDataGridEx.as. public function OLAPDataGridEx() needs a this.enabled = true; added to it. This is serious component :-) --- In flexcoders@yahoogroups.com, "chigwell23" wrote: > > Found exactly what I need in this amazing component, which is basically > unusable as there is no vertical scroll of the grid when the rows increase. > Has anybody figured out a fix for this? The author actually works for Adobe, > and I find it hard to believe that there have been no fixes to it for 18 > months, and that Adobe has not taken this component and run with it . a > useable version would make great presentation to the corporate world. TIA, > > Mic. > > I am going through the source now to see where the problem is, but wonder if > someone has already found it? >
[flexcoders] vert scroll fix for Satish T J's PivotComponent?
Found exactly what I need in this amazing component, which is basically unusable as there is no vertical scroll of the grid when the rows increase. Has anybody figured out a fix for this? The author actually works for Adobe, and I find it hard to believe that there have been no fixes to it for 18 months, and that Adobe has not taken this component and run with it . a useable version would make great presentation to the corporate world. TIA, Mic. I am going through the source now to see where the problem is, but wonder if someone has already found it?
[flexcoders] Expand/Collapse on OLAPDatagrid?
Is there anyway to get the first hierarchical column of the OLAPDataGrid to display node icons and expand/collapse a la ADG? TIA, Mic.
[flexcoders] Re: AdvancedDataGrid "virtual"/pivot column creation?
Aha can I use the OLAPDataGrid for this? I had thought that its dataprovider had to be in a cubespeak format, but I think I am reading that I can take my SQLServer2005 stored procedure XML result set and massage it into cubespeak with etc. Is this correct? --- In flexcoders@yahoogroups.com, "chigwell23" wrote: > > Not sure whether "virtual" or pivot is the right word, but the columns do not > exist as columns in the returned result set, but as data. > > MGR PROD SOLD > mgr1 beer 100.99 > mgr1 rice 200.55 > mgr1 soap 400.33 > mgr2 beer 123.50 > mgr2 rice 428.88 > mgr2 soap 555.55 > > I wish to turn this into > > MGR BEER RICE SOAP > mgr1 100.99 200.55 400.33 etc. > > I have the adg doing hierarchical trees, groupings and summaries etc but > cannot work out how to do what I think might be a pivot? Have learned a lot > with a google on flex adg pivot and flex adg dynamic column but have not > found the above yet. TIA, > > Mic. >
[flexcoders] AdvancedDataGrid "virtual"/pivot column creation?
Not sure whether "virtual" or pivot is the right word, but the columns do not exist as columns in the returned result set, but as data. MGR PROD SOLD mgr1 beer 100.99 mgr1 rice 200.55 mgr1 soap 400.33 mgr2 beer 123.50 mgr2 rice 428.88 mgr2 soap 555.55 I wish to turn this into MGR BEER RICE SOAP mgr1 100.99 200.55 400.33 etc. I have the adg doing hierarchical trees, groupings and summaries etc but cannot work out how to do what I think might be a pivot? Have learned a lot with a google on flex adg pivot and flex adg dynamic column but have not found the above yet. TIA, Mic.
[flexcoders] custom components destroy Flex design mode ....
This one is starting to really drive me crazy ... placing any one of a multitude of custom components on the mxml stops design mode from opening. Just grabbed the SteelPotato footerdatagrid to see if it can be seen if it is used. Nope - stops design mode. Wanted to try it because our implementation of Alex's solution also stops design mode from opening. The FlexLib buttons do the same thing - code them into source view and no more design view. How do you deal with this? Our corporate dashboards are starting to get very detailed and we need a WYSIWYG view to adjust things. Do we really have to compile, run application, view in browser, check, and then go back to source mode to increase the width of a button if needed? Any info really appreciated. TIA, Mic.
[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question
Ah this makes total sense - thanks Tracy will try that now --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > This returns ans XMLList: "lstRepRankDrill[0].record" You need a collection > to use filter. > > > > Assign that XMLList to an XMLListCollection and use that as the data > provider. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Friday, August 28, 2009 12:39 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection > dataprovider question > > > > > > I wish :-( That was the original code and gives a runtime error of: > > lstRepRankDrill[0].record.filterFunction = filterRepRankDtlChnl; > TypeError: Error #1089: Assignment to lists with more than one item is not > supported. > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > "Tracy Spratt" wrote: > > > > Ok ,you are not applying the filter to the dataProvider but rather to the > > parent that contains it. Put "lstRepRankDrill[0].record" and filter that. > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _ > > > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] > On > > Behalf Of chigwell23 > > Sent: Friday, August 28, 2009 2:53 AM > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > > Subject: [flexcoders] Re: Apply filterFunction to datagrid > XMLListCollection > > dataprovider question > > > > > > > > > > > > 1. Datagrid displays fine > > > > 2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the > > lstRepRankDrill XMLListCollection. This XML hierarchy format is returned > by > > myFlexSQL web service against SQLServer2005. > > > > 3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 "rows" of > > data that appear in the datagrid. > > > > 4. The XMLListCollection format: > > > > lstRepRankDrill (mx.collections.XMLListCollection) > > ...[0] (XML) > > .. > > . > > > > > > . > > . etc > > > > Code: > > - Datagrid declaration > > > > > > - load XMLListCollection with back end result set > > lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results); > > > > - add filter > > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; > > > > - filter code > > private function filterRepRankDtlChnl(item:XML):Boolean{ > > ...trace(item.toXMLString()); > > ...if(item.results.record.chnl_cd == "PREM") return true; > > ..else return false; > > } > > > > NOTE: trace(item.toXMLString()); in filter code prints all the data, not > > just one "row". Trace= > > > > item (XML) > > ... > > .. > > .. etc all 60 of them. > > > > So even though the grid data is fine, the filter is getting passed all the > > data, and the filter gets called once. I wonder if it is because the data > is > > hierarchical and there is a discrepancy between the dataprovider and the > > filter owner. The dataprovider is _inside_ the lstRepRankDrill > > XMLListCollection as lstRepRankDrill[0].record. The filter is placed on > the > > outside XMLListCollection : > > > > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; > > > > Its almost like where the filter is placed (XMLListCollection rather than > > dataprovider subnode lstRepRankDrill[0].record) is causing all the data to > > be forwarded into filter param item, and passed only once. > > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > > "Tracy Spratt" wrote: > > > > > > Lets clarify terminology. "dataProvider" must always be a list of some > > > kind, like an array, and XMLList an ArrayCollection or an > > XMLListCollection. > > > It can not be a single XML node. > > > > > > > > > > > > This expression should return an XMLList: lstRepRankDrill[0].record > > > > > > > > > > > > If you trace(lstRepRa
[flexcoders] Curious - anybody doing anything with Flex and MS Reporting Services 2005?
I am putting link buttons on the Flex app that point to RS report URLs, but wonder if there is a way of making it more integrated? TIA, Mic.
[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question
I wish :-( That was the original code and gives a runtime error of: lstRepRankDrill[0].record.filterFunction = filterRepRankDtlChnl; TypeError: Error #1089: Assignment to lists with more than one item is not supported. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Ok ,you are not applying the filter to the dataProvider but rather to the > parent that contains it. Put "lstRepRankDrill[0].record" and filter that. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Friday, August 28, 2009 2:53 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection > dataprovider question > > > > > > 1. Datagrid displays fine > > 2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the > lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by > myFlexSQL web service against SQLServer2005. > > 3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 "rows" of > data that appear in the datagrid. > > 4. The XMLListCollection format: > > lstRepRankDrill (mx.collections.XMLListCollection) > ...[0] (XML) > .. > . > > > . > . etc > > Code: > - Datagrid declaration > > > - load XMLListCollection with back end result set > lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results); > > - add filter > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; > > - filter code > private function filterRepRankDtlChnl(item:XML):Boolean{ > ...trace(item.toXMLString()); > ...if(item.results.record.chnl_cd == "PREM") return true; > ..else return false; > } > > NOTE: trace(item.toXMLString()); in filter code prints all the data, not > just one "row". Trace= > > item (XML) > ... > .. > .. etc all 60 of them. > > So even though the grid data is fine, the filter is getting passed all the > data, and the filter gets called once. I wonder if it is because the data is > hierarchical and there is a discrepancy between the dataprovider and the > filter owner. The dataprovider is _inside_ the lstRepRankDrill > XMLListCollection as lstRepRankDrill[0].record. The filter is placed on the > outside XMLListCollection : > > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; > > Its almost like where the filter is placed (XMLListCollection rather than > dataprovider subnode lstRepRankDrill[0].record) is causing all the data to > be forwarded into filter param item, and passed only once. > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > "Tracy Spratt" wrote: > > > > Lets clarify terminology. "dataProvider" must always be a list of some > > kind, like an array, and XMLList an ArrayCollection or an > XMLListCollection. > > It can not be a single XML node. > > > > > > > > This expression should return an XMLList: lstRepRankDrill[0].record > > > > > > > > If you trace(lstRepRankDrill[0].record.toXMLString()); //what do you see? > > > > > > > > Does your DG display correctly without the filter? > > > > > > > > Post the declaration for the dataGrid. > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _ > > > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] > On > > Behalf Of chigwell23 > > Sent: Thursday, August 27, 2009 2:09 PM > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > > Subject: [flexcoders] Re: Apply filterFunction to datagrid > XMLListCollection > > dataprovider question > > > > > > > > > > > > thanks for your time Tracy, yes absolutely the whole shooting match is > sent > > to the _one_ call to the function i.e. lstRepRankDrill, which is actually > > more than the dataprovider which is {lstRepRankDrill[0].record}. I know > that > > the fact there is only one call to the filter is significant, but do not > > know why, unless it is because I have to put the filter on > > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is > > hierarchical. Obviously I cannot put the filter on > lstRepRankDrill[0].record > > as i
[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question
1. Datagrid displays fine 2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by myFlexSQL web service against SQLServer2005. 3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 "rows" of data that appear in the datagrid. 4. The XMLListCollection format: lstRepRankDrill (mx.collections.XMLListCollection) ...[0] (XML) .. . . . etc Code: - Datagrid declaration - load XMLListCollection with back end result set lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results); - add filter lstRepRankDrill.filterFunction = filterRepRankDtlChnl; - filter code private function filterRepRankDtlChnl(item:XML):Boolean{ ...trace(item.toXMLString()); ...if(item.results.record.chnl_cd == "PREM") return true; ..else return false; } NOTE: trace(item.toXMLString()); in filter code prints all the data, not just one "row". Trace= item (XML) ... .. .. etc all 60 of them. So even though the grid data is fine, the filter is getting passed all the data, and the filter gets called once. I wonder if it is because the data is hierarchical and there is a discrepancy between the dataprovider and the filter owner. The dataprovider is _inside_ the lstRepRankDrill XMLListCollection as lstRepRankDrill[0].record. The filter is placed on the outside XMLListCollection : lstRepRankDrill.filterFunction = filterRepRankDtlChnl; Its almost like where the filter is placed (XMLListCollection rather than dataprovider subnode lstRepRankDrill[0].record) is causing all the data to be forwarded into filter param item, and passed only once. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Lets clarify terminology. "dataProvider" must always be a list of some > kind, like an array, and XMLList an ArrayCollection or an XMLListCollection. > It can not be a single XML node. > > > > This expression should return an XMLList: lstRepRankDrill[0].record > > > > If you trace(lstRepRankDrill[0].record.toXMLString()); //what do you see? > > > > Does your DG display correctly without the filter? > > > > Post the declaration for the dataGrid. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Thursday, August 27, 2009 2:09 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection > dataprovider question > > > > > > thanks for your time Tracy, yes absolutely the whole shooting match is sent > to the _one_ call to the function i.e. lstRepRankDrill, which is actually > more than the dataprovider which is {lstRepRankDrill[0].record}. I know that > the fact there is only one call to the filter is significant, but do not > know why, unless it is because I have to put the filter on > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is > hierarchical. Obviously I cannot put the filter on lstRepRankDrill[0].record > as it is XML and not an XMLListCollection. Am using DG not ADG if that makes > any difference. Eventually found 2 other Google questions out there with the > same scenario - one call to the filter with the whole XMLListCollection > being passed. No answers to them :-( > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > "Tracy Spratt" wrote: > > > > I don't use ADG all that much, but the filter functions should get a > > "record" node for each call of the filter function. Have you used > > toXMLString() to trace out the item? Inside the filter function you can > use > > any e4x expressions to traverse the xml, down into the child nodes or even > > up to parent nodes. > > > > > > > > I am pretty sure you are not getting the entire dataProvider in the > > function. Do the trace. > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _ > > > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] > On > > Behalf Of chigwell23 > > Sent: Thursday, August 27, 2009 4:25 AM > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > > Subject: [flexcoders] Re: Apply filterFunction to datagrid > XMLListCollection > > dataprovider question > > > > > > > > > > >
[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question
thanks for your time Tracy, yes absolutely the whole shooting match is sent to the _one_ call to the function i.e. lstRepRankDrill, which is actually more than the dataprovider which is {lstRepRankDrill[0].record}. I know that the fact there is only one call to the filter is significant, but do not know why, unless it is because I have to put the filter on lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is hierarchical. Obviously I cannot put the filter on lstRepRankDrill[0].record as it is XML and not an XMLListCollection. Am using DG not ADG if that makes any difference. Eventually found 2 other Google questions out there with the same scenario - one call to the filter with the whole XMLListCollection being passed. No answers to them :-( --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > I don't use ADG all that much, but the filter functions should get a > "record" node for each call of the filter function. Have you used > toXMLString() to trace out the item? Inside the filter function you can use > any e4x expressions to traverse the xml, down into the child nodes or even > up to parent nodes. > > > > I am pretty sure you are not getting the entire dataProvider in the > function. Do the trace. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Thursday, August 27, 2009 4:25 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection > dataprovider question > > > > > > I wonder if is even possible to use the filter function with hierarchical > XML, as all of the examples I have seen are of array collections or flat > XML? > > This I think is the problem - the complete data provider is being passed > into the item parameter of the filter i.e. the xml hierarchy in its > entirety. I am presuming that the filter wants one "row" at a time so it can > do its compare. Where do I have control of this? I am not sure I do since > the only code is > > lstRepRankDrill.filterFunction = filterRepRankDtlChnl; > > The data provider is > > dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML > hierarchy to get to the data. (Wrapper nodes are returned by SQL back end. > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > "Tracy Spratt" wrote: > > > > Break the code into smaller pieces and debug to see what is wrong. > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _ > > > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] > On > > Behalf Of chigwell23 > > Sent: Thursday, August 27, 2009 2:40 AM > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > > Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection > > dataprovider question > > > > > > > > > > > > private function filterRepRankDtlChnl(item:Object):Boolean{ > > if(item.results.record.chnl_cd == "PREM") return true; > > else return false; > > } > > > > Filter is not filtering and I think it maybe item.results.record.chnl_cd - > > the item:Object is in this format: > > > > item > > ... > > .. > > . > > . etc > > > > What is the correct "path" for chnl_cd and might this be the problem? TIA, > > > > Mic. > > >
[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question
I wonder if is even possible to use the filter function with hierarchical XML, as all of the examples I have seen are of array collections or flat XML? This I think is the problem - the complete data provider is being passed into the item parameter of the filter i.e. the xml hierarchy in its entirety. I am presuming that the filter wants one "row" at a time so it can do its compare. Where do I have control of this? I am not sure I do since the only code is lstRepRankDrill.filterFunction = filterRepRankDtlChnl; The data provider is dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML hierarchy to get to the data. (Wrapper nodes are returned by SQL back end. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Break the code into smaller pieces and debug to see what is wrong. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Thursday, August 27, 2009 2:40 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection > dataprovider question > > > > > > private function filterRepRankDtlChnl(item:Object):Boolean{ > if(item.results.record.chnl_cd == "PREM") return true; > else return false; > } > > Filter is not filtering and I think it maybe item.results.record.chnl_cd - > the item:Object is in this format: > > item > ... > .. > . > . etc > > What is the correct "path" for chnl_cd and might this be the problem? TIA, > > Mic. >
[flexcoders] Apply filterFunction to datagrid XMLListCollection dataprovider question
private function filterRepRankDtlChnl(item:Object):Boolean{ if(item.results.record.chnl_cd == "PREM") return true; else return false; } Filter is not filtering and I think it maybe item.results.record.chnl_cd - the item:Object is in this format: item ... .. . . etc What is the correct "path" for chnl_cd and might this be the problem? TIA, Mic.
[flexcoders] Re: SharedObject - do I need to stop it flushing at app exit?
Hi Tracy, that is when I assign the values - when the Save Prefs button is clicked. However, when the app quits, Flex autoflushes again, and the user might have changed some of the params but does not want them as "Prefs". It seems that this autoflush remembers where the values came from e.g. soDrctrDash.data.ddParamsVO.vpID = drctrDashParamsVO.vpID; soDrctrDash.data.ddParamsVO.rvpID = drctrDashParamsVO.rvpID; soDrctrDash.data.ddParamsVO.divID = drctrDashParamsVO.divID; and overwrites the saved user prefs with whatever the most recent values are. I have never had this happen before and wonder if it is anything to do with flash.net.registerClassAlias("soDrctrDash.DrctrDashParamsVO", DrctrDashParamsVO); soDrctrDash = SharedObject.getLocal("drctrDash"); TIA, Mic. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Don't assign values to the so until the user clicks the save prefs. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chigwell23 > Sent: Wednesday, August 26, 2009 12:25 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] SharedObject - do I need to stop it flushing at app > exit? > > > > > > Multiple dropdowns are used to configure stored procedure parameters to load > a dashboard view. A "Save Preferences" button saves the current > configuration to a local SO. The user can then change the parameters and > load different dashboard views . problem is that when the app quits it > autoflushes the latest parms and overwrites what the user saved. I looked > for a way of stopping the autoflush at app quit but could not find one. TIA, > > Mic. >
[flexcoders] SharedObject - do I need to stop it flushing at app exit?
Multiple dropdowns are used to configure stored procedure parameters to load a dashboard view. A "Save Preferences" button saves the current configuration to a local SO. The user can then change the parameters and load different dashboard views . problem is that when the app quits it autoflushes the latest parms and overwrites what the user saved. I looked for a way of stopping the autoflush at app quit but could not find one. TIA, Mic.
[flexcoders] Re: Overriding function not marked for override? Why ...
Hi Amy, both the column series and the line series use the same horizontal axis wrote: > > --- In flexcoders@yahoogroups.com, "Josh McDonald" wrote: > > > > Not sure I follow what you want, but could you manipulate a view of > your > > data, rather than having to mess about with charting internals? I > don't know > > much about charting so I don't know how much you can customize without > > getting into the secret sauce :) > > I'd think you could use a data function on the lineSeries to force it > to use the axis of the bar series. > > Just a thought; > > Amy >
[flexcoders] Re: Overriding function not marked for override? Why ...
require modifying any framework code. > > -Josh > > On Fri, Aug 1, 2008 at 12:13 PM, zyzzx00_99 <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > wrote: > > If you need to override functions in framework components that are > private (or what have you), why not just copy all of the code from > that component and make your own? Sure, future functionality might be > in-the-air, but for Flex3 stuff certain off-limits stuff is sometimes > needed. > > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> , > "chigwell23" wrote: > > > > Yes Josh it is protected read-only why would the flex developers > > intentionally cripple the functionality like this? Rhetorical question > > I guess :-( > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> > , "Josh McDonald" wrote: > > > > > > If it's a protected read-only, you won't be able to expose it > without > > > monkey-patching the original file, as _renderData is almost > > certainly going > > > to be private, so you can never set it. > > > > > > -Josh > > > > > > On Fri, Aug 1, 2008 at 8:37 AM, Amy wrote: > > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders@yahoogroups.com> , "chigwell23" > > > > wrote: > > > > > > > > > > Again thanks for all the help so far ... turns out that > > > > > > > > > > LineSeries.RenderData is a protected property > > > > > > > > > > renderDataproperty > > > > > renderData:Object [read-only] > > > > > > > > > > Stores the information necessary to render this series. > > > > > > > > > > Implementation > > > > > protected function get renderData():Object > > > > > > > > > > ... so I presume I have to subclass LineSeries to make it > publicly > > > > > available which gives errors on both attempts: > > > > > > > > > > package > > > > > { > > > > > import mx.charts.series.LineSeries; > > > > > > > > > > public class myLineSeries extends LineSeries > > > > > { > > > > > > > > > > // overriding a function not marked for override > > > > > // incompatible override > > > > > public function get renderData():Object{ > > > > > return super.renderData; > > > > > } > > > > > > > > > > // incompatible override > > > > > override public function get renderData():Object { > > > > return > > > > > super.renderData; } > > > > > > > > > > > > > > > } > > > > > } > > > > > > > > try > > > > > > > > override protected function get... > > > > > > > > > > > > > > > > > > > > -- > > > > Flexcoders Mailing List > > > > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > > > Search Archives: > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo > <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! > Groups > > > > Links > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > "Therefore, send not to know For whom the bell tolls. It tolls for > > thee." > > > > > > :: Josh 'G-Funk' McDonald > > > :: 0437 221 380 :: josh@ > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo > <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups > Links > > >(Yahoo! ID required) > >mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for > thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
[flexcoders] Re: Overriding function not marked for override?
Yes Josh it is protected read-only why would the flex developers intentionally cripple the functionality like this? Rhetorical question I guess :-( --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > If it's a protected read-only, you won't be able to expose it without > monkey-patching the original file, as _renderData is almost certainly going > to be private, so you can never set it. > > -Josh > > On Fri, Aug 1, 2008 at 8:37 AM, Amy <[EMAIL PROTECTED]> wrote: > > > --- In flexcoders@yahoogroups.com, "chigwell23" > > wrote: > > > > > > Again thanks for all the help so far ... turns out that > > > > > > LineSeries.RenderData is a protected property > > > > > > renderDataproperty > > > renderData:Object [read-only] > > > > > > Stores the information necessary to render this series. > > > > > > Implementation > > > protected function get renderData():Object > > > > > > ... so I presume I have to subclass LineSeries to make it publicly > > > available which gives errors on both attempts: > > > > > > package > > > { > > > import mx.charts.series.LineSeries; > > > > > > public class myLineSeries extends LineSeries > > > { > > > > > > // overriding a function not marked for override > > > // incompatible override > > > public function get renderData():Object{ > > > return super.renderData; > > > } > > > > > > // incompatible override > > > override public function get renderData():Object { > > return > > > super.renderData; } > > > > > > > > > } > > > } > > > > try > > > > override protected function get... > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >
[flexcoders] Overriding function not marked for override?
Again thanks for all the help so far ... turns out that LineSeries.RenderData is a protected property renderData property renderData:Object [read-only] Stores the information necessary to render this series. Implementation protected function get renderData():Object ... so I presume I have to subclass LineSeries to make it publicly available which gives errors on both attempts: package { import mx.charts.series.LineSeries; public class myLineSeries extends LineSeries { // overriding a function not marked for override // incompatible override public function get renderData():Object{ return super.renderData; } // incompatible override override public function get renderData():Object { return super.renderData; } } } Would appreciate any pointers. TIA, Mic.
[flexcoders] Can see series[0].seriesRenderData in debug - cannot code to it?
Hi all, Thanks very much for all your help so far ... I am now accessing the chart object from within the line renderer with: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { var lc:ColumnChart; var ls:LineSeries = parent as LineSeries; lc = ls.owner as ColumnChart; In examining debug, I found lc.series[0].seriesRenderData of type ColumnSeriesRenderData which "Represents all the information needed by the ColumnSeries to render" and within that seriesRenderData.renderedXOffset, The offset of each column from its x value, in pixels; seriesRenderData.renderedhalfWidth,Half the width of a column, in pixels; Thinking that I was now cooking with gas/petroleum/ethanol/mazola I coded var renderedXOffset:Number = lc.series[0].seriesRenderData.renderedXOffset to find that any reference to .seriesRenderData creates an error. If I can see this dot notation in the debug variable pane, shouldn't I be able to code it? Again TIA, Mic.
[flexcoders] Re: Chart: pass info about series1 to series2 lineSegmentRenderer callback?
Hi Johannes, The actual data to chart is of course already provided to the 2 series via the dataprovider - the reason I need series 2 renderer to know about series 1 is in order to position the line segments exactly above the series 1 columns as Flex auto adjusts those column positions based on underlying data/position of the moon etc :-) --- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]> wrote: > > i think you are making your own life difficult. calculate the values before > hand and render it then instead of trying to do it while you render, > > On Thu, Jul 31, 2008 at 7:26 PM, chigwell23 <[EMAIL PROTECTED]> wrote: > > > Hi Laurent, > > > > Yes true, but the data passed to the renderer is only the data for the > > associated series, and I also need the data for the first series in > > order to do my calcs within the renderer :-( > > > > > > --- In flexcoders@yahoogroups.com , Laurent > > Cozic wrote: > > > > > > Normally, the way to pass parameters to the item renderer is through > > its "data" property. So just make sure that your data provider > > contains whatever information you need to set the item renderer position. > > > > > > -- Laurent Cozic > > > > > > > > > Flash, Flex and Web Application development > > > http://pogopixels.com > > > > > > > > > > > > - Original Message > > > From: chigwell23 > > > To: flexcoders@yahoogroups.com > > > Sent: Thursday, July 31, 2008 4:33:54 PM > > > Subject: [flexcoders] Chart: pass info about series1 to series2 > > lineSegmentRenderer callback? > > > > > > > > > First question is whether I can pass actual parameters to a callback > > > in the first place? This is what I need to do: > > > > > > > > yField="sales" > > > > > > > > > > > > yField="percent" > > > lineSegmentRenderer ="PercentLineRen derer("orig callback params", > > > "new callback params")"> > > > > > > > > Conventionally of course the lineSegmentRenderer gets no params as a > > > callback. But in this instance I need to manipulate the position of > > > the "percent" line series lines through the renderer based on "sales" > > > series data so that the lines are positioned exactly over the columns > > > of the "sales" series". I have code in the renderer that positions the > > > lines, but different underlying data for the column series (2 side by > > > side cols for each data point), changes the width and horizontal > > > position of the columns and then the "percent" line fragments above no > > > longer line up. > > > > > > If I could get the "sales" series info to the "percent series > > > "renderer" I think I stand a chance of coding "interacting series" > > > > > > A big thank you in advance, > > > > > > Mic. > > > > > > > > > > > > > -- > j:pn > \\no comment >
[flexcoders] Re: Chart: pass info about series1 to series2 lineSegmentRenderer callback?
Hi Laurent, Yes true, but the data passed to the renderer is only the data for the associated series, and I also need the data for the first series in order to do my calcs within the renderer :-( --- In flexcoders@yahoogroups.com, Laurent Cozic <[EMAIL PROTECTED]> wrote: > > Normally, the way to pass parameters to the item renderer is through its "data" property. So just make sure that your data provider contains whatever information you need to set the item renderer position. > > -- Laurent Cozic > > > Flash, Flex and Web Application development > http://pogopixels.com > > > > - Original Message > From: chigwell23 <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Thursday, July 31, 2008 4:33:54 PM > Subject: [flexcoders] Chart: pass info about series1 to series2 lineSegmentRenderer callback? > > > First question is whether I can pass actual parameters to a callback > in the first place? This is what I need to do: > > yField="sales" > > > > yField="percent" > lineSegmentRenderer ="PercentLineRen derer("orig callback params", > "new callback params")"> > > Conventionally of course the lineSegmentRenderer gets no params as a > callback. But in this instance I need to manipulate the position of > the "percent" line series lines through the renderer based on "sales" > series data so that the lines are positioned exactly over the columns > of the "sales" series". I have code in the renderer that positions the > lines, but different underlying data for the column series (2 side by > side cols for each data point), changes the width and horizontal > position of the columns and then the "percent" line fragments above no > longer line up. > > If I could get the "sales" series info to the "percent series > "renderer" I think I stand a chance of coding "interacting series" > > A big thank you in advance, > > Mic. >
[flexcoders] Chart: pass info about series1 to series2 lineSegmentRenderer callback?
First question is whether I can pass actual parameters to a callback in the first place? This is what I need to do:
[flexcoders] Re: Can we subclass Application yet?
Hi Alex, yes in MXML - since we have a debug toolbar that appears on every view based on a flag, I wanted to put this visual component on the base Application class along with common public vars etc. Public vars etc work fine, but it seems as though you cannot put any visual mxml components on the base class. Shameless plug - if anyone knows you will :-) please please please could you look at my params to callback renderer question? Am about to resend rephrased in specific chart context. TIA, Mic. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > You can certainly subclass Application via AS. Are you trying to do it > in MXML? > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of chigwell23 > Sent: Wednesday, July 30, 2008 11:51 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Can we subclass Application yet? > > > > As far as I can tell the Flex2 problems with subclassing Application > still exist in Flex3 i.e. bye-bye mxml components on parent class? Is > this correct and has anybody worked around this? TIA, > > Mic. >
[flexcoders] Can we subclass Application yet?
As far as I can tell the Flex2 problems with subclassing Application still exist in Flex3 i.e. bye-bye mxml components on parent class? Is this correct and has anybody worked around this? TIA, Mic.
[flexcoders] pass extra params to callback?
This callback takes a LineSeriesSegment I think. What I want to do is pass more information about the chart to it, as in lineSegmentRenderer="myLineRenderer('mySeries','var1', 'var2')" and I expected this error: Initializer for 'lineSegmentRenderer': cannot parse value of type mx.core.IFactory from text 'myLineRenderer('mySeries')'. Is there a way of doing this? TIA, Mic.
[flexcoders] Re: modelLocator.testVO.test[i] indirection for modelLocator.testVO.test1?
Thanks Josh - you were posting just as I was! --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Close :) > > You want: > > modelLocator.testVO.["test" + i] > > -Josh > > On Tue, Jul 29, 2008 at 4:06 PM, chigwell23 <[EMAIL PROTECTED]> wrote: > > > modelLocator.testVO.test1 = "some string"; > > > > var i:int = 1; > > > > modelLocator.testVO.test[i]= "some string"; // gives error undefined > > > > property - how does one code this kind of indirection in Flex? TIA, > > > > Mic. > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >
[flexcoders] Re: modelLocator.testVO.test[i] indirection for modelLocator.testVO.test1?
And the answer is: modelLocator.testVO["test" + i] --- In flexcoders@yahoogroups.com, "chigwell23" <[EMAIL PROTECTED]> wrote: > > modelLocator.testVO.test1 = "some string"; > > var i:int = 1; > > modelLocator.testVO.test[i]= "some string"; // gives error undefined > > property - how does one code this kind of indirection in Flex? TIA, > > Mic. >
[flexcoders] modelLocator.testVO.test[i] indirection for modelLocator.testVO.test1?
modelLocator.testVO.test1 = "some string"; var i:int = 1; modelLocator.testVO.test[i]= "some string"; // gives error undefined property - how does one code this kind of indirection in Flex? TIA, Mic.
[flexcoders] chart LineSeries.form="horizontal" - how to tweek behaviour of "horizontal"?
Setting form="horizontal" for a chart LineSeries e.g. "horizontal": Draws only the vertical line from the x-coordinate of the first point to the x-coordinate of the second point at the y-coordinate of the second point. Repeats this for each data point. I want to adjust the x-coordinate starting position of the segments, and rather than write a custom item renderer thought it would be efficient to adjust the behaviour of "horizontal" However I am looking through the code of LineSeries.as, have found [Style(name="form", type="String", enumeration="segment,step,reverseStep,vertical,horizontal,curve", inherit="no")] and not sure where to go from here? TIA, Mic.
[flexcoders] Stopping the initial "random" date column sort on AdvancedDataGrid.
I have got the AdvancedDataGrid columns that display dates to sort correctly by putting full dates in the data ("2008/01/01") and using a label function with DateFormatter for the display ("MMM "). But when the grid first displays, Flex does what looks like a random ordering of the columns. How do I stop this happening? TIA, Mic.
[flexcoders] Re: sort "tree" column of AdvancedDataGrid
Bizarre - just found an example from the Cookbook (adg9:the Planets example) where the first tree folder column does sort - code is no different - only variation is that the array is defined from - not sure why that might make the difference? --- In flexcoders@yahoogroups.com, "chigwell23" <[EMAIL PROTECTED]> wrote: > > In looking at all the examples of AdvancedDataGrids where the first > column is the tree-folder created by hierarchical or grouped data, the > sort header is non-functional. Example : Taking the Adobe > Region:SouthWest example and adding Region:NorthEast, folders will not > resort. Should they sort? Is there a flag for this or does custom code > need to be written? TIA, > > Mic. >
[flexcoders] sort "tree" column of AdvancedDataGrid
In looking at all the examples of AdvancedDataGrids where the first column is the tree-folder created by hierarchical or grouped data, the sort header is non-functional. Example : Taking the Adobe Region:SouthWest example and adding Region:NorthEast, folders will not resort. Should they sort? Is there a flag for this or does custom code need to be written? TIA, Mic.
[flexcoders] Re: Footer for AdvancedDataGrid
Got Alex's DataFooterGrid converted to AdvancedDataGrid and working with grouped data. --- In flexcoders@yahoogroups.com, "chigwell23" <[EMAIL PROTECTED]> wrote: > > Appreciate suggestions for this ... are there any updates to the > earlier solutions e.g. Alex's DataFooterGrid etc? Which are excellent > but do not seem to work with grids which need grouped data from flat > sources ... I don't think the DataFooterGrid inherits enough to do > this - lot of properties not available. Thanks in advance, > > Mic. >
[flexcoders] Footer for AdvancedDataGrid
Appreciate suggestions for this ... are there any updates to the earlier solutions e.g. Alex's DataFooterGrid etc? Which are excellent but do not seem to work with grids which need grouped data from flat sources ... I don't think the DataFooterGrid inherits enough to do this - lot of properties not available. Thanks in advance, Mic.
[flexcoders] tab delimited to xml?
Is there actionscript somewhere that already does this or do I need to roll my own? As always, much appreciated, Regards, Mic
[flexcoders] Help: sanity check - debug versus LiveDocs?
Following on from my message about retrieving the series array from the clicked LegendItem using LegendMouseEvent, a little digging put me back into the "is it me or is it me?" mode. I read LiveDocs, work out what is passed and then try and trap it and there is nothing there :-) Latest scenario:
[flexcoders] chart - reference to series source array from LegendMouseEvent?
private function chartFilter(event:LegendMouseEvent):void{ if (event.item."series array that legend represents" Can I click on a LegendItem and then work out which array sources the selected series? TIA, Mic.
[flexcoders] Re: Displaying chart legend from multiple data provider series?
Found it in LiveDocs :-) --- In flexcoders@yahoogroups.com, "chigwell23" <[EMAIL PROTECTED]> wrote: > > Before I start merging arrays etc, wondered if there is an easier > solution. > > > > What happens if data providers are chart, chart1, chart2, chart3? > > TIA, > > Mic. >
[flexcoders] Displaying chart legend from multiple data provider series?
Before I start merging arrays etc, wondered if there is an easier solution. What happens if data providers are chart, chart1, chart2, chart3? TIA, Mic.
[flexcoders] Cairngorm: bundling functions to complete a task?
Example: read a local shared object when user logs on, and send value from local shared object to back-end. The only example I have found of Cairngorm executing a use case of more than one function is a Cairnstore version where ValidateCreditCardCommand needs to continue with CompletePurchaseCommand. It does this by "creating the next event" i.e. when the Validate command has done its thing, it calls its executeNextCommand() method which public override function executeNextCommand() : void { // Create the "next" event. var purchaseEvent : PurchaseCompleteEvent = new PurchaseCompleteEvent(); // Dispatch the event. nextEvent = purchaseEvent; super.executeNextCommand(); // Clear the event. nextEvent = null; } Is this how one approaches more complex tasks in Cairngorm? So I would encapsulate the SO read in a event/command/delegate trio, and then call a value to backend trio by generating its event from the SO command. If this is the Cairngorm way, would I try to pass the read in SO value with the command generated event, or should I write the value to the ModelLocator, and then read it back from the ModelLocator with the command of the second event? TIA, Mic
[flexcoders] Re: Close gap between HBoxes placed in VBox?
Thanks Dale - I skipped over this property as it showed no value in FlexProperties ... setting it to 0 closed the gap. What value is the default, that creates a gap but does not register in FlexProperties? Mic. --- In flexcoders@yahoogroups.com, "Dale Fraser" <[EMAIL PROTECTED]> wrote: > > On the VBOX > > > > verticalGap="0" > > > > Regards > > Dale Fraser > > <http://learncf.com/> http://learncf.com > > <http://flexcf.com/> http://flexcf.com > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of chigwell23 > Sent: Wednesday, 14 May 2008 6:22 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Close gap between HBoxes placed in VBox? > > > > Hi Dale, > > No padding values set according to FlexProperties. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , > "Dale Fraser" wrote: > > > > Change the padding > > > > > > > > > > > > Regards > > > > Dale Fraser > > > > <http://learncf.com/> http://learncf.com > > > > <http://flexcf.com/> http://flexcf.com > > > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] > On > > Behalf Of chigwell23 > > Sent: Wednesday, 14 May 2008 5:47 PM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Close gap between HBoxes placed in VBox? > > > > > > > > When e.g. 3 HBoxes at 100%/100% are placed within a VBox, they are > > separated by small gaps vertically. Is there any way to close these > > gaps? TIA, > > > > Mic. > > >
[flexcoders] Re: Close gap between HBoxes placed in VBox?
Hi Dale, No padding values set according to FlexProperties. --- In flexcoders@yahoogroups.com, "Dale Fraser" <[EMAIL PROTECTED]> wrote: > > Change the padding > > > > > > Regards > > Dale Fraser > > <http://learncf.com/> http://learncf.com > > <http://flexcf.com/> http://flexcf.com > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of chigwell23 > Sent: Wednesday, 14 May 2008 5:47 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Close gap between HBoxes placed in VBox? > > > > When e.g. 3 HBoxes at 100%/100% are placed within a VBox, they are > separated by small gaps vertically. Is there any way to close these > gaps? TIA, > > Mic. >
[flexcoders] Close gap between HBoxes placed in VBox?
When e.g. 3 HBoxes at 100%/100% are placed within a VBox, they are separated by small gaps vertically. Is there any way to close these gaps? TIA, Mic.
[flexcoders] Re: Supressing drag/move of PopupManager window?
Thanks Alex - this is exactly what I was looking for. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Try setting isPopUp=false > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Thursday, May 08, 2008 10:53 AM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Supressing drag/move of PopupManager window? > > > > Oops, includeInLayout is not needed in an absolute position container. > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Thursday, May 08, 2008 1:51 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Supressing drag/move of PopupManager window? > > > > One solution would be to not use popupManager, but declare it at the end > of an absolute layout container (to keep it on top) and toggle visible > and includeInLayout properties to show/hide. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of chigwell23 > Sent: Thursday, May 08, 2008 5:51 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Supressing drag/move of PopupManager window? > > > > What is the best way to fix a Panel or TitleWindow etc in position > after the PopupManager has popped it? The Drag methods and Move > methods could be overridden, but I am thinking that there is an easier > way? TIA, > > Mic. >
[flexcoders] Supressing drag/move of PopupManager window?
What is the best way to fix a Panel or TitleWindow etc in position after the PopupManager has popped it? The Drag methods and Move methods could be overridden, but I am thinking that there is an easier way? TIA, Mic.
[flexcoders] Re: Wrap button text?
Answering myself: just found Alex Harui's MultiLineRadioButton class. --- In flexcoders@yahoogroups.com, "chigwell23" <[EMAIL PROTECTED]> wrote: > > I know that some time ago there was discussion on how to wrap the text > on a button, and the workarounds were rather convoluted . any > advances on this one? TIA, > > Mic. >
[flexcoders] Wrap button text?
I know that some time ago there was discussion on how to wrap the text on a button, and the workarounds were rather convoluted . any advances on this one? TIA, Mic.
[flexcoders] Re: Cairngorm - always event, always command? Part2
Appreciate any clarification on the following - am converting my previously non -service embedded functions to Cairngorm. Command + Delegate works by the responder calling "result" or "fauLt" in Command. Responder is added to Service, right? So in my banal example of "add 1 + 1", where does the responder come from that calls result() in Command? My typical Delegate would be public function signon( signonAttempt:LoginVO ):void { var call:Object = service.signon(signonAttempt) ; call.addResponder( responder ); } Who does the "1+1"?. I have got pretty good at learning from example code - I find it very interesting that all examples of Cairngorm show a call to the backend - there are no examples of using Cairngorm to execute any other kind of function e.g. my real need to manipulate a SO on the local client - which I do embedded but want to keep to a standard (Cairngorm). As always, TIA, Mic. --- In flexcoders@yahoogroups.com, "Douglas Knudsen" <[EMAIL PROTECTED]> wrote: > > certainly use the pattern for reading from a SO. Your Command should be > clueless if its a SO or RPC call, the Delegate does that job. Consider the > case where you switch from storage in your SO to say S3 or a big phat Oracle > DB. You only need change your delegate. You can also have a Command that > mutates your Model in some way that doesn't need any Delegate or Responder. > > Now, if you just want to add 1 + 1, try Googling on 'AbacusCommand' hehe! > > DK > > On Fri, May 2, 2008 at 3:55 AM, chigwell23 <[EMAIL PROTECTED]> wrote: > > > Thanks Jim. With the Delegate and Responder stuff, it seems on the > > surface that Cairngorm is predisposed to service/backend communication > > solutions. Taking the example of a function that at the moment is > > reading Shared object data - how would this be Cairngormed? When the > > Command code is reached, does one just stay there and run the SO code? > > i.e. does one move all the function code into a Command function for > > non-service oriented activity? Forget Delegates and Responders? > > > > Really interested in what people think here, as the majority of > > Cairngorm examples I have seen, have used Cairngorm events for the > > service-oriented stuff, but have "regressed" to embedded functions for > > the rest. > > > > I would really like someone to show me how "add 1+ 1" is Cairngormed > > being serious here! Thanks in advance, > > > > Mic. > > > > --- In flexcoders@yahoogroups.com , "Jim > > Hayes" wrote: > > > > > > > > > I can't see how you'd benefit from sidestepping the cairngorm event > > -> command way of working in this case. > > > If you use a service to get the IP address then it's asynchronous, > > and has a few possible outcomes. > > > I can't see why you wouldn't want to wait for it's "got one of those > > results or an error" event and then deal with the outcome. > > > Which is where the cairngorm way of doing things is really helpful. > > > > > > If it's synchronous (like opening a database or prefs file in AIR, > > say), then you could maybe skip cairngorm (I do, and get away with it, > > mostly). > > > In which case I can't see the benefit of thinking of (or packaging ) > > it as a cairngorm command. I'd rather put it somewhere else and know > > it was a different thing. > > > > > > But what I've found most of the time is that if you're going to do a > > cairngorm app then it's really worth going with the flow and doing > > pretty well everything that way, > > > even if it does mean writing 3 classes when you could get away with > > a local method. > > > Generally, when I've made short cuts like that it's come back and > > bitten me on the arse. > > > I do still do it when I'm in experimental/creative or lazy mode, but > > now I'll try to refactor it into the cairngorm way sooner rather than > > later. > > > Which is sometimes a bit boring, but there you go. > > > > > > Hope that makes (at least some) sense! > > > > > > > > > > > > -Original Message- > > > From: flexcoders@yahoogroups.com on > > behalf of chigwell23 > > > Sent: Thu 01/05/2008 22:51 > > > To: flexcoders@yahoogroups.com > > > Subject: [flexcoders] Cairngorm - always event, always command? > > > > > > pseudocode: > > > > > > creationComplete > > > var i
[flexcoders] Re: Cairngorm - always event, always command? Part2
Thanks Jim. With the Delegate and Responder stuff, it seems on the surface that Cairngorm is predisposed to service/backend communication solutions. Taking the example of a function that at the moment is reading Shared object data - how would this be Cairngormed? When the Command code is reached, does one just stay there and run the SO code? i.e. does one move all the function code into a Command function for non-service oriented activity? Forget Delegates and Responders? Really interested in what people think here, as the majority of Cairngorm examples I have seen, have used Cairngorm events for the service-oriented stuff, but have "regressed" to embedded functions for the rest. I would really like someone to show me how "add 1+ 1" is Cairngormed being serious here! Thanks in advance, Mic. --- In flexcoders@yahoogroups.com, "Jim Hayes" <[EMAIL PROTECTED]> wrote: > > > I can't see how you'd benefit from sidestepping the cairngorm event -> command way of working in this case. > If you use a service to get the IP address then it's asynchronous, and has a few possible outcomes. > I can't see why you wouldn't want to wait for it's "got one of those results or an error" event and then deal with the outcome. > Which is where the cairngorm way of doing things is really helpful. > > If it's synchronous (like opening a database or prefs file in AIR, say), then you could maybe skip cairngorm (I do, and get away with it, mostly). > In which case I can't see the benefit of thinking of (or packaging ) it as a cairngorm command. I'd rather put it somewhere else and know it was a different thing. > > But what I've found most of the time is that if you're going to do a cairngorm app then it's really worth going with the flow and doing pretty well everything that way, > even if it does mean writing 3 classes when you could get away with a local method. > Generally, when I've made short cuts like that it's come back and bitten me on the arse. > I do still do it when I'm in experimental/creative or lazy mode, but now I'll try to refactor it into the cairngorm way sooner rather than later. > Which is sometimes a bit boring, but there you go. > > Hope that makes (at least some) sense! > > > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of chigwell23 > Sent: Thu 01/05/2008 22:51 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Cairngorm - always event, always command? > > pseudocode: > > creationComplete > var ipAddress:String > ipAddress = getUserIP() > > > function getuserIP():String{ > >// use Services to go out to ColdFusion which can tell me user IP >return IP >} > > But Cairngorm encapsulates "actions" into commands which are driven by > an event and a delegate. So how does it handle examples like the one > above? Should I create a getIP event, which is dispatched from > creationComplete, and use the standard command/delegate path. If the > event is not necessary, and it still makes sense to put the "action" > in a command, how would that command get activated without the > Cairngorm event process? I know what I mean . TIA, > > Mic. > > > > __ > This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. > > This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. > This email has been scanned for Primal Pictures by the MessageLabs Email Security System. > __ >
[flexcoders] Cairngorm - always event, always command?
pseudocode: creationComplete var ipAddress:String ipAddress = getUserIP() function getuserIP():String{ // use Services to go out to ColdFusion which can tell me user IP return IP } But Cairngorm encapsulates "actions" into commands which are driven by an event and a delegate. So how does it handle examples like the one above? Should I create a getIP event, which is dispatched from creationComplete, and use the standard command/delegate path. If the event is not necessary, and it still makes sense to put the "action" in a command, how would that command get activated without the Cairngorm event process? I know what I mean . TIA, Mic.
[flexcoders] Re: "Tapping into" the Cairngorm event model? Merging info from different compon
Thanks Tim, I like this approach - I wanted to try and stick with the Cairngorm way rather than start grafting bits on when I couldn't see how Cairngorm would do it. A definite eye opener for me to have a Cairngorm event without the attached command! But it makes total sense ... I learned something ... a good day :-) Mic. --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > For clarity, one addendum: use the CairngormEventDispatcher to dispatch > your Cairngorm events. > > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > > Hi Mic, > > > > One way that you can create a solution for your use case is to use > > Cairngorm events. > > > > A common misconception is that all Cairngorm events have to be > > registered to a command in the FrontController and that they all need > > to have an custom event class. They don't. In some cases, for > > simple component communication, you may want to just declare a > > Cairngorm event in the FrontController, but not register it to a > > command. This allows any component in the application to listen for > > the event, and then act accordingly. This is commonly done to avoid > > bubbling issues with standard Flash/Flex events. > > > > So, for your case, you could use the two events that you indicate; > > except make them Cairngorm events instead of Flash events. Declare > > them both in the FrontController and register only the signonEvent to > > a signonCommand. In the sun component dispatch the userLogAttempt > > event; when the user clicks the button. In the bench component, add > > an event listener for the userLogAttempt event. Then, in the > > bench's > > event listener method, dispatch the signonEvent; with the appropriate > > VO data attached. > > > > Hope that this helps, > > -TH > > > > --- In flexcoders@yahoogroups.com, "chigwell23" chigwell23@ wrote: > > > > > > PseudoGUI: > > > > > > Screen shows green fields, blue sky, yellow sun and a park bench. > > > The fields and the sky are the "main" scenery mxml file gui, and > both > > > the sun and the park bench are each mxml components loaded with the > > > standard > > > > > > > > > > > > > > > bench contains the username and password entry fields > > > sun contains the login button. > > > > > > Standard Cairngorm where all components are on same View = > > > > > > > > ... > > > private function signon(e:MouseEvent):void{ > > > var signonEvent:SignonEvent = new SignonEvent( new LoginVO ( > > > username.text, password.text)); > > > signonEvent.dispatch(); > > > } > > > ... > > > However here the entry fields are on one component, the login button > > > is on another and neither are the "parent". > > > > > > Do I dispatch an event from the sun indicating it was clicked: > > > > > > > > > [Event(name="userLogAttempt", type = "flash.events.Event")] > > > > > > .. > > > > > > private function signon2(e:MouseEvent):void > > > {var userLogAttempt:Event = new > > > Event("userLogAttempt"); > > > this.dispatchEvent(userLogAttempt); > > > . > > > > > > > > > > > > and then trap the sun click event on the scenery parent: > > > > > > private function userLogAttempt():void{ > > > Alert.show("Sun clicked = logon attempt"); // should be able to > > > extract username and password from bench child? Build VO here and > > > dispatch classic Cairngorm event > > > . } > > > > > > > > > userLogAttempt="userLogAttempt()"> > > > > > > . > > > > > > where I should be able to extract the username and password from the > > > bench child, right? And then dispatch a classic Cairngorm event? > > > > > > or is there a 'Cairngorm' way of doing this? TIA, > > > > > > Mic. > > > > > >
[flexcoders] "Tapping into" the Cairngorm event model? Merging info from different components
PseudoGUI: Screen shows green fields, blue sky, yellow sun and a park bench. The fields and the sky are the "main" scenery mxml file gui, and both the sun and the park bench are each mxml components loaded with the standard bench contains the username and password entry fields sun contains the login button. Standard Cairngorm where all components are on same View = [Event(name="userLogAttempt", type = "flash.events.Event")] .. private function signon2(e:MouseEvent):void {var userLogAttempt:Event = new Event("userLogAttempt"); this.dispatchEvent(userLogAttempt); . and then trap the sun click event on the scenery parent: private function userLogAttempt():void{ Alert.show("Sun clicked = logon attempt"); // should be able to extract username and password from bench child? Build VO here and dispatch classic Cairngorm event . } userLogAttempt="userLogAttempt()"> . where I should be able to extract the username and password from the bench child, right? And then dispatch a classic Cairngorm event? or is there a 'Cairngorm' way of doing this? TIA, Mic.
[flexcoders] Re: still having trouble assembling Flex property assignments from string calcs
Thanks for the responses - (missed quotes was in my example not code :-)) - what I need to do generically is communicate with Flex objects and their properties by constructing their ids etc. My example was for a degrafa UI instance of class Surface, which has a child of fill221 which has a property of color, which might have been too convoluted an explanation say I have 5 HBoxes in a Canvas, with ids of H1, H2,H3,H4, H4. in a script block I can H1.width = 100; // standard coding Pseudocode: ["H" + var1].width = 100 // var1 = 1 and the concatenation creates id H1, setting its width to 100 Thus in a loop of 1 to 5, one could use the value of i ["H" + i].width to set the width of the 5 HBoxes TIA, Mic. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I don't know if he's using non-UIComponents or not. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Friday, April 25, 2008 11:06 AM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] still having trouble assembling Flex property > assignments from string calcs > > > > I am a bit surprised the assignment works. I was under the impression > that for styles, we needed to use setStyle(). > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Alex Harui > Sent: Friday, April 25, 2008 1:37 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] still having trouble assembling Flex property > assignments from string calcs > > > > You don't have quotes around #FF. > > > > It would help if you tell us what problem occurs when you do this. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of chigwell23 > Sent: Friday, April 25, 2008 12:01 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] still having trouble assembling Flex property > assignments from string calcs > > > > testSurface.fill221.color = "#FF"; //works > > testSurface.["fill" + fillNo].color = #FF // fillNo = 221 > > is what I would do in another life :-) ... could someone set me on the > straight and narrow? TIA, > > Mic. >
[flexcoders] still having trouble assembling Flex property assignments from string calcs
testSurface.fill221.color = "#FF"; //works testSurface.["fill" + fillNo].color = #FF // fillNo = 221 is what I would do in another life :-) ... could someone set me on the straight and narrow? TIA, Mic.
[flexcoders] Apologies for repeated message on XML children ....
Machine bombed just I was sending first copy waited forever to see if it showed up on list finally decided it was lost and rewrote it. Mic.
[flexcoders] how to access child XML node with [EMAIL PROTECTED]
XML node: for each (var line:XML in pathsXML) { var style:String = [EMAIL PROTECTED];// works var dataPath:String = [EMAIL PROTECTED]; // Does not work :-) // split pairs } How do I access d? TIA Mic
[flexcoders] how to access child XML node with [EMAIL PROTECTED]
XML node: for each (var line:XML in pathsXML) { var style:String = [EMAIL PROTECTED]; /* var dataPath:String = [EMAIL PROTECTED]; */ var dataPath:String = [EMAIL PROTECTED]; var attrPairs:Array = style.split(";"); var colour:String = extractRGB(attrPairs); if (colour!=null) { __fills.addItem(colour); __paths.addItem(dataPath); } }
[flexcoders] How to get XML child node value with line.@ syntax?
XML Node: for each (var line:XML in pathsXML) { var style:String = [EMAIL PROTECTED]; // style = "fill: #ff" var dataPath:String = [EMAIL PROTECTED]; // not correct code :-( // do stuff } What is the correct code to get d? TIA, Mic
[flexcoders] Re: Advantages of empty Application Base State?
Makes absolute sense - thanks. --- In flexcoders@yahoogroups.com, "realeyes_jun" <[EMAIL PROTECTED]> wrote: > > The reason for doing this is because ultimately all viewstates in a > component are based on the base state, so it becomes more efficient > when changing into all those other viewstates that do not contain the > children listed in the base state: > > "When Flex changes to the new view state, it restores the base state, > applies any changes from the state determined by the basedOn > property, and then applies the changes defined in the new state." > http://livedocs.adobe.com/flex/3/html/using_states_3.html > > --- In flexcoders@yahoogroups.com, "chigwell23" > wrote: > > > > Several examples are coded where the Main.mxml base state is empty > and > > there is a child state called e.g. main App (start) containing the > > initial gui components. (Examples are based on the Flex multi-window > > architectures). > > > > Does this make cleaner coding? Because one could obviously jump > > straight into things without the extra child state? TIA. > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > as compared to > > > > > .> > > > > > > > > > > >
[flexcoders] Advantages of empty Application Base State?
Several examples are coded where the Main.mxml base state is empty and there is a child state called e.g. main App (start) containing the initial gui components. (Examples are based on the Flex multi-window architectures). Does this make cleaner coding? Because one could obviously jump straight into things without the extra child state? TIA. as compared to