Methods

TileMaker class

org.thesourcecode.utils.TileMaker

 

Overview

Author

Dru Kepple [thekeppleeffect.com]
Hasan Otuome [hasan.otuome.com]

Version

1.0

Usage

import org.thesourcecode.utils.TileMaker;
var grid:TileMaker = new TileMaker(this,true);

Description

Easy way to create animated thumnail tiles for your XML photo gallery. Just feed in the required parameters and off you go. Button events can easily be added to the thumbnails also.

Methods

 

makeTiles

Usage

grid.makeTiles("some.xml",this,"row",7,80,80,0,0);

Description

Builds a grid of pre-set dimensions and animates its building via tweening.

Parameters

xmlfile
(String) location of the gallery's xml file
targetClip
(MovieClip) instance name of the clip where the thumbnails will be loaded
gridType
(String) indicates the type of grid to build, either "row" or "column"
numOf
(Number) indicates the quantity of rows, if gridType is "column" or columns, if gridType is "row"
rowSpacing
(Number) indicates the amount of space between each row
colSpacing
(Number) indicates the amount of space between each column
xOffset
(Number) indicates the amount to offset each row (margin offset)
yOffset
(Number) indicates the amount to offset each column (margin offset)

Returns

Nothing.