Forward or back buttons based on x_position of mouse

Hey All,
There’s an effect i have seen on numerous image galleries or headers where depending on the x position of the mouse a forward arrow appears on the extrem right of the movie or conversly a back arrow on the extreme left.

Does anybody know of a source file or a tutorial that i can look at to get an understanding of the actionscripting involved in this.

Kind Regards,
Ben