All you have to do is:

In your application mxml file, add this attribute to the Application tag:

xmlns:mycode="com.fmr.utils"

Then you can add your formatter with this code:

<mycode:QuickDateFormatter />

You use it by adding id="myQuickDateFormatter" to the tag.  An alternative is to put this code in <mx:Script> tags:

import com.fmr.utils;
QuickDateFormatter.format();

I have a feeling you want something more than this.  Feel free to ask again.
--- In [email protected], "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote:
>
> Hello all, I have created and documented a class that greatly
> simplifies the process of converting a date string to an alternately
> formatted date string. The current incarnation is described here:
> http://www.returnundefined.com/2006/07/quickdateformatter-efficient-date-formatting-in-as3/,
> but I am wondering how I would go about making a version that is able
> to be used in MXML. I know it would involve the creation of some
> public properties but beyond that I am pretty clueless. Can someone
> point me in the right direction?
>
> Thanks,
> Ben
>
__._,_.___

--
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