3D ImageFlow Gallery Reference

Dazzle your viewers with 3D photo navigation. Create an amazing gallery with cool  perspective effects in seconds and give your photos stunning 3d and camera effects.  The component is fully ActionScript 2 compatible.
 

Make sure to take a look at the online documentation as well.

Gallery class

Inheritance MovieClip > UIObject > UIComponent > Gallery

ActionScript Class Name com.flzone.imageflow.Gallery

An item is an ActionScript object used for storing the units of information in the gallery. The gallery can be thought of as an array; each indexed space of the array is an item.

An item is an object that has an url property that is the path to the image to show, optionally an item can have a width and height property which contains the image size, a description property that is used to describe the image and is shown when the image is selected and a link and target property that contains the url where to go to when the selected image is double clicked.

To add a gallery component to the tab order of an application, set its tabIndex property (see UIComponent.tabIndex).

Method summary for the Gallery class

The following table lists methods of the Gallery class.

Method

Description

Gallery.addItem()

Adds an item to the end of the gallery.

Gallery.addItemAt()

Adds an item to the gallery at the specified index.

Gallery.flip()

Navigate to the next item depending on the last direction.

Gallery.getItemAt()

Return the item at the specified index.

Gallery.goto()

Navigate to the specified index.

Gallery.load()

Loads the xml specified by the xmlPath property.

Gallery.next()

Navigate to the next item.

Gallery.previous()

Navigate to the previous item.

Gallery.removeAll()

Removes all items from the gallery.

Gallery.removeItemAt()

Removes the item at the specified index.

Gallery.replaceItemAt()

Replaces the item at the specified index with another item.

Methods inherited from the UIObject class

The following table lists the methods the List class inherits from the UIObject class. When calling these methods, use the form galleryInstance.methodName.

Method

Description

UIObject.createClassObject()

Creates an object on the specified class.

UIObject.createObject()

Creates a subobject on an object.

UIObject.destroyObject()

Destroys a component instance.

UIObject.doLater()

Calls a function when parameters have been set in the Property and Component inspectors.

UIObject.getStyle()

Gets the style property from the style declaration or object.

UIObject.invalidate()

Marks the object so it is redrawn on the next frame interval.

UIObject.move()

Moves the object to the requested position.

UIObject.redraw()

Forces validation of the object so it is drawn in the current frame.

 


Methods inherited from the UIComponent class

The following table lists the methods the List class inherits from the UIComponent class. When calling these methods, use the form galleryInstance.methodName.

Method

Description

UIComponent.getFocus()

Returns a reference to the object that has focus.

UIComponent.setFocus()

Sets focus to the component instance.

Property summary for the Gallery class

The following table lists properties of the Gallery class.

Property

Description

Gallery.autoFlip

Automatically navigate to the next item.

Gallery.autoFlipInterval

The duration an item should is selected before navigating to the next item.

Gallery.backgroundColor

The background color of the gallery.

Gallery.backgroundTransparent

A boolean indicating if the background should be transparent.

Gallery.bytesLoaded

A read-only property that indicates the number of bytes that have been loaded.

Gallery.bytesTotal

A read-only property that indicates the total number of bytes in the xml.

Gallery.descriptionColor

A number indicating the color of the description text.

Gallery.descriptionFont

The font used for the description text.

Gallery.descriptionSize

The size of the description text.

Gallery.dofStrength

The strength of the depth of field effect.

Gallery.flipDuration

The duration in milliseconds the navigation animation lasts.

Gallery.fogStrength

The strength of the distance fog.

Gallery.imageAngle

The angle of the items in the back.

Gallery.imageDepth

The depth for the items in the back.

Gallery.imageHeight

The default height for an item.

Gallery.imageKeepAspect

A boolean indicating whether to keep aspect ratio in the items, changes the default height.

Gallery.imageWidth

The default width for an item.

Gallery.imageOffset

A number indicating the offset from the center of the gallery to the bottom of the item.

Gallery.imageQuality

The quality of the gallery items.

Gallery.imageSpaceBack

The space between the items in the back.

Gallery.imageSpaceMain

The space between the selected item and the images in the back.

Gallery.items

An array with the gallery items. This property is write-only.

Gallery.length

The number of items in the gallery. This property is read-only.

Gallery.motionBlur

A boolean value indicating whether to use motionblur when navigating.

Gallery.percentLoaded

A number that indicates the percentage of the xml is loaded. This property is read-only.

Gallery.reflections

A boolean indicating whether the items have reflection.

Gallery.reflectionSize

The size of the reflection.

Gallery.reflectionStrength

The strength of the reflection.

Gallery.selectedIndex

The index of a selection in the gallery.

Gallery.selectedItem

The selected item in the gallery. This property is read-only.

Gallery.titleColor

A number indicating the color of the title text.

Gallery.titleFont

The font used for the title text.

Gallery.titleSize

The size of the title text.

Gallery.titleText

The text in the title.

Gallery.xmlPath

A string that indicates the URL of the xml to be loaded.

Properties inherited from the UIObject class

The following table lists the methods the List class inherits from the UIObject class. When calling these methods, use the form galleryInstance.methodName.

Property

Description

UIObject.bottom

The position of the bottom edge of the object, relative to the bottom edge of its parent. Read-only.

UIObject.height

The height of the object, in pixels. Read-only.

UIObject.left

The left edge of the object, in pixels. Read-only.

UIObject.right

The position of the right edge of the object, relative to the right edge of its parent. Read-only.

UIObject.scaleX

A number indicating the scaling factor in the x direction of the object, relative to its parent.

UIObject.scaleY

A number indicating the scaling factor in the y direction of the object, relative to its parent.

UIObject.top

The position of the top edge of the object, relative to its parent. Read-only.

UIObject.visible

A Boolean value indicating whether the object is visible (true) or not (false).

UIObject.width

The width of the object, in pixels. Read-only.

UIObject.x

The left edge of the object, in pixels. Read-only.

UIObject.y

The top edge of the object, in pixels. Read-only.

Properties inherited from the UIComponent class

The following table lists the properties the List class inherits from the UIComponent class. When accessing these properties, use the form galleryInstance.propertyName.

Property

Description

UIComponent.enabled

Indicates whether the component can receive focus and input.

UIComponent.tabIndex

A number indicating the tab order for a component in a document.

Event summary for the Gallery class

The following table lists events that of the Gallery class.

Event

Description

Gallery.change

Broadcast whenever user interaction causes the selection to change.

Gallery.click

Broadcast when front image is clicked.

Gallery.complete

Triggered when the content finished loading.

Gallery.doubleClick

Broadcast when front image is double clicked.

Gallery.motionFinished

Triggered when the tween animation finished.

Gallery.progress

Triggered while content is loading.

Events inherited from the UIObject class

The following table lists the events the List class inherits from the UIObject class.

Event

Description

UIObject.draw

Broadcast when an object is about to draw its graphics.

UIObject.hide

Broadcast when an object's state changes from visible to invisible.

UIObject.load

Broadcast when subobjects are being created.

UIObject.move

Broadcast when the object has moved.

UIObject.resize

Broadcast when an object has been resized.

UIObject.reveal

Broadcast when an object's state changes from invisible to visible.

UIObject.unload

Broadcast when the subobjects are being unloaded.

Events inherited from the UIComponent class

The following table lists the events the List class inherits from the UIComponent class.

Event

Description

UIComponent.focusIn

Broadcast when an object receives focus.

UIComponent.focusOut

Broadcast when an object loses focus.

UIComponent.keyDown

Broadcast when a key is pressed.

UIComponent.keyUp

Broadcast when a key is released.


Comments

Be the first to write a comment

You must me logged in to write a comment.