# External API help please?

**URL:** <https://forum.kirupa.com/t/external-api-help-please/260591>\
**Category:** Uncategorized\
**Created:** [May 17, 2008, 1:30am UTC](https://forum.kirupa.com/t/external-api-help-please/260591 "2008-05-17T01:30:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spiritvw](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@spiritvw](https://forum.kirupa.com/u/spiritvw)\
**Post date:** [May 17, 2008, 1:30am UTC](https://forum.kirupa.com/t/external-api-help-please/260591/1 "2008-05-17T01:30:04Z")

</div>

I am trying something not covered in your forums though it seems as though it should be possible. I have a GUI design in flash (created by FlashNifties you can download this for free from [http://www.flashnifties.com/media\_gallery.php](http://www.flashnifties.com/media_gallery.php)) which has multiple “pages” of dynamic text, videos and images. I am loading text from .txt files into a dynamic text box which is html formatted as follows:

```auto
myHTMLdata=<font color="#333333" size="12"><b>TITLE HERE</b></font><br><font color="#444444" size="10">BODY TEXT HERE

<!--TEXT LINK WHICH INITIATES THE FOLLOWING ACTIONSCRIPT 
mediaGallery.openFile("Student Theatre")
-->
</font>

```

The HTML formatted text looks great and works great but I do not know how to initiate the code that I need - the text link which activates the “mediaGallery.openFile()” command. I found a lot of info on External API (aka ExternalInterface) which I think should do the trick, but it seems to all suggest that the javascript should come from the html document which contains the .swf file NOT from a text file loaded INTO a .swf animation.

I hope that you can help me with this?!  
I am past deadline and completely frazzled!

Thanks in advance!  
-W
