Zoom Motion Blur, full actionscripted possible?

K well i’ve read this tutorial and it’s made me want to create this same effect, but the images ill be working with will be dynamic. Is there anyway possible to make this same effect but fully actionscripted so it will work with my dynamic content?

if so, could you please explain how it would be possible?