# I need a way to know that the frame for my game actions has completely loaded!

**URL:** <https://forum.kirupa.com/t/i-need-a-way-to-know-that-the-frame-for-my-game-actions-has-completely-loaded/239789>\
**Category:** flash\
**Created:** [September 26, 2007, 12:17am UTC](https://forum.kirupa.com/t/i-need-a-way-to-know-that-the-frame-for-my-game-actions-has-completely-loaded/239789 "2007-09-26T00:17:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgedbucaran](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jorgedbucaran/32/4062_2.png) [@jorgedbucaran](https://forum.kirupa.com/u/jorgedbucaran)\
**Post date:** [September 26, 2007, 12:17am UTC](https://forum.kirupa.com/t/i-need-a-way-to-know-that-the-frame-for-my-game-actions-has-completely-loaded/239789/1 "2007-09-26T00:17:56Z")

</div>

function startButton\_click(e:MouseEvent) {  
play();  
addEventListener(Event.ENTER\_FRAME, run);  
}

How can I start the EnterFrame event and detect keyspress events.
