资 源 简 介
This is a modification to the "AS3 ToolTip" provided by Duncan Reid here: http://blog.hy-brid.com/flash/25/simple-as3-tooltip/
I added the following:
Basically the main feature I needed was to have the tooltip be statically attached to an element on the page rather than follow the mouse. So, the parent element you pass in is the one I attach it to. I also added some cool features for positioning the tooltip to the left, right, top, bottom, top-right, top-left, bottom-right, and bottom-left with the hook adjusting as well – this took the majority of the time to add in. It still works with the mouse follow mode, and you can even use the positioning with it.
Here are the new properties I added:
private var _followMouse:Boolean = true; //true = normal behavior to follow the mouse, false = statically attach to parent object – make sure to set hitSizeWidth and hitSizeHeight to the width and height of parent object._
private var _tipPo