Saturday, October 14, 2006

Delegating Functions in Flash

This is more of a mental note for myself.

import com.dreamsocket.utils.Delegate;
#include "mc_tween2.as"

///////

function onHover(alphaValue,alphaTime,mcName):Void {
mcName.alphaTo(alphaValue,alphaTime)
}

///////

one_mc.onRollOver = Delegate.create(this, onHover, 0, 4 ,one_mc);

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home