Update 2.1:
*Bug Fix: ComboBox List allways on top
*Bug Fix: ComboBox disabled after clicked
Description:
Touch Components v2.0 extends the default Flash’s components by adding support for better touch
and throw effect (better than the first version) and customizable scrollbars.
ComboBox is now a fully supported touchComponent and you can use it along with TextArea, List, DataGrid
and TileList. Simply each time you want to use one of these components instead of importing the default
component import the touchComponent.
All the properties remains the same except from the additional properties which control
touch and throw effect and customizable scrollbars.
As you can see from the preview file you can edit sensitivity, direction (normal or reversed) and restricted or extended(listening movement in the whole stage) responsing.
You can also customize the offset of the custom scrollbars the size and the colors in order to create a unique experience for your customers. Please note that those components were not designed for touch Devices (iPhone, Android etc) but for computer with touch Screens (where touch functionality is similar to mouse functionality).
How to use:
First of all drag and drop from the components window the TextArea, List, DataGrid, TileList and ComboBox components
to your library. Then open the ActionScript Window and import the new classes to your project:
import.com.cyprog.touchInterface.*;
and then instead of using:
var myTextArea:TextArea=new TextArea();
var myList:List=new List();
var myDataGrid:DataGrid=new DataGrid();
var myTileList:TileList=new TileList();
use:
var myTextArea:TouchTextArea=new TouchTextArea();
var myList:TouchList=new TouchList();
var myDataGrid:TouchDataGrid=new TouchDataGrid();
var myTileList:TouchTileList=new TouchTileList();
then you can customize the components as you want:
myTextArea.sesnistivity=5;
myTextArea.restricted=true;
myTextArea.reversed=true;
myTextArea.horizontalTouchScrollBar.size=4;
myTextArea.verticalTouchScrollBar.lineColor=0x000000
Supported properties:
touchComponent.sesnistivity – uint
touchComponent.restricted – Boolean
touchComponent.reversed – Boolean
touchConmponent.throwing – Boolean
touchComponent.delay – Boolean
touchComponent.horizontalScrollPolicy – ScrollPolicy (except TouchTileList)
touchComponent.verticalScrollPolicy – ScrollPolicy (except TouchTileList)
touchComponent.scrollPolicy – ScrollPolicy (only for TouchTileList)
touchComponent.verticalTouchScrollBar.size – uint
touchComponent.verticalTouchScrollBar.offset – uint
touchComponent.verticalTouchScrollBar.scrollerColor – uint
touchComponent.verticalTouchScrollBar.lineColor – uint
touchComponent.horizontalTouchScrollBar.size – uint
touchComponent.horizontalTouchScrollBar.offset – uint
touchComponent.horizontalTouchScrollBar.scrollerColor – uint
touchComponent.horizontalTouchScrollBar.lineColor – uint

28 Purchases
7 Comments