Home » ActionScript 3.0

Thumbnail Manager AS3:

25 November 2008 No Comment

I made this Thumbnail Manager utility class to make things easier for developers. Still has limited features but planed to increase it in future.
This Utility class makes easy way to developers to create the thumbnails, can be used in image gallery.

Features:


Aligning the thumbnail vertically or horizontally.
Each thumbnail will preload of its own.
Ability to set preloader color.
Easy to set cachebuster.

Next Version Features:


Resize the image proportionally.
Aigning image in Row and Column.

Usage:


ThumbnailManager(Array of URL, ThumbnailManager.HORIZONTAL_ALIGN,Height,Width,Spacing,Preloader Color ,CacheBuster)

Example:

Horizontal View:

Â
Vertical View:
Â

Refresh page to view the preloader again

Code:

import com.Thumbnail.*;
var arr:Array = ["http://www.designscripting.com/wp-content/uploads/2008/11/thumb1.jpg"
    ,"http://www.designscripting.com/wp-content/uploads/2008/11/thumb2.jpg"
    ,"http://www.designscripting.com/wp-content/uploads/2008/11/thumb3.jpg"
    ,"http://www.designscripting.com/wp-content/uploads/2008/11/thumb4.jpg"   Â
    ,"http://www.designscripting.com/wp-content/uploads/2008/11/thumb5.jpg"]
var _thumbnail:ThumbnailManager = new ThumbnailManager(arr, ThumbnailManager.HORIZONTAL_ALIGN,100,100,10,0×000000 ,true)
addChild(_thumbnail);

Download Source Files

Feel free to edit and distrubute the code.

cheers
:)

VN:F [1.7.7_1013]
Rating: 0.0/10 (0 votes cast)
VN:F [1.7.7_1013]
Rating: 0 (from 0 votes)
Translate this post
        
        
        
        
  

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.