Allow to edit textfield only on double click on that

hi there!

I want to add text field in a movieclip and when i double click on text field at that time only it should allow to edit. Again when i click for example an image then the textfield shouldn’t be edited.

Can somebody please tell me how this is possible ???

Thank you for any help…

Regards