Disregard my post... my problem appears to be related to the child initialization order of my ViewStack container. By using the creationComplete event on my label to call a function changing the label's text property, I was able to get it to work as expected.
--- In [email protected], "chubbohead" <[EMAIL PROTECTED]> wrote: > > I'm having a somewhat similar problem... I'm using a ViewStack that is > linked to a chart derived from the zinger chart example. When you > click on the chart, it changes the ViewStack to the canvas I want, and > is supposed to modify the .text for a Label using the > getDrillDownData(event.hitData.element.yField, event.hitData.item); > that they provide. > > The first time you click on the bars, the label text for both of these > events is presented as "undefined". On the second and subsequent > clicks, the labels are updated as expected. > > I'm no Flex or ActionScript expert, so I'm not sure if this is an > error with Flex or (more likely) a problem with my code. > > I'm playing with .dispatchEvent to see if that will initialize things > for me. > > --- In [email protected], "cnewroth55" <[EMAIL PROTECTED]> wrote: > > > > okay, I am trying to follow the zingerChart Example from MM Flex dev > > site and have created my own columnCHart, what I want to do is to pass > > the mouseClickData to my webservice, specificaly the field > > 'displaygrd' so that the CFC can use this as an argument to get > > employess out of DB I am not sure how to pass that data up to the > > correct spot. > > when I click a data column i get this error: > > "Array of input arguments did not contain a required parameter at > > position 2" > > > > Here is my code: > > can anyone help? > > > > <mx:WebService > > wsdl="http://127.0.0.1:8300/components/getdata.cfc?wsdl" > > id="getCountGrade1s"> > > <mx:operation name="getEmployees"> > > <mx:request> > > <GRADCE1CNT></GRADCE1CNT> > > <DISPLAYGRD></DISPLAYGRD> > > </mx:request> > > </mx:operation> > > <mx:operation name="getGrade1s" > > > <mx:request></mx:request> > > </mx:operation> > > </mx:WebService> > > <mx:Panel title="Active Grades for D350" width="40%" height="50%" > > xmlns:mx="http://www.macromedia.com/2003/mxml" > > > <mx:ColumnChart id="showpe" > > dataProvider="{getCountGrade1s.getGrade1s.result}" showDataTips="true" > > columnWidthRatio=".9" > > > mouseClickData="getCountGrade1s.getEmployees(event.hitData.element.yField, > > event.hitData.item).send()" > > > <mx:horizontalAxis> > > <mx:CategoryAxis > > dataProvider="{getCountGrade1s.getGrade1s.result}" > > categoryField="DISPLAYGRD" /> > > </mx:horizontalAxis> > > <mx:verticalAxis> > > <mx:LinearAxis name="Active" /> > > </mx:verticalAxis> > > <mx:series> > > <mx:Array> > > <mx:ColumnSeries name="Grade(s)" yField="GRADE1CNT" > > > <mx:fill> > > <mx:LinearGradient angle="0"> > > <mx:entries> > > <mx:Array> > > <mx:GradientEntry ratio="30" > > color="#258BC8" /> > > <mx:GradientEntry ratio="80" > > color="#82C9EB" /> > > <mx:GradientEntry ratio="100" > > color="#258BC8" /> > > </mx:Array> > > </mx:entries> > > </mx:LinearGradient> > > </mx:fill> > > </mx:ColumnSeries> > > </mx:Array> > > </mx:series> > > </mx:ColumnChart> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

