E-merald web-engineering Flash components
E-merald web-engineering Contact Site map
 
Home Components Support Purchase
Components

How to use

You can fully use the Screen Banner Rotator by editing the provided XML file using any text editor (such as Notepad for example). This will allow you to edit all the parameters.

You can create an application with the Screen Banner Rotator in one of the following ways:

1. Using the source FLA file (editable Flash file) for further publishing (creating SWF file)

In this case, you will need Macromedia Flash 8 or Adobe Flash CS3/CS4 software. The following files are required (included in the package):

- ScreenBannerRotator.fla;
- ScreenBannerRotator.as;
- TweenRGB.as;
- settings.xml.

Edit the parameters in the XML file (settings.xml) according to your needs. Open the source FLA file (ScreenBannerRotator.fla) and publish the Flash document with appropriate name.

2. Copying the Screen Banner Rotator library assets from the source FLA file into another document

In this case, you will need Macromedia Flash 8 or Adobe Flash CS3/CS4 software. The following files are required (included in the package):

- ScreenBannerRotator.fla;
- ScreenBannerRotator.as;
- TweenRGB.as;
- settings.xml.

Edit the parameters in the XML file (settings.xml) according to your needs. Open the source FLA file (ScreenBannerRotator.fla) and the destination FLA file. Drag the "Screen Banner Rotator" folder from the source document library onto the Stage of the destination document. Delete the copied assets from the Stage. Select the "ScreenBannerRotator" symbol (Movie Clip) in the Library panel in the destination document and drag it onto the Stage. When publishing the Flash document, note that the ActionScript files — ScreenBannerRotator.as and TweenRGB.as — must be in the same directory with the destination FLA file.

3. Using the SWF file (fully working Flash movie)

In this case, you don't need Flash software or any programming knowledge. The following files are required (included in the package):

- BannerRotator.swf;
- settings.xml.

Edit the parameters in the XML file (settings.xml) according to your needs.

If you need to change the name of the XML file, you can easily do it. Just open the ScreenBannerRotator.as file (before publishing the Flash document) and replace "settings.xml" with the name of your XML file. You can also specify the name for the XML file when embedding the Screen Banner Rotator into HTML page.

Below is the code that describes how to embed the Screen Banner Rotator using SWFObject 2:

 

<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {xmlURL: "settings.xml"};
var params = {};
var attributes = {};
swfobject.embedSWF("BannerRotator.swf", "bannerRotator", "450", "300", "8.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="bannerRotator">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
</a>
</div>
</body>

© E-MERALD. All rights reserved.
© Designed by Fox.net.ua.