btw: There is also an event: EVENT_RELEASE you could use for your instruction..

if(event_type == EVENT_TOUCH)
{
my.mouse_over = 1;
}
if(event_type == EVENT_RELEASE)
{
my.mouse_over = 0;
}

//....
while(1)
{
if(my.mouse_over == 1 && mouse_right) { .. }
wait(1);
}