MGallery

Description

MGallery is a Flash component capable of automatically arranging a hierarchy of folders containing images and videos.  You only need to set where they are stored.

Version: 2.0.0

Copyright © 2007 Marco Chierichetti (www.m80.it).  All Rights Reserved.

Summary
MGallery is a Flash component capable of automatically arranging a hierarchy of folders containing images and videos.
Relative path of images hierarchy root (from flashservices/services/MGallery.php)
Absolute images path (URL), required to give you the possibility of setting different location for MGallery.php and your swf
You can set it to true if your server PHP installation supports GD Library, otherwise you’ll need to create thumbnails inside _mthumbs directory manually
Max image size.
Font used for Path and page number indicator
Font size used for Path and page number indicator
Font color used for Path, page number indicator, folders and MGallery sign
Path font over color
Path button and pages number indicator spacer.
Space between PathButton and ScrollPane.
Path button pixel indent
Page number pixel indent
Per page elements max number.
“a” Used to space elements, like margin between background and ScrollPane.
“b” Used to space elements horizontally.
“c” Used to space elements rows.
Space between file ico and his name.
How to see big images, can be:
Scroll Pane theme color
Background border skin linkage name
Background alphas array, one for each color you set to fill background
Background colors array, you can set how many colors you want for background gradient from a minimum of two
Background corner radius
Background fill type:
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
This set background fill border:
Scroll pane background border skin linkage name
Background alphas array, one for each color you set to fill background
Background colors array, you can set how many colors you want for background gradient from a minimum of two
Background corner radius
Background fill type:
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the backgroun, 0 = start, 255 = end.
This set scrollpane background fill border:
Background expand of iCBorder dimension around image area
For image rounded corner (in pixels)
Image shadow on/off
Toggle Image name visibility
Loading movieclip linkage identifier.
Background border skin linkage name
Background alphas array, one for each color you set to fill background
Background colors array, you can set how many colors you want for background gradient from a minimum of two
Background corner radius
Background fill type:
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
This set background fill border:
Background expand of bigImgBorder dimension around image area
For image rounded corner (in pixels)
Image shadow on/off
Background border skin linkage name
Background alphas array, one for each color you set to fill background
Background colors array, you can set how many colors you want for background gradient from a minimum of two
Background corner radius
Background fill type:
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
This set background fill border:
Loading movieclip linkage identifier.
Embedded video loading bar initObj (see Bar documentation for settable properties)
Embedded video progress bar background initObj (see Slider documentation for settable properties)
Embedded video volume initObj (see Slider documentation for settable properties)
Maximized video loading bar initObj (see Bar documentation for settable properties)
Maximized video progress bar background initObj (see Slider documentation for settable properties)
Maximized video volume initObj (see Slider documentation for settable properties)
Space between Folder graphics and Folder name.
AMFPHP gateway.php absolute path
Password to access server services.
fired when spSetHeight has finished animation

PROPERTIES

relImagesPath

public function set relImagesPath(url: String):Void

Description

Relative path of images hierarchy root (from flashservices/services/MGallery.php)

Example

  • MGallery.php: yourdomain/flashservices/services/MGallery.php
  • images path: yourdomain/photo/
  • relImagesPath: ../../photo/

absImagesPath

public function set absImagesPath(url: String):Void

Description

Absolute images path (URL), required to give you the possibility of setting different location for MGallery.php and your swf

Note

If your absolute path is http://www.yourdomain.com/ and a user get to your site typing in a browser http://yourdomain.com MGallery doesn’t work.  You should add a crossdomain.xml file to your webserver root.

autoThumb

public function set autoThumb(b: Boolean):Void

Description

You can set it to true if your server PHP installation supports GD Library, otherwise you’ll need to create thumbnails inside _mthumbs directory manually

imgSize

public function set imgSize(n: Number):Void

Description

Max image size.  Defines a square, so you have to input the image longest side.  This is also the server thumbnails dimension.

font

public function set font(s: String):Void

Description

Font used for Path and page number indicator

fontSize

public function set fontSize(n: Number):Void

Description

Font size used for Path and page number indicator

fontColor

public function set fontColor(n: Number):Void

Description

Font color used for Path, page number indicator, folders and MGallery sign

fontOverColor

public function set fontOverColor(n: Number):Void

Description

Path font over color

topSpacer

public function set topSpacer(n: Number):Void

Description

Path button and pages number indicator spacer.

spSpacer

public function set spSpacer(n: Number):Void

Description

Space between PathButton and ScrollPane.

pathIndent

public function set pathIndent(n: Number):Void

Description

Path button pixel indent

pNumIndent

public function set pNumIndent(n: Number):Void

Description

Page number pixel indent

filesPerPage

Description

Per page elements max number.  Can be set to 0 that means only 1 page in any case

margin

public function set margin(n: Number):Void

Description

”a” Used to space elements, like margin between background and ScrollPane.

imageSpacer

public function set imageSpacer(n: Number):Void

Description

”b” Used to space elements horizontally.

rowSpacer

public function set rowSpacer(n: Number):Void

Description

”c” Used to space elements rows.

fileNameSpacer

public function set fileNameSpacer(n: Number):Void

Description

Space between file ico and his name.

bigImageMode

public function set bigImageMode(s: String):Void

Description

How to see big images, can be:

  • ”blank”, open images in new browser window
  • ”self”, open images inside MGallery
  • ”ImageContainer”, open images inside an ImageContainer sized with image size or with Stage size if image is bigger than Flash movie (stage)

themeColor

public function set themeColor(n: Number):Void

Description

Scroll Pane theme color

Background

bgBorderSkin

public function set bgBorderSkin(s: String):Void

Description

Background border skin linkage name

bgAlphas

public function set bgAlphas(a: Array):Void

Description

Background alphas array, one for each color you set to fill background

bgColors

public function set bgColors(a: Array):Void

Description

Background colors array, you can set how many colors you want for background gradient from a minimum of two

bgCornerRadius

public function set bgCornerRadius(n: Number):Void

Description

Background corner radius

bgFillType

public function set bgFillType(s: String):Void

Description

Background fill type:

  • linear
  • radial

bgKerning

public function set bgKerning(s: String):Void

Description

  • inside
  • outside
  • center
  • custom

If you choose “custom” you can set the offset in pixel from the “outside” border position inside the border skin movieclip first frame.

bgMatrix

public function set bgMatrix(o: Object):Void

Description

bgRatios

public function set bgRatios(a: Array):Void

Description

Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.

bgRLineStyle

public function set bgRLineStyle(a: Array):Void

Description

This set background fill border:

  • thickness
  • color
  • alpha

bgShadow

public function set bgShadow(n: Boolean):Void

bgShadowColor

public function set bgShadowColor(n: Number):Void

ScrollPane Background

spBgBorderSkin

public function set spBgBorderSkin(s: String):Void

Description

Scroll pane background border skin linkage name

spBgAlphas

public function set spBgAlphas(a: Array):Void

Description

Background alphas array, one for each color you set to fill background

spBgColors

public function set spBgColors(a: Array):Void

Description

Background colors array, you can set how many colors you want for background gradient from a minimum of two

spBgCornerRadius

public function set spBgCornerRadius(n: Number):Void

Description

Background corner radius

spBgFillType

public function set spBgFillType(s: String):Void

Description

Background fill type:

  • linear
  • radial

spBgKerning

public function set spBgKerning(s: String):Void

Description

  • inside
  • outside
  • center
  • custom

If you choose “custom” you can set the offset in pixel from the “outside” border position inside the border skin movieclip first frame.

spBgMatrix

public function set spBgMatrix(o: Object):Void

Description

spBgRatios

public function set spBgRatios(a: Array):Void

Description

Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the backgroun, 0 = start, 255 = end.

spBgRLineStyle

public function set spBgRLineStyle(a: Array):Void

Description

This set scrollpane background fill border:

  • thickness
  • color
  • alpha

ImageContainer

iCBorder

public function set iCBorder(n: Number):Void

Description

Background expand of iCBorder dimension around image area

iCImgCornerRadius

public function set iCImgCornerRadius(n: Number):Void

Description

For image rounded corner (in pixels)

iCImgShadow

public function set iCImgShadow(b: Boolean):Void

Description

Image shadow on/off

iCNameVisible

public function set iCNameVisible(b: Boolean):Void

Description

Toggle Image name visibility

iCImgShadowColor

public function set iCImgShadowColor(n: Number):Void

iCLoadingMcId

public function set iCLoadingMcId(s: String):Void

Description

Loading movieclip linkage identifier.

iCLoadEffect

public function set iCLoadEffect(s: String):Void

Description

  • fadein
  • wipe
  • blur

iCOverEffect

public function set iCOverEffect(s: String):Void

Description

  • contrast
  • desaturated

iCBgBorderSkin

public function set iCBgBorderSkin(s: String):Void

Description

Background border skin linkage name

iCBgAlphas

public function set iCBgAlphas(a: Array):Void

Description

Background alphas array, one for each color you set to fill background

iCBgColors

public function set iCBgColors(a: Array):Void

Description

Background colors array, you can set how many colors you want for background gradient from a minimum of two

iCBgCornerRadius

public function set iCBgCornerRadius(n: Number):Void

Description

Background corner radius

iCBgFillType

public function set iCBgFillType(s: String):Void

Description

Background fill type:

  • linear
  • radial

iCBgKerning

public function set iCBgKerning(s: String):Void

Description

  • inside
  • outside
  • center
  • custom

If you choose “custom” you can set the offset in pixel from the “outside” border position inside the border skin movieclip first frame.

iCBgMatrix

public function set iCBgMatrix(o: Object):Void

Description

iCBgRatios

public function set iCBgRatios(a: Array):Void

Description

Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.

iCBgRLineStyle

public function set iCBgRLineStyle(a: Array):Void

Description

This set background fill border:

  • thickness
  • color
  • alpha

iCBgShadow

public function set iCBgShadow(b: Boolean):Void

iCBgShadowColor

public function set iCBgShadowColor(b: Number):Void

Big Image

bigImgBorder

public function set bigImgBorder(n: Number):Void

Description

Background expand of bigImgBorder dimension around image area

bigImgImgCornerRadius

public function set bigImgImgCornerRadius(n: Number):Void

Description

For image rounded corner (in pixels)

bigImgImgShadow

public function set bigImgImgShadow(b: Boolean):Void

Description

Image shadow on/off

bigImgImgShadowColor

private var __bigImgImgShadowColor: Number

bigImgBgBorderSkin

public function set bigImgBgBorderSkin(s: String):Void

Description

Background border skin linkage name

bigImgBgAlphas

public function set bigImgBgAlphas(a: Array):Void

Description

Background alphas array, one for each color you set to fill background

bigImgBgColors

public function set bigImgBgColors(a: Array):Void

Description

Background colors array, you can set how many colors you want for background gradient from a minimum of two

bigImgBgCornerRadius

public function set bigImgBgCornerRadius(n: Number):Void

Description

Background corner radius

bigImgBgFillType

public function set bigImgBgFillType(s: String):Void

Description

Background fill type:

  • linear
  • radial

bigImgBgKerning

public function set bigImgBgKerning(s: String):Void

Description

  • inside
  • outside
  • center
  • custom

If you choose “custom” you can set the offset in pixel from the “outside” border position inside the border skin movieclip first frame.

bigImgBgMatrix

public function set bigImgBgMatrix(o: Object):Void

Description

bigImgBgRatios

public function set bigImgBgRatios(a: Array):Void

Description

Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.

bigImgBgRLineStyle

public function set bigImgBgRLineStyle(a: Array):Void

Description

This set background fill border:

  • thickness
  • color
  • alpha

bigImgBgShadow

public function set bigImgBgShadow(b: Boolean):Void

bigImgBgShadowColor

public function set bigImgBgShadowColor(b: Number):Void

bigImgLoadingMcId

public function set bigImgLoadingMcId(s: String):Void

Description

Loading movieclip linkage identifier.

bigImgLoadEffect

public function set bigImgLoadEffect(s: String):Void

Values

  • fadein
  • wipe
  • blur

bigImgDesMcColor

private var __bigImgDesMcColor: Number

bigImgDesMcAlpha

private var __bigImgDesMcAlpha: Number

bigImgTitleFont

private var __bigImgTitleFont: String

bigImgTitleFontSize

private var __bigImgTitleFontSize: Number

bigImgTitleColor

private var __bigImgTitleColor: Number

bigImgDesFont

private var __bigImgDesFont: String

bigImgDesFontSize

private var __bigImgDesFontSize: Number

bigImgDesColor

private var __bigImgDesColor: Number

Video Embedded

vLBarInitObj

public function set vLBarInitObj(o: Object):Void

Description

Embedded video loading bar initObj (see Bar documentation for settable properties)

vPBarInitObj

public function set vPBarInitObj(o: Object):Void

Description

Embedded video progress bar background initObj (see Slider documentation for settable properties)

vVolInitObj

public function set vVolInitObj(o: Object):Void

Description

Embedded video volume initObj (see Slider documentation for settable properties)

Video Maximized

vMaxLBarInitObj

public function set vMaxLBarInitObj(o: Object):Void

Description

Maximized video loading bar initObj (see Bar documentation for settable properties)

vMaxPBarInitObj

public function set vMaxPBarInitObj(o: Object):Void

Description

Maximized video progress bar background initObj (see Slider documentation for settable properties)

vMaxVolInitObj

public function set vMaxVolInitObj(o: Object):Void

Description

Maximized video volume initObj (see Slider documentation for settable properties)

Folder

folderNameSpacer

public function set folderNameSpacer(n: Number):Void

Description

Space between Folder graphics and Folder name.

folderShadow

public function set folderShadow(b: Boolean):Void

folderShadowColor

public function set folderShadowColor(b: Number):Void

folderFont

public function set folderFont(s: String):Void

folderFontSize

public function set folderFontSize(n: Number):Void

folderFontColor

public function set folderFontColor(n: Number):Void

AMFPHP

gatewayUrl

public function set gatewayUrl(url: String):Void

Description

AMFPHP gateway.php absolute path

Example: http://yourdomain/flashservices/gateway.php

pwd

public function set pwd(s: String):Void

Password to access server services.  It need to be equal to the one in MGallery.php You can open MGallery.php with any texteditor.

Events

spHeightSet

Description

fired when spSetHeight has finished animation

public function set relImagesPath(url: String):Void
Relative path of images hierarchy root (from flashservices/services/MGallery.php)
public function set absImagesPath(url: String):Void
Absolute images path (URL), required to give you the possibility of setting different location for MGallery.php and your swf
public function set autoThumb(b: Boolean):Void
You can set it to true if your server PHP installation supports GD Library, otherwise you’ll need to create thumbnails inside _mthumbs directory manually
public function set imgSize(n: Number):Void
Max image size.
public function set font(s: String):Void
Font used for Path and page number indicator
public function set fontSize(n: Number):Void
Font size used for Path and page number indicator
public function set fontColor(n: Number):Void
Font color used for Path, page number indicator, folders and MGallery sign
public function set fontOverColor(n: Number):Void
Path font over color
public function set topSpacer(n: Number):Void
Path button and pages number indicator spacer.
public function set spSpacer(n: Number):Void
Space between PathButton and ScrollPane.
public function set pathIndent(n: Number):Void
Path button pixel indent
public function set pNumIndent(n: Number):Void
Page number pixel indent
public function set margin(n: Number):Void
“a” Used to space elements, like margin between background and ScrollPane.
public function set imageSpacer(n: Number):Void
“b” Used to space elements horizontally.
public function set rowSpacer(n: Number):Void
“c” Used to space elements rows.
public function set fileNameSpacer(n: Number):Void
Space between file ico and his name.
public function set bigImageMode(s: String):Void
How to see big images, can be:
public function set themeColor(n: Number):Void
Scroll Pane theme color
public function set bgBorderSkin(s: String):Void
Background border skin linkage name
public function set bgAlphas(a: Array):Void
Background alphas array, one for each color you set to fill background
public function set bgColors(a: Array):Void
Background colors array, you can set how many colors you want for background gradient from a minimum of two
public function set bgCornerRadius(n: Number):Void
Background corner radius
public function set bgFillType(s: String):Void
Background fill type:
public function set bgKerning(s: String):Void
public function set bgMatrix(o: Object):Void
public function set bgRatios(a: Array):Void
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
public function set bgRLineStyle(a: Array):Void
This set background fill border:
public function set bgShadow(n: Boolean):Void
public function set bgShadowColor(n: Number):Void
public function set spBgBorderSkin(s: String):Void
Scroll pane background border skin linkage name
public function set spBgAlphas(a: Array):Void
Background alphas array, one for each color you set to fill background
public function set spBgColors(a: Array):Void
Background colors array, you can set how many colors you want for background gradient from a minimum of two
public function set spBgCornerRadius(n: Number):Void
Background corner radius
public function set spBgFillType(s: String):Void
Background fill type:
public function set spBgKerning(s: String):Void
public function set spBgMatrix(o: Object):Void
public function set spBgRatios(a: Array):Void
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the backgroun, 0 = start, 255 = end.
public function set spBgRLineStyle(a: Array):Void
This set scrollpane background fill border:
public function set iCBorder(n: Number):Void
Background expand of iCBorder dimension around image area
public function set iCImgCornerRadius(n: Number):Void
For image rounded corner (in pixels)
public function set iCImgShadow(b: Boolean):Void
Image shadow on/off
public function set iCNameVisible(b: Boolean):Void
Toggle Image name visibility
public function set iCImgShadowColor(n: Number):Void
public function set iCLoadingMcId(s: String):Void
Loading movieclip linkage identifier.
public function set iCLoadEffect(s: String):Void
public function set iCOverEffect(s: String):Void
public function set iCBgBorderSkin(s: String):Void
Background border skin linkage name
public function set iCBgAlphas(a: Array):Void
Background alphas array, one for each color you set to fill background
public function set iCBgColors(a: Array):Void
Background colors array, you can set how many colors you want for background gradient from a minimum of two
public function set iCBgCornerRadius(n: Number):Void
Background corner radius
public function set iCBgFillType(s: String):Void
Background fill type:
public function set iCBgKerning(s: String):Void
public function set iCBgMatrix(o: Object):Void
public function set iCBgRatios(a: Array):Void
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
public function set iCBgRLineStyle(a: Array):Void
This set background fill border:
public function set iCBgShadow(b: Boolean):Void
public function set iCBgShadowColor(b: Number):Void
public function set bigImgBorder(n: Number):Void
Background expand of bigImgBorder dimension around image area
public function set bigImgImgCornerRadius(n: Number):Void
For image rounded corner (in pixels)
public function set bigImgImgShadow(b: Boolean):Void
Image shadow on/off
private var __bigImgImgShadowColor: Number
public function set bigImgBgBorderSkin(s: String):Void
Background border skin linkage name
public function set bigImgBgAlphas(a: Array):Void
Background alphas array, one for each color you set to fill background
public function set bigImgBgColors(a: Array):Void
Background colors array, you can set how many colors you want for background gradient from a minimum of two
public function set bigImgBgCornerRadius(n: Number):Void
Background corner radius
public function set bigImgBgFillType(s: String):Void
Background fill type:
public function set bigImgBgKerning(s: String):Void
public function set bigImgBgMatrix(o: Object):Void
public function set bigImgBgRatios(a: Array):Void
Background ratios array, every color have a ratios that indicate the point from where that colors will be rendered inside the background, 0 = start, 255 = end.
public function set bigImgBgRLineStyle(a: Array):Void
This set background fill border:
public function set bigImgBgShadow(b: Boolean):Void
public function set bigImgBgShadowColor(b: Number):Void
public function set bigImgLoadingMcId(s: String):Void
Loading movieclip linkage identifier.
public function set bigImgLoadEffect(s: String):Void
private var __bigImgDesMcColor: Number
private var __bigImgDesMcAlpha: Number
private var __bigImgTitleFont: String
private var __bigImgTitleFontSize: Number
private var __bigImgTitleColor: Number
private var __bigImgDesFont: String
private var __bigImgDesFontSize: Number
private var __bigImgDesColor: Number
public function set vLBarInitObj(o: Object):Void
Embedded video loading bar initObj (see Bar documentation for settable properties)
public function set vPBarInitObj(o: Object):Void
Embedded video progress bar background initObj (see Slider documentation for settable properties)
public function set vVolInitObj(o: Object):Void
Embedded video volume initObj (see Slider documentation for settable properties)
public function set vMaxLBarInitObj(o: Object):Void
Maximized video loading bar initObj (see Bar documentation for settable properties)
public function set vMaxPBarInitObj(o: Object):Void
Maximized video progress bar background initObj (see Slider documentation for settable properties)
public function set vMaxVolInitObj(o: Object):Void
Maximized video volume initObj (see Slider documentation for settable properties)
public function set folderNameSpacer(n: Number):Void
Space between Folder graphics and Folder name.
public function set folderShadow(b: Boolean):Void
public function set folderShadowColor(b: Number):Void
public function set folderFont(s: String):Void
public function set folderFontSize(n: Number):Void
public function set folderFontColor(n: Number):Void
public function set gatewayUrl(url: String):Void
AMFPHP gateway.php absolute path
public function set pwd(s: String):Void
Password to access server services.