We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Playing a Flash movie every hour.

Medium Priority
Last Modified: 2013-11-12
Hi, does anyone know of an ActionScript to start playing a movie every hour on the hour?  I am using Flash CS3 and AS3. Totally new at this.

Yesterday someone gave me a script on how to delay the movie my 90 seconds but customer now wants every hour.

I appreciate it. Thanks.
Watch Question

If the 90 secs movie worked, what's wrong with multiplying the delay by 40 to get 1 time per hour (simple maths 0 - are you ok with the maths ?)


Sorry - don't get it. Does this mean that it would play every hour? So if someone signs in at 2:20PM it will play at 3 and if someone signs in at 8:05 am, it would play ant 9am?
Seeing as the last script worked for you, I updated it for this scenario.

When you say:

new Timer(3600000);

...then the number is the amount of milliseconds to wait. Before then there was a second parameter:

new Timer(30000, 1);

...and that means that it runs once. If you leave that number out, or make it 0, then it will keep repeating forever.

Hope that helps!
var StartTimer:Timer = new Timer(3600000);
StartTimer.addEventListener(TimerEvent.TIMER, startMovie);
function startMovie(event:TimerEvent):void

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.