I'm trying to write an event recorder/playback for Starling, so I can capture any touch events, save them to a file, and then play them back for automation purposes. I know you can do this in regular flash by just firing dispathEvent(). I've tried doing this in starling, like so: but my buttons aren't catching them. Perhaps it's because I can't fire it directly onto the starling stage?
var tv:Vector.<Touch> = new Vector.<Touch>();
tv.push(new Touch(0, 220, 460, TouchPhase.BEGAN, null));
mStarling.stage.dispatchEvent(new TouchEvent(TouchEvent.TOUCH, tv));
Anyone have any ideas on where to fire it so that it goes through the entire touch processing chain?