# How do you programatically issue a click event?

**URL:** <https://forum.kirupa.com/t/how-do-you-programatically-issue-a-click-event/67313>\
**Category:** flash\
**Created:** [October 14, 2004, 3:59pm UTC](https://forum.kirupa.com/t/how-do-you-programatically-issue-a-click-event/67313 "2004-10-14T15:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimVision](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jimvision/32/805_2.png) [@JimVision](https://forum.kirupa.com/u/JimVision)\
**Post date:** [October 14, 2004, 3:59pm UTC](https://forum.kirupa.com/t/how-do-you-programatically-issue-a-click-event/67313/1 "2004-10-14T15:59:25Z")

</div>

Hi Everyone. I have a TextField movieClip within my main swf. Then an external swf plays an mp3 (as a result of a prior action). When the external swf completes I would like to programatically click the TextField so that all the ActionScript within the TextField.onPress event will occur.

I don’t know how to programatically issue a click event. I could repeat all the code within the TextField.onPress event again within the external swf file but I thought it would be a lot easier just to programatically click the TextField again.

Or is there a way to call an object function? I hope this is an easy one. 🙂

Thank You!

JimVision
