Guys,
I got this XML
<data>
<month label="Jan"/>
<month label="Feb"/>
<month label="Mar"/>
<month label="Apr"/>
</data>
I want to make a time range selector for a column chart. I copied
this code from Macromedia's webblog:
(http://weblogs.macromedia.com/flex_samples/charts_explorer/line/LineS
lider.mxml)
----------------
AS:
private function getSliderLabel(value:String): void {
### return results.gen[parseInt(value)].label;
}
private function sliceResults(): void {
slicedResults= myData.lastResult.data.slice(slider.values
[0],slider.values[1]);
}
MXML:
<mx:HTTPService id="myData" useProxy="false"/>
<mx:Model id="results">
<gen>{myData.lastResult.data.month}</gen>
</mx:Model>
----------------
Unluckyly, it ain't working...I get and error on ### that says:
"The resturned value must not be defined"
Any ideas?
Thanks!
--
Matías Nicolás Sommi __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
Reply via email to
Hello, you have the function:
private function getSliderLabel(value:String): void.... it hasn't return value... you must specify a return type if you want to return something... like getSliderLabel(value:String):String... remember: function name(par:parType):funcReturnType.
2006/10/2, g_vaccarezza <[EMAIL PROTECTED]>: