In AS3 I am trying to have my background scroll horizontally when the mouse is on the right side of the stage. (My background instance is called "bp".)


This isn't working:

while (mouseX > 600)
{bp.x -= 2;}