# Loading an swf from a button within a MC - possible?

**URL:** <https://forum.kirupa.com/t/loading-an-swf-from-a-button-within-a-mc-possible/139117>\
**Category:** Uncategorized\
**Created:** [February 28, 2005, 6:36pm UTC](https://forum.kirupa.com/t/loading-an-swf-from-a-button-within-a-mc-possible/139117 "2005-02-28T18:36:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![InnellaDesign](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@InnellaDesign](https://forum.kirupa.com/u/InnellaDesign)\
**Post date:** [February 28, 2005, 6:36pm UTC](https://forum.kirupa.com/t/loading-an-swf-from-a-button-within-a-mc-possible/139117/1 "2005-02-28T18:36:31Z")

</div>

I am trying to use this tutorial, [http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

however I’d like the buttons to be inside another movie clip. For some reason, I am getting this error msg

Symbol=Symbol 4, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler  
but.onPress = function () {

Im kind of a newbie to flash, anyone k now what this means and/or how to fix it? I am trying to create a vertical scrolling thumbnail gallery with dynamically loaded swf’s. HELP!
