Hello
I’ve created a flash file that positions background elements relative to x/ymouse movements. All works fine, but if you click outside of the browser window the values shoot up, and all background elements are positioned off stage.
I’ve “fixed” the problem by adding the following to my code…
onLoad = function(){
if (_root._ymouse < 2000){
yMouse = _root._ymouse;
} else {
//do nothing
}
}
(and same for x)
…which freezes the animation when you click outside. You need to click on the browser or swf again to activate it. I’d prefer a solution where clicking outside the boundaries of the browser is ignored.
It can be seen here…
http://www.firemonkey.info/clients/spearweb/
Any help is greatly appreciated!!
C