# Accessing methods in external SWF

**URL:** <https://forum.kirupa.com/t/accessing-methods-in-external-swf/259857>\
**Category:** flash\
**Created:** [May 9, 2008, 1:42pm UTC](https://forum.kirupa.com/t/accessing-methods-in-external-swf/259857 "2008-05-09T13:42:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [May 9, 2008, 1:42pm UTC](https://forum.kirupa.com/t/accessing-methods-in-external-swf/259857/1 "2008-05-09T13:42:37Z")

</div>

I’m pretty sure I am making this 100 times more difficult than it really is. Anyways, this is the gist of the situation. I am loading the external swf. I can see it once it has been loaded. But the problem lies in when I want to go externalSwf.getData() . getData() being just a simple public function in the external swf that traces “meow”. I keep getting the error getData is not a function. Any insight would be welcomed. Sorry for the lack of line breaks…I’m trying but once posted it just keeps pushing it all together

---

<div class="post-metadata">

**Author:** ![reyco1](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@reyco1](https://forum.kirupa.com/u/reyco1)\
**Post date:** [May 10, 2008, 12:47pm UTC](https://forum.kirupa.com/t/accessing-methods-in-external-swf/259857/2 "2008-05-10T12:47:15Z")

</div>

you must have used the loader class to load the swf, hence try:

loader.loadedContent.getData()
