[FMX] Easy SetInterval example

Hi,

I try to improve my AS skills, and i’m looking for a simple example of the set interval event. Where ever I look I see the most complicated Tuts and examples with stocks etc. Is there somebody who can help me with just a basic simple example. This is what I want to get familiar with the whole thing.

I have one button (btn_test) and one square(mc_square) on the stage. mc_square has the following AS attached:


onClipEvent (load) 
{
speed  = 3;
alpha =  0;
}
onClipEvent (enterFrame) 
{
a = alpha - _alpha;
_alpha += a/speed
}

What I want is, that when I click the button, the square is going from alpha 0 to alpha 100, but there has to be a delay of (lets say) 3 seconds before this happens. Please help!!!