ActionScript Reference
com.bjc.ui1
mx.core.UIComponent | +--com.bjc.ui1.BJCDnD
class BJCDnD
extends UIComponent
Field Summary |
|
| public |
onMouseOut: Function |
| This event is invoked when the mouse leaves a specified element. |
|
| public |
onMouseOver: Function |
| This event is invoked when the mouse is on a specified element. |
|
Property Summary |
|
| public |
BarsVisible: Boolean (write-only) |
| This property may be used to set the top and bottom bar visibility. |
|
| public |
BbColor: Number (write-only) |
| This property may be used to set the bright border color of component items. |
|
| public |
BbHeight: Number (write-only) |
| This property may be used to set the height of the bottom bar. |
|
| public |
DArrow: String (write-only) |
| This property may be used to set the default arrow symbol. |
|
| public |
DbColor: Number (write-only) |
| This property may be used to set the dark border color of component items. |
|
| public |
DDragIcon: String (write-only) |
| This property may be used to set the default element dragging symbol. |
|
| public |
DIcon: String (write-only) |
| This property may be used to set the default element icon. |
|
| public |
DownColor: Number (write-only) |
| This property may be used to set the color of component items on press. |
|
| public |
EcCallback: String (write-only) |
| This property may be used to set the function to be called when the element has been clicked. |
|
| public |
EdCallback: String (write-only) |
| This property may be used to set the function to be called when the element has been dragged and dropped. |
|
| public |
EdefFont: String (write-only) |
| This property may be used to set the default element font. |
|
| public |
ElHeight: Number (write-only) |
| This property may be used to set the element height. |
|
| public |
EMode: String (write-only) |
| This property may be used to set the element mode. |
|
| public |
EPadding: Number (write-only) |
| This property may be used to set the element padding. |
|
| public |
ESymbol: String (write-only) |
| This property may be used to set the default element symbol. |
|
| public |
EtColor: Number (write-only) |
| This property may be used to set the element font color. |
|
| public |
ETMode: String (write-only) |
| This property may be used to set the element transfer mode. |
|
| public |
GradColor: Number (write-only) |
| This property may be used to set the color of the component gradient. |
|
| public |
GVisibility: Number (write-only) |
| This property may be used to set the transperacy of the component gradient. |
|
| public |
ListColor: Number (write-only) |
| This property may be used to set the background color of component items. |
|
| public |
RoOnOff: String (write-only) |
| This property may be used to enable or disable rollover actions. |
|
| public |
SEColor: Number (write-only) |
| This property may be used to set the background color of the selected element. |
|
| public |
SETxtColor: Number (write-only) |
| This property may be used to set the font color of the selected element. |
|
| public |
Speed: Number (write-only) |
| This property may be used to set the scrolling speed. |
|
| public |
TbHeight: Number (write-only) |
| This property may be used to set the height of the top bar. |
|
| public |
Title: String (write-only) |
| This property may be used to set the title. |
|
| public |
TitleColor: Number (write-only) |
| This property may be used to set the bright border color of component items. |
|
| public |
TitleFont: String (write-only) |
| This property may be used to set the title font. |
|
| public |
UpColor: Number (write-only) |
| This property may be used to set the rollover color of component items. |
|
Constructor |
|
| BJCDnD ( ) | |
| Constructor |
|
Method Summary |
|
| public |
addElement ( title: String ): Number |
| This method may be used to add an element to the component. |
|
| public |
addElementCustom ( title: String, font: String, fontColor: Number, bgColor: Number, bgUpColor: Number, bgDownColor: Number, icon: String, dragIcon: String ): Number |
| This method may be used to add a customized element to the component. |
|
| public |
addElementIcon ( title: String, icon: String ): Number |
| This method may be used to add an element with a specified icon to the component. |
|
| public |
getElementAt ( index: Number ): MovieClip |
| This method may be used to get the element at a specified index. |
|
| public |
getElementsTotal ( ): Number |
| This method may be used to get the number of elements in the component. |
|
| public |
getObjectName ( index: Number ): String |
| This method may be used to get the element object name. |
|
| public |
getProperty ( index: Number, property: String ): String |
| This method may be used to get values of properties of an element object. |
|
| public |
removeAll ( ): Void |
| This method may be used to remove all elements. |
|
| public |
removeElement ( index: Number ): Void |
| This method may be used to remove an element at a specified index. |
|
| public |
setClickCallback ( cb: String ): Void |
| This method may be used to set the click callback function of the component. |
|
| public |
setDropCallback ( cb: String ): Void |
| This method may be used to set the drop callback function of the component. |
|
| public |
setElementIcon ( index: Number, ico: String ): Void |
| This method may be used to set the icon symbol of a specified element. |
|
| public |
setElementMode ( mod: String ): Void |
| This method may be used to set the element mode of the component. |
|
| public |
setElementSymbol ( id: String ): Void |
| This method may be used to set the default element symbol of the component. |
|
| public |
setElementTransferMode ( mod: String ): Void |
| This method may be used to set the element transfer mode of the component. |
|
| public |
setObjectName ( index: Number, name: String ): Void |
| This method may be used to set the element object name. |
|
| public |
setProperty ( index: Number, property: String, value: String ): Void |
| This method may be used to add properties to the data object of an element. |
|
| public |
setScrollArrowIcon ( id: String ): Void |
| This method may be used to set the scroll arrow icon of the component. |
|
| public var onMouseOut: Function |
This event is invoked when the mouse leaves a specified element.
|
| public var onMouseOver: Function |
This event is invoked when the mouse is on a specified element.
|
|
| This property may be used to set the top and bottom bar visibility. |
|
| This property may be used to set the bright border color of component items. |
|
| This property may be used to set the height of the bottom bar. |
|
| This property may be used to set the default arrow symbol. |
|
| This property may be used to set the dark border color of component items. |
|
| This property may be used to set the default element dragging symbol. |
|
| This property may be used to set the default element icon. |
|
| This property may be used to set the color of component items on press. |
|
| This property may be used to set the function to be called when the element has been clicked. |
|
| This property may be used to set the function to be called when the element has been dragged and dropped. |
|
| This property may be used to set the default element font. |
|
| This property may be used to set the element height. |
|
| This property may be used to set the element mode. |
|
| This property may be used to set the element padding. |
|
| This property may be used to set the default element symbol. |
|
| This property may be used to set the element font color. |
|
| This property may be used to set the element transfer mode. |
|
| This property may be used to set the color of the component gradient. |
|
| This property may be used to set the transperacy of the component gradient. |
|
| This property may be used to set the background color of component items. |
|
| This property may be used to enable or disable rollover actions. |
|
| This property may be used to set the background color of the selected element. |
|
| This property may be used to set the font color of the selected element. |
|
| This property may be used to set the scrolling speed. |
|
| This property may be used to set the height of the top bar. |
|
| This property may be used to set the title. |
|
| This property may be used to set the bright border color of component items. |
|
| This property may be used to set the title font. |
|
| This property may be used to set the rollover color of component items. |
|
| Constructor |
|
| This method may be used to add an element to the component.
This method may be used to add an element to the component. The element will be added to the end of the element list. The visuality of the element will be defined from the component parameters if the default element symbol is used. We recommend using the default element symbol for quick and easy use. You can also customize the element symbol as you like directly from the library. If you want to use your own element symbol make sure it has the same instances as the default symbol to make sure it'll work properly. By using the returned element id you can easily add properties to the data object.
|
|||
|
|
| This method may be used to add a customized element to the component.
This method may be used to add a customized element to the component. This method is practical only when the default element symbol is used. The default element symbol (BJCDnDButton) has the following instances: bg, brightBorder, darkBorder, icon and titleTF. To inherit the all the element properties, add these instances to your element clip. By using the returned element id you can easily add properties to the data object.
|
||||||||||||||||||||||||
|
|
| This method may be used to add an element with a specified icon to the component.
This method may be used to add an element with a specified icon to the component. The element will be added to the end of the element list. The visuality of the element will be defined from the component parameters if the default element symbol is used. We recommend using the default element symbol for quick and easy use. You can also customize the element symbol as you like directly from the library. If you want to use your own element symbol make sure it has the same instances as the default symbol to make sure it'll work properly. By using the returned element id you can easily add properties to the data object.
|
||||||
|
|
This method may be used to get the element at a specified index.
|
|||
|
|
This method may be used to get the number of elements in the component.
|
|
|
This method may be used to get the element object name.
|
|||
|
|
This method may be used to get values of properties of an element object.
|
||||||
|
|
This method may be used to remove all elements.
|
|
|
This method may be used to remove an element at a specified index.
|
|||
|
|
| This method may be used to set the click callback function of the component.
This method may be used to set the click callback function of the component. The function is called by elements when they are clicked. The function will not be called when elements are dragged and dropped elsewhere. The function will be called with the data object and index of the caller element as a parameters.
|
|||
|
|
| This method may be used to set the drop callback function of the component.
This method may be used to set the drop callback function of the component. The function is called by elements when they are dragged and dropped on a target movieclip. The function will not be called when elements are clicked. The function will be called with the data object and index of the caller element as a parameters.
|
|||
|
|
This method may be used to set the icon symbol of a specified element.
|
||||||
|
|
| This method may be used to set the element mode of the component.
This method may be used to set the element mode of the component. The 'Button' mode disables the drag and drop behavior of the component. The 'Drop item' mode disables the click behavior of the component. The 'Both' mode enables both clicking and drag and drop behaviors.
|
|||
|
|
This method may be used to set the default element symbol of the component.
|
|||
|
|
| This method may be used to set the element transfer mode of the component.
This method may be used to set the element transfer mode of the component. The 'Copy' mode copies an element when dragged on another BJC DnD component. The 'Move' mode copies the element to the other BJC DnD component and then removes it from the first component.
|
|||
|
|
This method may be used to set the element object name.
|
||||||
|
|
This method may be used to add properties to the data object of an element.
|
|||||||||
|
|
| This method may be used to set the scroll arrow icon of the component.
This method may be used to set the scroll arrow symbol of the component. The arrow symbol appears in the top and bottom bars when scrolling is permitted. The same symbol will be used in both bars. The symbol in the top bar will be rotated upside down.
|
|||
|
for( var i=0; i<5; i++ ) { myBJCDnD.addElement( "clip" + i ); // Adds 5 elements to the component }