求教随机号码抽奖效果
下面代码有错如何修写
var myarray = ["01", "02", "03", "04", "05", "06"];
onEnterFrame = function () {
_root.text = myarray.random(6);
};
right.onRelease = function() {
_root.text = myarray.random(6);
};
wrong.onRelease = function() {
delete onEnterFrame;
};