Hi,
I am calling an external swf in my main scene. It displays ok but it doesnt play the animation(easing picture) in it. Is the code correct? Is it a root problem?
Thank for helping!
Melissa Anne
MovieClip.prototype.easeXY = function(x, y) {
this.onEnterFrame = function() {
this._x = x-(x-this._x)/1.2;
this._y = y-(y-this._y)/1.2;
};
};
this.onEnterFrame = function() {
if (_root.mask.hitTest(_root._xmouse, _root._ymouse)) {
slidePic();
}
};
slidePic = function () { diffX = _root._xmouse-this._x;scaleX = diffX100/_root.mask._width;targetX = -scaleX(_root.pic._width-_root.mask._width)/100;diffY = _root._ymouse-this._y;scaleY = diffY100/_root.mask._height;targetY = -scaleY(_root.pic._height-_root.mask._height)/100;_root.pic.easeXY(targetX, targetY);};