Reference for Galerie [zero]

Method

Description

gotoItem() Tell the menu goto the item with ID. This only work with enableMouseScroll set to false.
nextItem() Tell the menu goto next item. This only work with enableMouseScroll set to false.
prevItem() Tell the menu goto prev item. This only work with enableMouseScroll set to false.

 

GalerieZero.gotoItem()

Availability Flash Player 8.

Edition Flash 8.

Usage GalerieZero.gotoItem(index)

Parameters index: index number of each item. From left to right, 0 to item max.

Returns None

Description Method; Move to the item with specified index.

Code Example :

GalerieZero_mc.gotoItem(10);

 

GalerieZero.nextItem()

Availability Flash Player 8.

Edition Flash 8.

Usage GalerieZero.nextItem()

Returns None

Description Method; Move to next item.

Code Example :

GalerieZero_mc.nextItem();

 

GalerieZero.prevItem()

Availability Flash Player 8.

Edition Flash 8.

Usage GalerieZero.prevItem()

Returns None

Description Method; Move to previous item.

Code Example :

GalerieZero_mc.prevItem();

Event

Description

onItemClick

Broadcast when mouse clicked on the item.

onItemRollOver Broadcast when mouse over on the item.
onItemRollOut Broadcast when mouse move outside the item after mouse over.
onItemSelect Broadcast when the item moved to the center and stop.
onItemChange Broadcast just after change the current focus item by calling gotoItem() function or click on other item.
onXmlComplete Broadcast when the XML loaded and finish praser
onLoadComplete Broadcast when the all buffer images loaded.


Code Example :

//Event Handler 
function eventHandler(event:Object) {
switch(event.type){
case "onItemClick":
//index of the photo
trace(event.target.id);
//title of the photo
trace(event.target.title);
//description of the photo
trace(event.target.description);
//copyright of the photo
trace(event.target.copyright);
break;
case "onItemRollOver":
break;
case "onItemRollOut":
break;
case "onItemChange":
break;
case "onXmlComplete":
break;
case "onItemSelect":
break;
case "onLoadComplete":
break;
}
}
//Add Event Listener
gallery_mc.addEventListener("onItemClick",eventHandler);
gallery_mc.addEventListener("onItemRollOver",eventHandler);
gallery_mc.addEventListener("onItemRollOut",eventHandler);
gallery_mc.addEventListener("onItemChange",eventHandler);
gallery_mc.addEventListener("onItemSelect",eventHandler);
gallery_mc.addEventListener("onXmlComplete",eventHandler);
gallery_mc.addEventListener("onLoadComplete",eventHandler);

Property

Type

Description

Default Value

Possible Value

length Number Get number of item in current album. Any positive number.
source String The path to the xml generate by Photoshop Web Gallery Function
photo/photos.xml
Any instance name of movieclip.
galleryInfo Object The info of the ablum. Generate from the xml.(readonly)
(readonly)

Object with format:
{sitename:"", photographer:"", contactinfo:"", email:"", security:"", thumbnailPath:"", largePath:""}

imageDistance Number Distance between each item.
0
Any positive number.
border Object Border size of the item. In order to change the border size, create a object {top:0, bottom:0, left:0, right:0} and access to border.
0,0,0,0
Object with format:
{top:0, bottom:0, left:0, right:0}
borderColor Number Border color.
0xffffff
Number in hex format 0x000000
shadowEffect Boolean Enable/disable shadow effect.
true
true/false
shadowFilter DropShadowFilter The filter object use to define the shadow effect. You can create a new DropShadowFilter and asign to shadowFilter for custom shadow.
Object
DropShadowFilter Object
blurEffect Boolean Enable/disable motion blur effect.
true
true/false
alignment String Set the alignment of the image when selected.
Left
Left,Center,Right
motionDuration Number Duration of the sliding motion effect.
1
Any positive Number
motionTransition String The transition curve use for transition motion.
"easeInOutQuart"
<a href="#">Transition Table </a>
perloadImageNumber Number Number of image preloaded before the appear of the gallery.
3
Positive Number
 
Item Parameter Name Description
1 source The path to the xml generate by Photoshop Web Gallery Function, Flickr rss or Youtube rss.
2 borderColor Set the border color.
3 shadowEffect Enable/disable shadow effect.
4 loderSkin The linkage name use of the skin for the loading animation
5 border Border size of the item. In order to change the border size, create a object {top:0, bottom:0, left:0, right:0} and access to border.
6
7
8
     
 
Item Parameter Name Description
1 alignment Set the alignment of the image when selected.
2 imageDistance Distance between each item.
3 blurEffect Enable/disable motion blur effect.
4 motionDuration Duration of the sliding motion effect.
5 motionTransition The transition curve use for transition motion.