# Actionscript 2 - load external html files into dynamic textbox on click

**URL:** <https://forum.kirupa.com/t/actionscript-2-load-external-html-files-into-dynamic-textbox-on-click/257724>\
**Category:** Uncategorized\
**Created:** [April 16, 2008, 5:18pm UTC](https://forum.kirupa.com/t/actionscript-2-load-external-html-files-into-dynamic-textbox-on-click/257724 "2008-04-16T17:18:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unconscious](https://avatars.discourse-cdn.com/v4/letter/u/9de053/32.png) [@Unconscious](https://forum.kirupa.com/u/Unconscious)\
**Post date:** [April 16, 2008, 5:18pm UTC](https://forum.kirupa.com/t/actionscript-2-load-external-html-files-into-dynamic-textbox-on-click/257724/1 "2008-04-16T17:18:05Z")

</div>

\_root.links.link1.onRelease = function() {  
loadMovie(page1.html, \_root.content);

}

is my current code, but it doesn’t appear to be working, here is the error I get:

Error opening URL ‘file:///C|/Documents%20and%20Settings/Chris/My%20Documents/flash%20site/undefined’

The button that the actionscript is applied is a loader componant, which loads in an external file. I’m hoping to make every graphic in this SWF external, therefore making it highly customizable.

The actionscript calls for a file (page1.html) and places the content in the dynamic text box, which is \_root.content.

Any help would be lovely.
