# How to call a function from a loaded swf?

**URL:** <https://forum.kirupa.com/t/how-to-call-a-function-from-a-loaded-swf/237608>\
**Category:** Uncategorized\
**Created:** [August 31, 2007, 9:36pm UTC](https://forum.kirupa.com/t/how-to-call-a-function-from-a-loaded-swf/237608 "2007-08-31T21:36:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fenryll](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@Fenryll](https://forum.kirupa.com/u/Fenryll)\
**Post date:** [August 31, 2007, 9:36pm UTC](https://forum.kirupa.com/t/how-to-call-a-function-from-a-loaded-swf/237608/1 "2007-08-31T21:36:17Z")

</div>

Hi,

I created a new empty MovieClip named “blah” then loaded an swf inside which has a function named init().

So, any short (nice, elegant) way to call this init() function ?

I found a working combination:

MovieClip(Loader(blah.getChildAt(0)).content).init()

but why the hell is so heavy ??

Anything better would be appreciated… the AS2 version was simplier :sigh:
