private function formatDateToString(dateObj:Object, column:GridColumn):String
{
var dateFormater:DateFormatter=new DateFormatter();
dateFormater.formatString="DD-MMM-YYYY H:NN:SS A";
var occDate:Date=new Date(Date.parse(dateObj.otAsesDate));
return dateFormater.format(occDate);
}
<s:GridColumn headerText="DATE" dataField="otAsesDate" labelFunction="formatDateToString"/>
---------------------------------------------------------------------------------------------
<s:Image buttonMode="true"
toolTip="Menu"
id="menuIcon"
source="@Embed('assets/images/Circle_Blue32.png')"
click="menuIcon_clickHandler(event)" backgroundColor="#F2F2F2"
mouseDownEffect="{mySounds}"/>
<mx:SoundEffect id="mySounds" source="@Embed('assets/chat_sound.mp3')"/>
-----------------------------------------------------------------------------------------------
<s:Label text="aa.com -"
fontWeight="bold"
fontSize="18"
click="navigateToURL(new URLRequest('http://www.annadurai.com/'), 'quote')"/>
------------------------------------
private function formatDateToString(formatDate:Date):String
{
var dateFormater:DateFormatter=new DateFormatter();
dateFormater.formatString="DD MMM YYYY L:NN:SS A ";
var dateString:String=dateFormater.format(formatDate);
return dateString;
}
<s:Label text="{formatDateToString(data.time)}"
id="doc99ServerTime"/>
---------------------------------------
var bk:Booking_Popup = new Booking_Popup();
bk.setStyle("addedEffect", image_removedEffect);
bk.setStyle("removedEffect", image_removedEffect);
PopUpManager.addPopUp(bk, this, true);
PopUpManager.centerPopUp(bk);
<mx:Parallel id="image_removedEffect">
<mx:Zoom />
<mx:Fade />
</mx:Parallel>
-----------------------------
[Embed("/assets/RoomBooking/minus.gif")]
[Bindable]
public var minus:Class;
No comments:
Post a Comment