forked from arpit/openpyro
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestComboBox.as
More file actions
55 lines (46 loc) · 1.36 KB
/
TestComboBox.as
File metadata and controls
55 lines (46 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package
{
import flash.display.Sprite;
import flash.filters.DropShadowFilter;
import org.openPyro.aurora.AuroraComboBoxSkin;
import org.openPyro.aurora.AuroraContainerSkin;
import org.openPyro.controls.ComboBox;
import org.openPyro.controls.List;
import org.openPyro.controls.listClasses.DefaultListRenderer;
import org.openPyro.core.ClassFactory;
import org.openPyro.events.PyroEvent;
public class TestComboBox extends Sprite
{
public function TestComboBox()
{
stage.scaleMode = "noScale"
stage.align = "TL"
testCB()
}
private var _list:List;
private function testBasicList():void
{
_list = new List();
_list.skin = new AuroraContainerSkin();
var renderers:ClassFactory = new ClassFactory(DefaultListRenderer)
renderers.properties = {percentWidth:100, height:25}
_list.itemRenderer = renderers;
_list.filters = [new DropShadowFilter(2,90, 0, .5,2,2)];
addChildAt(_list,0);
_list.width = 100;
//_list.height = 200;
_list.dataProvider = ["one","two","three","four"];
_list.x = _list.y = 10
}
private function testCB():void
{
var comboBox:ComboBox = new ComboBox()
comboBox.width = 200
comboBox.height = 25
comboBox.skin = new AuroraComboBoxSkin()
comboBox.x = comboBox.y = 50;
comboBox.dataProvider = ["one","two","three","four","five","six"]
addChild(comboBox);
}
}
}