My Website uses a fly-out menu and the fly-menu appears behind my Smart Banner rotator. How do I fix that?
This is an issue with any flash piece that’s in proximity to a fly-out menu. Set the ‘wmode’ property to ‘opaque’ when embedding the .swf file. See code below.
...
so.addParam("wmode", "opaque");
...
The buttons on my .swf banner are not working. What gives?
Smart Banner is built with AS2 . If you include a .swf banner built with AS3 some functionality may not be compatible with the rotator. Try exporting your .swf as AS2 if possible. A AS3 version of Smart Banner will be available in the future.
I’d like to place an object, a frame in this case, on top of the banners. Can that be done?
this.attachMovie( "myFrame", "frame", this.getNextHighestDepth());
Can I make my banners fade to some color other than black?
Yes. When embedding smart-banner.swf into a .html file you can set the background to any color you wish. By default it’s black (#000000). To see an example of where you need to make this change open sample.html (which comes with the package), view source code and see line 37.
var so = new SWFObject("assets/smart-banner.swf", "myMovie", "590", "300", "8", "#ffffff");
Just change #ffffff to any other hex color.
What if i do not want to embed the Smart Banner rotator into an .html page? I just want to launch the .swf in a stand alone flash player. When I open just the “smart-banner.swf” it does not work. What do I do?
Smart Banner expects to received a variable from the .html page which hosts it. This variable tells Smart Banner where the .xml file is.
If you do not wish to embed Smart Banner into a .html page open “smart-banner.fla”, go to frame 1, view actions panel, and go to line 69. You will see the following:
BannersXML.load(XMLpath + "?nocache=" + sbDate.getTime());
Manually enter the path from the .swf file to your .xml file. For example if the xml file was in the same directory as the .swf it would be something like the following.
BannersXML.load("smart-banner.xml");
I do not want the numbered buttons to show up. How do I disable them?
Open “smart-banner.fla”, go to frame 1, open actions panel. Set “DisplayButtons” variable to false. Export your SWF file.
How do I embed Smart Banner without the use of javascript (SWFObject)?
If you wish to embed Smart Banner without using the SWFObject which relies on javascript, use the following code to place Smart Banner.
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='590' height='300' id='smartbanner' name='smartbanner'>
<!-- for IE -->
<param name='movie' value='assets/smart-banner.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='flashvars' value='XMLpath=smart-banner.xml'>
<!-- for other browsers -->
<embed
src="assets/smart-banner.swf"
width="590"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
id="smartbanner"
name="smartbanner"
flashvars="XMLpath=smart-banner.xml"
/>
</object>
Take notice that the path to the XML file is being sent to Smart Banner using the ‘flashvars’ parameter.
