The new Image Folio has support for an unlimited numbers of images. Images can have different sizes and you can choose between 4 ways of resizing/fitting the image inside the rectangular shape. It is xml driven; the xml file allows you to add a title and a data field for each image. Image formats supported are: png, jpg, gif. Easily add any script you want for handling click actions on the images, with the possibility of identifying the images by their "data" attribute which was previously set in the xml file. The rectangular shape that you see on the stage it is the place holder for the image folio and at runtime it will act as a mask and it will also define the area in which the images will be center aligned. Resize this shape and also tweak the "w" and "h" variables inside Image.as file to obtain the desired result. Also settable in the Image.as file are: the border width, corner radius, label distance from the bottom edge of the image and also the shadow distance from the same edge. The 4 scale modes are (similar as the ones used for the Stage.scaleMode property): showAll, exactFit, noBorder, noScale. In each situation the image will be center aligned. You can set the scaleMode inside the Image.as file. By default it is set to showAll. You should also check out the variables inside Folio.as file. Each one of them has a comment. Tweaking these variables can help you achieve different results. Customizing the appearance of the Folio is easy. You have to edit the Library symbols which are grouped in suggestively named folders.
Resource Posted
by:
Emanuel Giurgea. This script listing has been viewed 3566 times so far.
Search Scripts Disclaimer - Please be aware Search-Scripts.com accepts no responsibility for the scripts, components & software you are downloading. The same applies to the information provided about the Web Scripts, Tutorials & Software Products listed, as the producer can modify it without notifying us. Even if we try to check the files for viruses ourselves, we cannot guarantee 100% that they are clean. For your own protection always check downloaded files for viruses.