# HELP-button loading external text into swf file

**URL:** <https://forum.kirupa.com/t/help-button-loading-external-text-into-swf-file/289504>\
**Category:** flash\
**Created:** [June 1, 2009, 12:14am UTC](https://forum.kirupa.com/t/help-button-loading-external-text-into-swf-file/289504 "2009-06-01T00:14:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fayfalshhelp](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@fayfalshhelp](https://forum.kirupa.com/u/fayfalshhelp)\
**Post date:** [June 1, 2009, 12:14am UTC](https://forum.kirupa.com/t/help-button-loading-external-text-into-swf-file/289504/1 "2009-06-01T00:14:36Z")

</div>

hi,  
I’m creating a flash portfolio, I have small image icons, each icon when clicked on loads a diff. swf file, image gallery that loads bigger external images.  
I would like a different external text file to load every time a diff. image gallery loads,  
for some reason I cant find the answer to my problem,

any one out there who can please help?

I would like to add some actionscrpt to each icon/button so it will load a new txt file when clicked on.  
thankx

(each image icon is a button and has the instance name of icon 1, 2 etc.)

the code goes like this;

stop();

menuHolder.loadMovie(“retail/photoViewer.swf”)  
loadMovie (“retail/photoViewer.swf”, “\_root.menuHolder”);

icon1.onRelease=function(){  
loadMovie (“retail/photoViewer.swf”, “\_root.menuHolder”);  
}  
icon2.onRelease=function(){  
loadMovie (“retail/photoViewer2.swf”, “\_root.menuHolder”);  
}

icon3.onRelease=function(){  
loadMovie (“retail/photoViewer3.swf”, “\_root.menuHolder”);  
}

icon4.onRelease=function(){  
loadMovie (“retail/photoViewer4.swf”, “\_root.menuHolder”);  
}

icon5.onRelease=function(){  
loadMovie (“retail/photoViewer5.swf”, “\_root.menuHolder”);  
}

icon6.onRelease=function(){  
loadMovie (“retail/photoViewer6.swf”, “\_root.menuHolder”);  
}

icon7.onRelease=function(){  
loadMovie (“retail/photoViewer7.swf”, “\_root.menuHolder”);  
}

icon8.onRelease=function(){  
loadMovie (“retail/photoViewer8.swf”, “\_root.menuHolder”);  
}

icon9.onRelease=function(){  
loadMovie (“retail/photoViewer9.swf”, “\_root.menuHolder”);  
}

icon10.onRelease=function(){  
loadMovie (“retail/photoViewer10.swf”, “\_root.menuHolder”);  
}

icon11.onRelease=function(){  
loadMovie (“retail/photoViewer11.swf”, “\_root.menuHolder”);  
}

icon12.onRelease=function(){  
loadMovie (“retail/photoViewer12.swf”, “\_root.menuHolder”);  
}
