|
loadObject.loadMovie(url); startLoad(); } public function unload() { loadObject.unloadMovie(); } }
5、编写loading类
class Loading { var _path:MovieClip; function Loading(p) { _path = p; } function create(value) { _path.createTextField("loading", _path.getNextHighestDepth(), 0, 0, 0, 0); _path.loading.autoSize = true; _path.loading.text = "loading..."+value+"%"; _path.loading._x = (200-_path.loading._width)/2; _path.loading._y = (233-_path.loading._height)/2; } function clear() { _path.loading.removeTextField(); } }
制作广告播放器
1.图层介绍如下:
在"background"图层中,放置广告播放器的背景; 在"label" 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |