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.
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