# Loading a swf into banner rotator?

**URL:** <https://forum.kirupa.com/t/loading-a-swf-into-banner-rotator/320310>\
**Category:** flash\
**Created:** [March 20, 2011, 2:36am UTC](https://forum.kirupa.com/t/loading-a-swf-into-banner-rotator/320310 "2011-03-20T02:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Post date:** [March 20, 2011, 2:36am UTC](https://forum.kirupa.com/t/loading-a-swf-into-banner-rotator/320310/1 "2011-03-20T02:36:53Z")

</div>

I am trying to modify a template that has a banner rotator. Instead of having a bunch of images rotate, I would like just one .swf file. So I removed all the other image tags in the XML and changed the one I want to

\<image path=“ad/01.swf” link="" /\>

However, nothing displays. I assume its because the actionscript must be set up to display swf’s differently. I found in the code a few refernces to this…

When the page loads, it calls “setRotator”. Inside “setRotator” is the loadImage call. Here are both functions.

```auto
private function setRotator():void
		{
			if (_randomize) loadImage( _xmlList[_randomArray[_count] ].@path, _xmlList[_randomArray[_count] ].@link );
			else loadImage( _xmlList[_count].@path, _xmlList[_count].@link );
		}
		
		private function loadImage($path:String, $link:String):void
		{
			_link = $link;
			_timer.stop();
			
			var __loader:Loader = new Loader();
			__loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
			__loader.load(new URLRequest($path));
			//__loader.obj = { target:this};
		}

```

What would I need to change in order to allow me to call a swf instead of just images?

thanks.  
Rich
