Hi
I still have a question for this.I try the feature,but it doesn't work
when I return the Array from function.but I need get current year in
a function.
The following code works fine
<mx:DateField x="160" y="159" disabledRanges = "{[{rangeEnd: new
Date(2007,11,31)},{rangeStart: new Date(2008,12,1)}]}" />
But the following code doesn't work, the function return an Array, I
am not sure if the Array format is ok or not.
<mx:Script>
<![CDATA[
[Bindable]
private var dataRang:Array;
private function disRange():Array{
dataRang =new Array("{rangeEnd: new
Date(2007,11,31)}","{rangeStart: new Date(2008,12,1)}");
return dataRang;
}
]]>
</mx:Script>
<mx:DateField x="160" y="129" disabledRanges = "{disRange()}" />
Please give me a help.
Thanks
Mark
--- In [email protected], Scott Melby <[EMAIL PROTECTED]> wrote:
>
>
http://livedocs.adobe.com/labs/flex3/langref/mx/controls/DateField.html#disabledRanges
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
> http://blog.fastlanesw.com
>
>
>
> markflex2007 wrote:
> > Hi,
> >
> > I want to limited DateField and let only select date in current
> > year.I want to set the disabledRange propery, Do you have a idea how
> > to set it?
> >
> > <mx:DateField x="160" y="129" disabledRange=?/>
> >
> > Please help me.Thanks
> >
> > Mark
> >
> >
> >
>