Instant Replay is a small as3 service that can be used to record and playback user interactions.

Simply register the display object that you wish to record/playback.

InstantReplay.register(stage);

Next, when you’re ready to record interactions set the record property to true.

InstantReplay.record = true;

Finally, call the play function to playback the recorded interactions.

InstantReplay.play();

You’ll obviously also need to add an event listener to the display object that you’ve registered otherwise you won’t actually see anything happening.

private var bitmap:Bitmap;

public function Main():void 
{
	bitmap = new Bitmap(new BitmapData(50, 50, false, 0xFF0000));
	addChild(bitmap);

	stage.addEventListener(MouseEvent.MOUSE_MOVE, OnMouseMove);
}

private function OnMouseMove(e:Event):void 
{
	bitmap.x = e.stageX;
	bitmap.y = e.stageY;
}

Example below:
[kml_flashembed publishmethod=”static” fversion=”11.5.0″ movie=”https://peteshand.net/media/swfs/instantreplay.swf” width=”1080″ height=”500″ targetclass=”flashmovie” menu=”false” quality=”high” scale=”noscale” salign=”tl” wmode=”opaque”]

Get Adobe Flash player

[/kml_flashembed]

[repo path=”peteshand/instant-replay”]