Reference for TouchScroller

Method

Description

attachContent() To attach embed movie clip to the touchSCROLLER component.
loadContent() To load external swf, jpg or png into the touchSCROLLER component.
getContent() Get the loaded content reference of touchSCROLLER component.

 

touchSCROLLER.getItems()

Availability Flash Player 8.

Edition Flash 8.

Usage touchSCROLLER.attachContent(idName)

Parameters idName: String: identifier name of the embed moiveclip.

Returns MoiveClip; Object references of the content.

Description Method; Attach embed movie clip to the touchSCROLLER component.

Code Example :

  //"content" is the identifier name 
touchScroll_mc.attachContent("content");

 

touchSCROLLER.loadContent()

Availability Flash Player 8.

Edition Flash 8.

Usage touchSCROLLER.loadContent(url)

Parameters url: String: URL of the external movie , jpg or png.
Please use System.security.allowDomain(domain) function to allow access to external loaded content. You can see http://www.adobe.com/devnet/flash/articles/fplayer8_security.html for more information.

Returns MoiveClip; Object references of the content.

Description Method; To load external swf, jpg or png into the touchSCROLLER component.

Code Example :

//"content" is the identifier name 
touchScroll_mc.loadContent("http://www.digicrafts.com.hk/logo.jpg");

No Events

Property

Type

Description

Default Value

Possible Value

identifierName
String
The linkage name of embed movieclip load into the touchscroller.
""
Any path
externalSwfName
String
The external filename of movie/picture which load into the touchscroller. Support swf, jpg and png.
""
Any path
horizontal Boolean Enalble/disable horizontal scrolling.
false
true/false
enableBorder Boolean Enalble/disable border.
true
true/false
enableBlurEffect Boolean Enalble/disable blur effect.
true
true/false
enableTouchScroll
Boolean
Enalble/disable touch scroll.
true
true/false
enableScrollWheel Boolean Enalble/disable mouse wheel scroll.
true
true/false
enableScrollBar
Boolean
Enalble/disable scrollbar.
true
true/false
resizeScrollButton
Boolean
Enalble/disable touchscroll to resize the scroll thumb button.
true
true/false
reverseTouchScroll
Boolean
Enalble/disable reverse touch scroll direction.
true
true/false
scrollSpeed
Number
Define the speed of the erase effect.
0.2
top / middle / bottom
snapScroll
Number
Define the value to scroll when click the scroll button.
0
horizontal / vertical
skinName
String
The linkage name of the loader skin.
""
 
upButtonReference
String
The instance name of the button use to scroll upward.
""
 
downButtonReference
String
The instance name of the button use to scroll downward.
"
 
 
Item Parameter Name Description
1 identifierName The linkage name of embed movieclip load into the touchscroller.
2 externalSwfName The external filename of movie/picture which load into the touchscroller. Support swf, jpg and png.
3 horizontal Enalble/disable horizontal scrolling.
4 enableBorder Enalble/disable border.
5 enableBlurEffect Enalble/disable blur effect.
6 enableTouchScroll Enalble/disable touch scroll.
7 enableScrollWheel Enalble/disable mouse wheel scroll.
8 enableScrollBar Enalble/disable scrollbar.
9 resizeScrollButton Enalble/disable touchscroll to resize the scroll thumb button.
10 reverseTouchScroll Enalble/disable reverse touch scroll direction.
11 scrollSpeed Define the speed of the erase effect.
12 snapScroll Define the value to scroll when click the scroll button.
13 skinName The linkage name of the loader skin.
14 upButtonReference The instance name of the button use to scroll upward.
15 downButtonReference The instance name of the button use to scroll downward.