这是一个放在主场景第一真的动作,场景里面只有一个叫做mc的影片剪辑
函数可以这样引用吗?对影片剪辑写命令,可以这样吗!!!
MovieClip.prototype.movie = function() {
this._x -= (_root._xmouse-375)*.1;
if (this._x>0) {
this._x = -1079;
}
if (this._x<-1079) {
this._x = 0;
}
};mc.onEnterFrame = movie;
MovieClip.prototype.blend = function(obj, faktor) {
if (obj.hitTest(_root._xmouse, _root._ymouse, true)) {
obj._alpha = obj._alpha+(100-obj._alpha)/faktor;
} else {
obj._alpha = obj._alpha+(50-obj._alpha)/faktor;
}
};