ya if u want to blink colon u have use separate labels, otherwise this code
will be sufficient ( not mine )

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
width="196" height="84" backgroundGradientAlphas="[1.0, 1.0]" alpha="1.0">

    <mx:Script>
        <![CDATA[
            import flash.utils.Timer;
            import flash.events.TimerEvent;



        private var timer:Timer;

        private function init():void {
            this.timer = new Timer(1000);
            this.timer.addEventListener(TimerEvent.TIMER, this.resetNow);
            this.timer.start();
        }


        private function resetNow(event:TimerEvent):void {
            this.clock.text = new Date().toLocaleTimeString();
        }

        ]]>
    </mx:Script>

    <mx:Text id ="clock" x="10" y="19" fontSize="17" fontWeight="bold"
width="152" creationComplete="this.init();"  textAlign="center"/>

</mx:Application>

On Wed, Mar 5, 2008 at 4:17 PM, Tom Chiverton <[EMAIL PROTECTED]>
wrote:

> On Wednesday 05 Mar 2008, Vivian Richard wrote:
> >    If you are using LED characters for the clock display
> >    then how do you make the " : " between the hour and
> >    minute characters blink to indicate that a second has
> >    passed?
>
> Replace the colon with a space if the seconds in the Date are even.
>
> --
> Tom Chiverton
> Helping to adaptively engineer seamless segments
> on: http://thefalken.livejournal.com
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England
> and Wales under registered number OC307980 whose registered office address
> is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
>  A list of members is available for inspection at the registered office. Any
> reference to a partner in relation to Halliwells LLP means a member of
> Halliwells LLP.  Regulated by The Solicitors Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged.  If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents.  If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
> --
> 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
>
>
>
>


-- 


Regards,
Yogesh

Reply via email to