I have the same need and issue. Here is my use case. I retrive a
date field from a webservice and what I get is a string of the format

YYYY-MM-DD format. I would like to the DateField to select that date
and display it in the text field portion too. I use the following
code
dateField.selectedDate = DateField.stringToDate(value,"YYYY-MM-DD");
dateField.text=DateField.dateToString
(dateField.selectedDate,"MM/DD/YYYY");

Similarly when I need to scrape the data from the form and send it
back to the webservice, I need it in the YYYY-MM-DD form. I use
if (dateField.selectedDate != null)
  retVal = DateField.dateToString(dateField.selectedDate,"YYYY-MM-
DD");

I hope these functions can be made public or Adobe can publish and
alternate method of achieving the same.

Thanks,

--Raghu

--- In [email protected], "Anant Gilra" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> Did you explicitly try and access the function stringToDate or did
a
> customized DateField threw that error. If you have tried to call a
private
> method, the compiler would throw and error.
> Could you let me know why you need that function to be made
public, what are
> you actually tring to acheive.
> It would be good if you could provide a sample chunk of code/ log
a bug.
>
> Thanks,
> Anant.
>
> On 5/10/06, dpsweb <[EMAIL PROTECTED]> wrote:
> >
> > hi all!
> >
> > i installed f2b3 and i have a "big" probleman in DateField
Component:
> >
> > "Attempted access of inaccessible method stringToDate through a
> > reference with static type Class"
> >
> >
> > so i analize the source (DateField.as) and found:
> >
> > private static function stringToDate(valueString:String,
> > inputFormat:String):Date
> >
> > Why the method is "private" ? Why not a "public" ????
> >
> > I search in b2 to b3 change log, but nothing found about
DateField and
> > stringToDate ..........
> >
> > Any ideia ???
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>







--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to