Howto swap instances with actionscript?

Hi,
How can I swap instances using actionscript? Similar to the way you would when you use the swap symbols button on the propertys tool bar.

I want to swap the graphics of the mouse after an event occurs.

Thanks for any help!