1.9.4-alpha
My problems are
A flash movie has no onRollOut event (mouse out) that I can detect.
You can put an invisible layer over the movie that can detect mouse out events, but this then
captures the on click events, so clicking on a bar does not work, and selecting text does not work.
It also messes up the mouse pointer, so when you hover over an item that you can click on, the mouse
does not change to a little hand icon :-(
I tried using a timer function that checks the mouse position every 1/4 of a second, but when the mouse
is moved out of the flash movie, the 'get mouse coordinate' function still returns the last mouse position (for example 5,5)
The way I have tried to detect the mouse out event is to use a Javascript function:
function onrollout()
{
tmp = findSWF("chart");
x = tmp.rollout();
}
function findSWF(movieName) {
if (navigator.appName.indexOf("Microsoft")!= -1) {
return window[movieName];
} else {
return document[movieName];
}
}
But this doesn't seem to work very well. I think it has something to do with the size of the div?
This is the best example I could come up with, if you move the mouse off the chart slowly, the tool tip fades away.
But most of the time it doesn't.
Download the code here.
View the source to see what I am doing here. Please help if you can. Thanks, monk.e.boy.
|