Search about hittests in google. For an easier alternative, you could also do an if() checking if the character has exceeded the maximum y/x boundary in pixels... somthing like if(character._x <= 200){/*Dostuff*/};...
Sorry, not in a mood for writing, just came back from London, it's midnight (in Rio), equivalent to 4 o'clock in the morning in London. Wanna go ta sleep