# Using time as a variable

**URL:** <https://forum.kirupa.com/t/using-time-as-a-variable/167585>\
**Category:** flash\
**Created:** [October 29, 2005, 5:24pm UTC](https://forum.kirupa.com/t/using-time-as-a-variable/167585 "2005-10-29T17:24:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingofnukes](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kingofnukes](https://forum.kirupa.com/u/kingofnukes)\
**Post date:** [October 29, 2005, 5:24pm UTC](https://forum.kirupa.com/t/using-time-as-a-variable/167585/1 "2005-10-29T17:24:20Z")

</div>

Hi. I’ve just taken and slightly modified a tutorial from [actionscript.org](http://actionscript.org). IT explained how to show the time in flash. I completed it and modified it to just show me the hours, minutes and seconds. I’m using it for a site I’m workin on. It was a tutorial for mx though, so I made a seperate swf an had it load into my site’s mian swf using the loadMovie script. Now I want to take the time experiance and push it farther. I want to know how I can take the time from the loaded swf (which has a dynamic textbox ofcourse) and use it as a variable. I want to basically two things:

how to get the variable from a loaded swf

How to have a variable control the tint of one MC and the rotation of another.

I’m having a MC fill the whole screen and tint to represent the darkness/brightness of the day and I’m going to have a sun/moon MC rotate past the screen.

Thanx for any and all help.
