Forced Mouse Position

I am making a game and a ship I made is suppose to follow your mouse position. After each new level, just as the new stage loads, the ship moves to the position of the mouse, which may be off the screen and force the ship to crash into something. Is there any way i can force the _xmouse and _ymouse to stay somewhere? like perse in the middle of the screen or something?

i’ve tried

_xmouse = 400;
_ymouse = 300;

but that obviously doesn’t work.

i still need an answer to my question? anyone out there that knows how to solve my little problem?

I don’t know of any way you can force a mouse position

you could make a new mouse in flash, and then that mouse allways stays in the file, because when your mouse goes off the flash swf, the flash swf mouse cant detect where it is… so it just stays there.

I’d say just have them click a button to go on to the next level, then you will know that it is on the movie.

yes ahahah, thats exactly what i did :wink:
i didn’t want to do it this way, but oh well…still works.

make mouse-position-dependent script
easy, like:

_xmouse>50 || _xmouse>350 ? trace('mouse is off the field') : null;