This is the tutorial I've been looking for!
In my first game view I have kind of landscape with citizens, and I want the layers of landscape to have a subtle horisontal movement when user moves a mouse. I think this adds nice feeling of exploration!
The original tutorial is by Jesse Harding and the result should look like this. The original is made with as2, fortunately someone changed it to as3!
I actually had to change the code a bit as I didn't get it working. I guess my problems were connected somehow to stage width and height (my stage is 550*400). And now the objects move more like I need them to:
 import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, mouseMoveHandler);
function mouseMoveHandler(event:Event):void {
//If you want to hide the cursor, uncomment the next line
var cursorX:int = 550 - mouseX;
var cursorY:int = 400 - mouseY;
cir1.x = (cursorX * .15);
cir2.x = (cursorX * .15 + 450);
cir3.x = (cursorX * .01 + 350);
cir4.x = (cursorX * .05 + 200);