awMC.onLoad = function(){ var aw = 1; } awMC.onEnterFrame = function(){ //不存在aw这个变量 } 一段非优化代码: function doSomething() { mx = 100 my = 100 ar = new Array() for (y=0; y < my; y ) { for (x=0; x < mx; x ) { i = (y * mx) x arr[i] = i } } return arr }
function doSomething() { var mx = 100 var my = 100 var ar = new Array() for (var y=0; y < my; y ) { for (var x=0; x < mx; x ) { var i = (y * mx) x arr[i] = i } } return arr }