Flash 函数
函数定义
语句
function myfunction(x):Number
{
return x*x;
}
_global.myfunc = function(x)
{
return x*x;
}
函数调用
如果非全局函数,必须通过路径访问。
a = myfunc(6);
b = abc.myfunction(5);