ActiveDen

Smart Banner - XML - Based Banner Rotator

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?

Yes. You can place a movie clip on top of the rotating banners. You’ll need to do the following: Design your frame and make it a movie clip. There’s no need to place it on stage so keep it in the library. Go to its linkage properties and give it an ID name of “myFrame”. Tick ‘export for actionscript’. Attach the movie clip using the attachMovie method. You do that by adding the following code to the LAST line of the ActionScript code on frame one of the FLA file.
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.

You must sign in or sign up to purchase this item.

$8Regular Licence

$8

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

$80Extended Licence

$80

Extended Licence an app, paid game, or other software project, a website template for sale - Details

1961 Purchases 247 Comments

Buyer Rating
12345 ( 361 ratings )
thewebprojects

thewebprojects

  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Referred between 50 and 99 users
View Portfolio
Created 10 November 08
ActionScript Version AS2
Documentation Well Documented
Flash Files Included Flash FLA, HTML Files, JS Files, XML Files
Opens With Flash CS3 (9+)
Published Size 9kb
Resolution Resizable
by
by
by
by
by