CanvasScript3
>
Tests
> BitmapData - Scroll
Code
var stage = new Stage("canvas", 420, 500, 24); var loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e) { var bitmap = loader.content; var bitmapdata = bitmap.bitmapData; loader.addEventListener(Event.ENTER_FRAME, function(e) { bitmapdata.scroll(0, 1); }); }); loader.load(new URLRequest('img/photo01.jpg')); stage.addChild(loader);
Canvas
Output