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 Magnetic Image Gallery 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 Magnetic Image Gallery 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/CS5 software. The following files are required (included in the download):

- source FLA file (MagneticImageGallery.fla);
- "com" folder with all ActionScript files inside (MagneticImageGallery.as, XMLParser.as, AutoHide.as, TweenRGB.as);
- configuration XML file (gallery.xml);
- CSS file (if used — gallery.css);
- image files ("images" folder).

Open the chosen template folder and edit the parameters in the XML file (gallery.xml) according to your needs. Open the source FLA file (MagneticImageGallery.fla), make some changes if needed, and publish the Flash document with appropriate name.

2. Copying the Magnetic Image Gallery library assets from the source FLA file into another document

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

- source FLA file (MagneticImageGallery.fla);
- "com" folder with all ActionScript files inside (MagneticImageGallery.as, XMLParser.as, AutoHide.as, TweenRGB.as);
- configuration XML file (gallery.xml);
- CSS file (if used — gallery.css);
- image files ("images" folder).

Open the chosen template folder and edit the parameters in the XML file (gallery.xml) according to your needs. Open the source FLA file (MagneticImageGallery.fla) and the destination FLA file. Drag the "Magnetic Image Gallery" folder from the source document library onto the Stage of the destination document. Delete the copied assets from the Stage. Select the "MagneticImageGallery" 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 — "com" folder — 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 download):

- gallery SWF file (MagneticImageGallery.swf);
- configuration XML file (gallery.xml);
- CSS file (if used — gallery.css);
- image files ("images" folder).

Open the chosen template folder and edit the parameters in the XML file (gallery.xml) according to your needs.

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

Below is the code that describes how to embed the Magnetic Image Gallery using SWFObject 2:

 

<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {xmlURL: "gallery.xml"};
var params = {};
var attributes = {};
swfobject.embedSWF("MagneticImageGallery.swf", "gallery", "820", "470", "8.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="gallery">
<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.