# Calling functions of a loaded swf?

**URL:** <https://forum.kirupa.com/t/calling-functions-of-a-loaded-swf/233089>\
**Category:** flash\
**Created:** [July 20, 2007, 12:27am UTC](https://forum.kirupa.com/t/calling-functions-of-a-loaded-swf/233089 "2007-07-20T00:27:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kt\_sc](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kt\_sc](https://forum.kirupa.com/u/kt_sc)\
**Post date:** [July 20, 2007, 12:27am UTC](https://forum.kirupa.com/t/calling-functions-of-a-loaded-swf/233089/1 "2007-07-20T00:27:55Z")

</div>

I have placed a movie clip on the stage, with the variable name mcThumbnail. The following code in entered in the first frame (the only frame of the timeline…).

```auto

mcThumbnail.loadMovie("ad_scrolling.swf");
mcThumbnail.currPageType = "MAIN";
mcThumbnail.initAd();

```

However it does not invoke the function of the abovestated .swf. And it does not change the value of the above property either.

What have i done wrong here? One question i have is, what is the difference between loading the using a ‘movieclip’ and loading using a ‘loader’.
