Make an actor change trasparency with mouse movement

i have an actor that needs to change transparency when
a.) my mouse is moving
or
b.) my mouse is still
how do i do it?
a.) my mouse is moving
or
b.) my mouse is still
how do i do it?
Game Editor discussion board
http://game-editor.com/forum/
mousexp=xmouse;
mouseyp=ymouse;
if(xmouse!=mousexp || ymouse!=mouseyp)
{
// execute code
// so if you want to change transparency, do it here (this would be a draw event then)
}