In case you need to get the time and format it too..
 
<mx:Style>
    @font-face{
    src:url("seven_segment.ttf");
    fontFamily: sevenSegment;
}
</mx:Style>
 
<mx:DateFormatter id="hrsMins" formatString="HH:MM" />
 <mx:Script>
  <![CDATA[
   var timeNow:Date = new Date();
     ]]>
 </mx:Script>
  <mx:Label text="{hrsMins.format(timeNow)}" fontFamily="sevenSegment" fontSize="12"/>
----- Original Message -----
Sent: Friday, September 15, 2006 1:10 PM
Subject: Re: [flexcoders] Current Time

Presumably you mean using a seven segment font?
 
You can get a seven segment font here: http://www.twyman.org.uk/Fonts/
copy the ttf to your project (I renamed the font to be "seven-segment.ttf", rather than "7 segment.ttf");
 
Embedd the font:
 
<mx:Style>
    @font-face{
    src:url("seven_segment.ttf");
    fontFamily: sevenSegment;
}
</mx:Style>
 
Then
 
<mx:Label text="12:27" font-family="sevenSegment" fontSize="12"/>
 
OK?
 
Paul
----- Original Message -----
From: KP
Sent: Friday, September 15, 2006 8:01 AM
Subject: [flexcoders] Current Time

 

Hi All,

 

Is there any way to show current time in below format?

 

 

 

 

 

Thanks

 

__._,_.___

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