# Using Global Variables to loop a movieclip

**URL:** <https://forum.kirupa.com/t/using-global-variables-to-loop-a-movieclip/167996>\
**Category:** flash\
**Created:** [November 3, 2005, 1:11am UTC](https://forum.kirupa.com/t/using-global-variables-to-loop-a-movieclip/167996 "2005-11-03T01:11:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knana](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@knana](https://forum.kirupa.com/u/knana)\
**Post date:** [November 3, 2005, 1:11am UTC](https://forum.kirupa.com/t/using-global-variables-to-loop-a-movieclip/167996/1 "2005-11-03T01:11:27Z")

</div>

I could use some help. I have an animation on the main stage and I want it to play or loop using the time of the host computer, like when the time says two, it loops twice or play twice.Some one suggested i should use the date object to store the hours using global variables so i can use these global variables to loop the animation but i dont know how to declare global variables in that case store the hours.  
knana
