[Bada Software Development] rafaelvasconcelos:
hello guy, I'll provide some codes in AS3.

All codes exist in one example.

-

see video to add class of lockscreen for BADA

http://www.youtube.com/watch?v=T8ij-pWW4Yk

-

download class bada http://www.mediafire.com/?9igrlbfu7pcrxwu

to effects use greensock(the best class to tween, change color,.........)

https://www.greensock.com/

1° CLOCK

var fl_TimerInstance:Timer = new Timer(500);
fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
fl_TimerInstance.start();

function fl_TimerHandler(event:TimerEvent):void
{
var dat:Date = new Date();// call date variable
var hour = dat.hours;// call hours
var minute = dat.minutes;//call minutes
if (hour < 9)
{
hour = "0" + hour;
}

if (minute < 9)
{
minute = "0" + minute;
}
clockText.text = hour + ":" + minute;//to display the time in a text
}

download exemple: http://www.mediafire.com/download.php?70lmt6bs50232c5

2° move straight

import flash.geom.Rectangle;
import flash.events.MouseEvent;

mov.addEventListener(MouseEvent.MOUSE_DOWN, move);

var area:Rectangle = new Rectangle(35,240,200,0);//area (x,y,width,height)

function move(e:MouseEvent)
{
mov.startDrag(true,area);
stage.addEventListener(MouseEvent.MOUSE_UP, stopdrag);
}

function stopdrag(e:MouseEvent)
{
mov.stopDrag();
}

download exemple: http://www.mediafire.com/download.php?rqb6kikqy34raag

3°Clock with numbers PNG

var fl_TimerInstance:Timer = new Timer(1000);
fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
fl_TimerInstance.start();

function fl_TimerHandler(event:TimerEvent):void
{
var dt:Date = new Date();
var Nhour = dt.hours;
var Nminute = dt.minutes;
if (Number(Nhour) < 10)
{
Nhour = "0" + Number(Nhour);
}// end if

if (Number(Nminute) < 10)
{
Nminute = "0" + Number(Nminute);
}// end if

var _loc5 = String(Nhour).charAt(0);
var _loc4 = String(Nhour).charAt(1);
var _loc7 = String(Nminute).charAt(0);
var _loc6 = String(Nminute).charAt(1);
h1.gotoAndStop(Number(_loc5) + 1);
h2.gotoAndStop(Number(_loc4) + 1);
m1.gotoAndStop(Number(_loc7) + 1);
m2.gotoAndStop(Number(_loc6) + 1);

}
var dt:Date = new Date();
var Nhour = dt.hours;
var Nminute = dt.minutes;
if (Number(Nhour) < 10)
{
Nhour = "0" + Number(Nhour);
}// end if

if (Number(Nminute) < 10)
{
Nminute = "0" + Number(Nminute);
}// end if

var _loc5 = String(Nhour).charAt(0);
var _loc4 = String(Nhour).charAt(1);
var _loc7 = String(Nminute).charAt(0);
var _loc6 = String(Nminute).charAt(1);
h1.gotoAndStop(Number(_loc5) + 1);
h2.gotoAndStop(Number(_loc4) + 1);
m1.gotoAndStop(Number(_loc7) + 1);
m2.gotoAndStop(Number(_loc6) + 1);

download exemple: http://www.mediafire.com/download.php?gt7j8qfd6jx45p0

4° first unlock

import flash.events.MouseEvent;
import flash.events.Event;
import com.osp.flashextension.LockScreen;
import com.osp.flashextension.CallLogService;
var lockscreen:LockScreen;

mov.addEventListener(MouseEvent.MOUSE_DOWN, mover)

function mover(e:MouseEvent)
{
mov.startDrag()
stage.addEventListener(MouseEvent.MOUSE_UP, soltar)
stage.addEventListener(Event.ENTER_FRAME, test)
}
function soltar(e:MouseEvent)
{
mov.stopDrag()
stage.removeEventListener(MouseEvent.MOUSE_UP, soltar)
stage.removeEventListener(Event.ENTER_FRAME, test)
}
function test(E:Event)
{
if(mov.hitTestObject(test_unlock))
{
trace("unlock")
lockscreen = new LockScreen();
lockscreen.launchCallLogApp("previous");
stage.removeEventListener(Event.ENTER_FRAME, test)
}
if(mov.hitTestObject(test_sms))
{
trace("sms")
lockscreen = new LockScreen();
lockscreen.launchCallLogApp(CallLogService.CALL_LOG_TYPE_MESSAGING);
stage.removeEventListener(Event.ENTER_FRAME, test)
}
if(mov.hitTestObject(test_call))
{
trace("call")
lockscreen = new LockScreen();
lockscreen.launchCallLogApp(CallLogService.CALL_LOG_TYPE_MISSED_CALL);
stage.removeEventListener(Event.ENTER_FRAME, test)
}

}

download exemple: http://www.mediafire.com/download.php?vyhmwjlkcnuyy39

soon more........;)