# How to call a function on a loaded SWF's timeline

**URL:** <https://forum.kirupa.com/t/how-to-call-a-function-on-a-loaded-swfs-timeline/331327>\
**Category:** flash\
**Created:** [July 8, 2013, 2:46pm UTC](https://forum.kirupa.com/t/how-to-call-a-function-on-a-loaded-swfs-timeline/331327 "2013-07-08T14:46:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squadjot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/squadjot/32/3479_2.png) [@squadjot](https://forum.kirupa.com/u/squadjot)\
**Post date:** [July 8, 2013, 2:46pm UTC](https://forum.kirupa.com/t/how-to-call-a-function-on-a-loaded-swfs-timeline/331327/1 "2013-07-08T14:46:39Z")

</div>

Hi , i’m used to work with AS2 where i would simply load a movieclip, and call a function like:

```auto

var myMc = createMovieClip("container",getNextHighestDepth())
var mcl:MovieClipLoader = new MovieClipLoader()
var myListener.onLoadInit = function(){
 myMc.helloWorld()
};
mcl.addListener(myListener)
mcl.load("anotherSWF.swf",myMc)

```

Here in AS3 i’m lost !!! - how do you do this?.. or is this not “The Way™” to do it anymore??.. i need help =[  
Edit: Obviously i’m using as3 loader, or greensocks loadermax, and use the evt.target.content… but i cannot do evt.target.content.helloWorld()
