I am trying to get a mobile application to change based around the time of day it is being used. I have a tutorial to do this but the code goes inside the MovieClip. http://www.flashkit.com/tutorials/Ti...-788/index.php

PHP Code:
onClipEvent (enterFrame) {
daynight = new Date();
dayframe daynight.getHours()+1;
this.gotoAndStop(dayframe);

Is it possible to get this to work with ActionScript on the timeline and will this work in Flash Lite?

Thanks in advance