Hello.
I have a flash movie where I want to have the ability to highlight text. I have a movie clip of a 50% yellow transparent box using the following code:
box.onMouseDown = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = this._yscale=0;
this._visible = true;
this.onMouseMove = function() {
this._xscale = _root._xmouse-this._x;
this._yscale = _root._ymouse-this._y;
updateAfterEvent();
};
};
box.onMouseUp = function() {
delete this.onMouseMove;
this._visible = true;
}
}
This works great, but I need to be able to draw more than one highlight box, and I need these boxes to attach themselves to a specifc mc so that they move along with it. Hope this makes sense. Any help would be much appreciated.