[FMX] Call back a function

Hi,

I have a made function to control the alpha of a few squares. The function looks like this:

[AS]function fadeSq (clip, fade, speed){
clip.onEnterframe= function(){
var fadeOut = fade - this._alpha;
this._alpha += fadeOut /speed;
}
}[/AS]

I know that I can call that function for one mc with:

[AS]fadeSq (square1, 0, 4);[/AS]

But is it also posibe to call the function for let’s say seven mc’s at once. I mean without writing seven lines of scrip?

Thanks in advance :wink: