How do I run a function when my program starts?

Hello,

I am totally new to AS3.0 and OOP in general, so this is a very basic question I can’t seem to figure out.

I have a package.

Inside that package is a class.

Inside that class is a function that initializes a timer called setTimer()

I am trying to run setTimer() when the program starts, but it seems that wherever I put the line setTimer(); in the program, I get an error.

How and where can I run this function just once when the program starts, so I can initialize my timer?

Thanks.