Hello there!
This is my second post in this forum
Here is the problem:
I want to call a function from another function’s parameter but I don’t know how and don’t know if it is possible.
I’ve considered this as a solution but it didn’t worked.
function myFunc(target_mc:MovieClip, nX:Number, nY:Number, [COLOR=Red]**cFunc:Function**[/COLOR]) {
target_mc._x += nX;
targen_mc._y += nY;[COLOR=Red]
[/COLOR][COLOR=Red]**target_mc.onPress = cFunc**;[/COLOR]
}
function go() {
//some code goes here
}[COLOR=Red]
**myFunc(my_mc,50,50,go);**[/COLOR]
I hope you get the idea.
[SIZE=1]Sorry for my English :)[/SIZE]