Hi there, I am a bit of a newbie here and I've got a very silly problem. I've got an image moving around my SWF depending on what side of the .swf file the mouse cursor is.
Here it is: http://supr.is-a-geek.org/psd/flash.html
The problem is prolly very obvious: the image disappears when it should detect the border of SWF and bounce back.
here is the script for moving aorund:
code:
onClipEvent (load) {
x = 0;
}
onClipEvent (enterFrame) {
this._x += x;
if ((_root._xmouse>0) && (_root._xmouse<50)) {
if (x>-3) {
x -= 0.15;
}h
}
if ((_root._xmouse>715) && (_root._xmouse<765)) {
if (x<3) {
x += 0.15;
}
}
}
Any help would be much appreciated. Thanks!