# Trouble loading swf into a website

**URL:** <https://forum.kirupa.com/t/trouble-loading-swf-into-a-website/287279>\
**Category:** flash\
**Created:** [April 29, 2009, 2:34am UTC](https://forum.kirupa.com/t/trouble-loading-swf-into-a-website/287279 "2009-04-29T02:34:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nars921](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@Nars921](https://forum.kirupa.com/u/Nars921)\
**Post date:** [April 29, 2009, 2:34am UTC](https://forum.kirupa.com/t/trouble-loading-swf-into-a-website/287279/1 "2009-04-29T02:34:38Z")

</div>

Me again!

Hello to all, I was wondering if I can get some more help on here?

The problem:  
I have a Flash website and created the gallery for in in a seperate swf file. I now want to load this gallery into a movieclip once the playhead reachs fram 45. I have loaded the data successfully when the button is clicked, but that’s as far as it goes. I try to add it to a movieclip (gallery\_mc.addChild(loadGallery); )and recieve the error: “1067: Implicit coercion of a value of type [flash.net](http://flash.net):URLLoader to an unrelated type flash.display: DisplayObject.”. I probably should mention that this code is on the timeline as well, so it isn’t a matter of importing events.

If you need any more information, let me know.

Jaye
