Check out this post, and see if it helps.
Use it in conjunction with a for each object event.
for each object