View Full Version : ToolTip problem
Dewdan
03-07-2008, 04:20 PM
I am developing a tooltip a bit similar to the one here (http://cheathamlane.net/). I just can't find the right code to make it appear left or right or top depending where is it related to the screen. So that if the hotspot is near right corner it want open out screen. Like in cheathamlane's site.
Thanks for any good advise.
I will be posting my humble pano very soon :p
Scott Witte
03-09-2008, 12:10 AM
Daniel,
Go to flashpanos.com and download Zephyr excellent extensible tooltips plugin along with the fla file. If you really want to build your own you will learn a lot from the fla. Myself, I have enough programming projects on my plate already. ;)
cheathamlane
03-09-2008, 05:09 AM
I am developing a tooltip a bit similar to the one here (http://cheathamlane.net/). I just can't find the right code to make it appear left or right or top depending where is it related to the screen. So that if the hotspot is near right corner it want open out screen. Like in cheathamlane's site.
Hey Dewdan:
For the tooltips display at CheathamLane (http://cheathamlane.net/), I'm using the AS3 Tooltip from afcomponents.com. It's become very powerful, and is easy to code around.
I built a custom plugin around it for a client (and use a version of it for my site), that simply watches for the mouse placement on the stage.
Something like:
if (mouseX > (stage.stageWidth-myTooltip.width)) {
//move the tail to the right
}
if (myTooltip.width > (mouseX)) {
//move the tail to the left
}
if (myTooltip.height > (mouseY)) {
//move the tail to the top
}
I will be posting my humble pano very soon :p
Keep us posted!
Cheers,
Dewdan
03-11-2008, 09:58 AM
Thanks for the help.
I will try to implement it to my tooltip, but i think I will run into trouble :-)
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.