Thought it might be handy to have this here... To get this working in Stencyl 2.2.0, add the following lines in the init():void function before loadStream();
addWhenUpdatedListener(null, update);
addWhenDrawingListener(null, draw);
addCollisionListener(actor, handleCollision);
And change #1
override public function update():void
to
public function update(list:Array):void
#2
override public function draw(g:Graphics, x:Number, y:Number):void
to
public function draw(list:Array, g:Graphics, x:Number, y:Number):void
#3
override public function handleCollision(event:Collision):void
to
public function handleCollision(list:Array, event:Collision):void