# \[AS3\] Simple Event problem

**URL:** <https://forum.kirupa.com/t/as3-simple-event-problem/239491>\
**Category:** flash\
**Created:** [September 22, 2007, 12:05pm UTC](https://forum.kirupa.com/t/as3-simple-event-problem/239491 "2007-09-22T12:05:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ff45t1z](https://avatars.discourse-cdn.com/v4/letter/f/f1d935/32.png) [@ff45t1z](https://forum.kirupa.com/u/ff45t1z)\
**Post date:** [September 22, 2007, 12:05pm UTC](https://forum.kirupa.com/t/as3-simple-event-problem/239491/1 "2007-09-22T12:05:05Z")

</div>

Now, my experience with AS3 isn’t huge, I can do most things, but I’ve become stumped by what I think must be one of the simplest and silliest of problems.  
How would I add an EventListener so that when the movie is loaded it automatically executes a function?  
Surprisingly, I’ve never had to do this in the same way before, usually I can just piggyback off loader events to get this going.  
Anyone able to tell me how to get this going?
