Lite Banner Rotator with Unique Features
Lite Banner Rotator with Unique Features
[LAST UPDATE 27 .08.2009]
New features added (v2):
1-Two more transition types added(3D rolling cube)
2-cornerRadius: You can set each corner radius to have rounded corners.
3-buttons visible: Show/hide buttons.
4-showPrevNextBtn: Show/hide previous-next buttons.
5-synchronizeAutoplayWithVideo: Synchronize autoplay system with video actions(play/pause). For more information see help docs.
This is a banner rotator to display swf/images. This banner rotator seems to be a classic banner rotator at first sight; nevertheless its unique features (random display according to randomFrequency, play next asset on next session… ) make it original. Please read below for features and instructions to customize/use files.
Features:
• Fully customizable through XML
• Resizable, you can set width/height in XML file
• Play sequential, random, or show next banner on each page refresh (To see this feature refresh this page, you will see each time banner rotator will start with next asset)
• Smart randomize*
• Smart loading**
• Clean OOP code and separated AS3 classes***
• Enable/disable autoplay
• Set timer duration, you can set duration globally or individually for each asset
• 4 transition types (include 3D transitions)
• Set transition duration
• Show/hide buttons
• Show/hide previous/next button
• Align buttons
• Enable/disable autohide buttons
• Change button’s alpha, colors (background color, text color, loader color, mouseOver color, color when button is selected)
• Change timerbar/big timerbar color, alpha, and blendMode
• Unlimited video/swf/png/jpg/gif supported, if buttons do not fitted to screen horizontally then they will be slided according to mouse pointer
• Prevent XML caching
• Rounded corners option to fit your design
• Add link to asset, and set its target
• You can embed into html or use it inside your flash project
• All XML settings are optional, if you leave settings empty, then default settings will be applied.
Instructions:
All Flash Layers, Frames, Library Folder, MovieClips, Function, Variable names are named in a meaningful manner to let developers can be able to customize and use it in your projects easily.
All actionscript 3.0 codes placed into AS classes which are located in org.ahk package. If you want to make some customization, you can open and edit these AS classes with your favorite AS editor.
To embed into HTML :
When you embed into HTML , you need to set your preferred width/height values in HTML (these values must match to bannerWidth and bannerHeight attributes in XML file if you want to banners fit to stage)
To use in your Flash projects:
You just need to drag the “_viewer” Folder from LiteBannerRotator.fla into your own project and copy org, caurina AS packages (folder) to your working directory. When you are using it in your projects, maybe you will need to change two lines in Viewer.as : line 42 and 43. For more help please read comments in AS classes or just contact with me.
XML settings:
<settings bannerWidth=”” bannerHeight=”” bannerBgColor=”” bannersGlobalPath=”” cornerRadius=”” showPrevNextBtn=””>
<play autoplay=”true” stopAutoplayOnClick=”” synchronizeAutoplayWithVideo=”” duration=”10” bannerTransitionDelay=”” transitionEasingIn=”” transitionEasingOut=”” />
<buttons visible=”” autoHideButtons=”true” hideButtonsOnStartUp=”” buttonsAlign=”” buttonAlpha=”95” bgColor=”0×444444” textColor=”” loaderColor=”0×696969” mouseOverColor=”0×282828” selectedColor=”0×6594DA” slideDelayPerPixel=”0.01” />
<random randomize=”” useRandomizeFrequency=”” showNextBannerOnStartup=”true” />
<timer timerColor=”0xABD0F5” bigTimerBlendMode=”” bigTimerAlpha=”85” />
</settings>
Notes:
* You want to show banners randomly and also you want some banners to be appeared more frequent than others, Smart Randomize will do this for you! All you need to set useRandomizeFrequency attribute to true and give banners you want to see more frequently a number between 1-1000 (A big number means to have more chance to be shown at the first place!)
** Lite Banner Rotator loads each image only once and one-by-one. Each time you select an image if it is loaded before then it will not be loaded again. Only swf files loaded each time you select them to be replayed.
*** (only customers can see this description in help files)
UPDATE 08 .08.2009
New features added :
1-You can pass xml path through FlashVars, for more information see “embedding examples” in help directory
2-bannersGlobalPath: You can set a global path for assets in XML file
UPDATE 12 .07.2009
New features added :
1-bannerTransitionType: you can choose more transitions
2-transitionEasingIn and transitionEasingOut: You can change easing function
3-hideButtonsOnStartUp: if you set this to true buttons will be hidden on start up
4-Help docs updated
5-Some bugs fixed
UPDATE 30 .06.2009
New features added :
1-Video support
2-Manula pause button
3-Specify starting slide in html





Request processing...
85comments