Random Motion

I have created a page with 5 drag able icons, which change to buttons when they are dropped on different target areas, which I have working correctly. I have then incorporated the code from the Random Motion tutorial in the Action Script / Advanced section.\r\rWhen the page is tested the buttons move randomly but when I click the icon it highlights indicating it works as a button but it will not change over to a drag able item.\r\rDoes any one know how to adapt the following code from the tutorial so that when the button is picked up it stops moving randomly and reverts to it original state as a drag able button?\r\ronClipEvent (enterFrame) {\r move();\r}\r