工作就是工作,没法赶时髦,虽然AS3.0都出来很久了,但我们的一些东西还得用AS1.0来做
AS1.0也是可以写Class的,只是有点怪怪的
类文件 CustomCursor1.0.as 内容如下:
/*用例
#include "CustomCursor1.0.as"
myCursor=new CustomCursor()
myCursor.setCursor("myCursor",[mc1,mc2],{left:0,top:0,right:300,bottom:50})
*/
//构造函数
function CustomCursor() {
this.eventMC = _root.createEmptyMovieClip("myCursor_eventMC", 7085);
this.cursorMC = null;
this.areaObj = null;
this.targetArr = nu