2006/03/11 | 一个简单但很实用的类
类别(Flash) | 评论(2) | 阅读(94) | 发表于 11:36
class loadInLevel {
  function loadInLevel(target, level, x, y) {
    loadMovieNum(target, level);
    _root.onEnterFrame = function() {
      trace(1);
      _root["_level"+level]._x = x;
      _root["_level"+level]._y = y;
      if (_root["_level"+level]._x == x && _root["_level"+level]._y == y) {
        delete _root.onEnterFrame;
      }
    };
  }
}
0

评论Comments

日志分类
首页[186]
Flash[84]
FMS[41]
AIR[2]
ASP[11]
作品区[12]
其他[36]