Reference for FotoQueue CS

Method

Description

nexItem()Move to next item.
prevItem()Move to previous item.
load()Load xml source.
start()Start the menu.
stop()Stop the menu.

 

FotoQueue.nextItem()

Availability Flash Player 9.

Edition Flash CS3.

Usage FotoQueue.nextItem()

Returns None

Description Method; Move to next Item.

Code Example :

FotoQueue_mc.nextItem();

 

FotoQueue.prevItem()

Availability Flash Player 9.

Edition Flash CS3.

Usage FotoQueue.prevItem()

Returns None

Description Method; Move to previous item.

Code Example :

FotoQueue_mc.prevItem();

 

FotoQueue.load()

Availability Flash Player 9.

Edition Flash CS3.

Usage FotoQueue.load(xml)

Parameters

xml: URL of external xml file. Or XML object.

Returns None

Description Method; Load the xml source and setup FotoQueue

Code Example :

//Load the source xml named photo.xml.  
FotoQueue_mc.load("photo.xml");

 

FotoQueue.start()

Availability Flash Player 9.

Edition Flash CS3.

Usage FotoQueue.start()

Returns None

Description Method; Start the tunnel if xml is loaded and the tunnel not started yet.

Code Example :

//Load the xml   FotoQueue_mc.load("photo.xml"); //Start
FotoQueue_mc.start();

 

FotoQueue.stop()

Availability Flash Player 9.

Edition Flash CS3.

Usage FotoQueue.start()

Returns None

Description Method; Stop the tunnel when the tunnel is in started state.

Code Example :


FotoQueue_mc.stop();

To use event, you need to import the library:

import com.digicrafts.events.*;

Event

Object

Description

itemClickItemEvent.CLICK

Broadcast when mouse clicked on the item.

itemMouseOverItemEvent.MOUSE_OVERBroadcast when mouse over on the item.
itemMouseOutItemEvent.MOUSE_OUTBroadcast when mouse move outside the item after mouse over.
completeItemEvent.COMPLETEBroadcast when the all buffer images loaded.
selectItemEvent.SELECTBroadcast when the thumbnail move to center.


Code Example :

import com.digicrafts.controls.*;    
function itemH(event:ItemEvent):void {
switch(event.type) {
//Mouse Over Event
case ItemEvent.MOUSE_OVER:
//do something when mouse over an item
//You can get the item item by
trace(event.index);
//You can get the data object by
trace(event.item);
// You can get parameter inside data object by
trace(event.item.source);
trace(event.item.title);
trace(event.item.description);
trace(event.item.link);
trace(event.item.width);
trace(event.item.height);
break;
//Mouse Out Event
case ItemEvent.MOUSE_OUT:
//do something when mouse out an item
break;
//Mouse Click Event
case ItemEvent.CLICK:
//do something when mouse click an item
break;
//Thumbnail Move Complete
case ItemEvent.SELECT:
//do something when the thumbnail move to center
break;
}
}
fotoqueue_mc.addEventListener(ItemEvent.MOUSE_OVER,itemH);
fotoqueue_mc.addEventListener(ItemEvent.MOUSE_OUT,itemH);
fotoqueue_mc.addEventListener(ItemEvent.CLICK,itemH);
fotoqueue_mc.addEventListener(ItemEvent.SELECT,itemH);

Property

Type

Description

Default Value

Possible Value

dataProvider
DataProvider
Get the DataProvider for the components 
sourceStringThe path to the xml generate by Photoshop Web Gallery Function, Flickr rss or Youtube rss.
photo/photos.xml
url to the xml file
useThumbnailBooleanDetermine the use of thumbnail image in the xml source as image. truetrue/false
proxyStringThe proxy script for cross domain issue.  url to the proxy script
autostartBooleanEnable auto start when xml and image loaded
true
true/false
itemCountNumberThe item count in appear on the screen
8Positive Number
itemWidthNumberThe prefer width of each item 100Positive Number
itemHeightNumberThe prefer height of each item 100Positive Number
cameraXNumberThe value of camera view in horizontal. ( > 0 is view from right, < 0 is view from left)
150+/- 100
cameraYNumberThe value of camera view in vertical.0+/- 100
itemDistanceNumberDistance between each item.100Positive Number
frontItemDistanceNumberDistance between 1st item and the other item.200Positive Number
itemRotationNumberThe degree of horizontal rotation of the items.0+/- 90
frontItemRotationNumberThe degree of horizontal rotation of the 1st items.0+/- 90
frontItemScaleNumberThe scale of the 1st item related to other item1.5Positive Number
itemScaleRatioNumberThe ratio which define the size of other item0.5Any Number
dofNumberThe value of depth of field effect
.50.0 - 1.0
itemMirrorNumberThe value of mirror effect
.30.0 - 1.0
itemAlphaNumberThe value of alpha effect
.50.0 - 1.0
transitionTimeNumberThe transition time of the animation. ( in seconds)1.5 secPositive Number
transitionTypeStringThe transition type of the animation.easeOutSineAny String
itemOverColorNumberSet the color of glow when mouse over.0x000000Color Value
itemOverColorSizeNumberThe size of gloe effect
4Positive Number
itemMotionObjectSet the motion{y:10}Object with format {y:10}
keyboardControlEnabledBooleanEnable/Disable the keyboard control.truetrue/false
touchScrollEnabledBooleanEnable/Disable the touch scroll control.truetrue/false
touchScrollDirectionBooleanEnable/Disable the reverse of touch scroll direction.truetrue/false
wheelScrollEnabledBooleanEnable/Disable the mouse wheel control.truetrue/false
itemClickActionStringDetermine the action do when mouse click on the items. "GOTO""GOTO,GETURL"
itemOverActionStringDetermine the action do when mouse over on the items"GLOW,MOVE""GLOW,MOVE"
captionTargetNameStringThe instance name of dynamic text field use for hold the caption.  Any instance name of dynamic text field
nextButtonTargetNameStringThe instance name of Button/SimpleButton use to control the move to next item Any instance name of Button/ SimpleButton
prevButtonTargetNameStringThe instance name of Button/SimpleButton use to control the move to previous item Any instance name of Button/ SimpleButton
scrollBarTargetNameStringThe instance name of UIScrollbar/Slider use to control the menu movement Any instance name of Button/ SimpleButton
loaderSkinStringThe class name use of the skin for the loading animation  Any class name of movieclip symbol
 selectedItemDataObject
The data object of the current selected item.   (read only)   (read only)
 
Item Parameter Name Description
1 source The path to the xml generate by Photoshop Web Gallery Function, Flickr rss or Youtube rss.
2 useThumbnail Determine the use of thumbnail image in the xml source as image.
3 autostart Enable auto start when xml and image loaded
4 proxy The proxy script for cross domain issue.
     
 
Item Parameter Name Description
1 frontItemRotation The degree of horizontal rotation of the 1st items.
2 frontItemScale The scale of the 1st item related to other item
3 frontItemDistance Distance between 1st item and the other item.
4 itemRotation The degree of horizontal rotation of the items.
5 itemScaleRatio The ratio which define the size of other item
6 itemDistance Distance between each item.
7 itemWidth The prefer width of each item
8 itemHeight The prefer height of each item
9 itemCount The item count in appear on the screen
10 cameraY The value of camera view in vertical.
11 cameraX The value of camera view in horizontal. ( > 0 is view from right, < 0 is view from left)
     
 
Item Parameter Name Description
1 itemOverAction Determine the action do when mouse over on the items
2 itemOverColor Set the color of glow when mouse over.
3 itemOverColorSize The size of gloe effect
4 itemClickAction Determine the action do when mouse click on the items.
5    
6 transitionType The transition type of the animation.
7 transitionTime The transition time of the animation. ( in seconds)
8    
     
 
Item Parameter Name Description
1 keyboardControlEnabled Enable/Disable the keyboard control.
2 touchScrollEnabled Enable/Disable the touch scroll control.
3 touchScrollDirection Enable/Disable the reverse of touch scroll direction.
4 wheelScrollEnabled Enable/Disable the mouse wheel control.
5 nextButtonTargetName The instance name of Button/SimpleButton use to control the move to next item
6 prevButtonTargetName The instance name of Button/SimpleButton use to control the move to previous item
7 scrollBarTargetName The instance name of UIScrollbar/Slider use to control the menu movement
8 captionTargetName The instance name of dynamic text field use for hold the caption.
   
Item Parameter Name Description
1 itemAlpha The value of alpha effect
2 itemMirror The value of mirror effect
3 dof The value of depth of field effect
4 loaderSkin The class name use of the skin for the loading animation
   
Item Parameter Name Description
1 - Save Preset Button
2 - Load Preset Button