My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
56
57
58
59
60
61
62
63
64
65
package
{
import com.danielfreeman.extendedMadness.*;
import com.danielfreeman.madcomponents.*;

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;


public class ExtendedMadnessSplitView extends Sprite
{

protected static const DATA:XML =

<data>
<Red/>
<Orange/>
<Yellow/>
<Green/>
<Blue/>
<Indigo/>
<Violet/>
</data>;


protected static const DETAIL:XML =

<vertical alignV="centre">
<label id="label" alignH="centre" width="200"/>
</vertical>;


protected static const LAYOUT:XML =

<splitView id="splitView" topColour="#666666">
{DATA}
{DETAIL}
</splitView>;


protected var _splitView:UISplitView;

public function ExtendedMadnessSplitView(screen:Sprite = null) {

if (screen)
screen.addChild(this);

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

UIe.createInWindow(this, LAYOUT);

_splitView = UISplitView(UI.findViewById("splitView"));
_splitView.list.addEventListener(UIList.CLICKED, listClicked);
_splitView.navigationBar.text = "Split View";
}


protected function listClicked(event:Event):void {
UIForm(_splitView.pages[0]).data = {label:_splitView.list.row.label};
}
}
}

Change log

r103 by doc.android on Dec 6, 2011   Diff
Extended Madness demos
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1348 bytes, 65 lines
Powered by Google Project Hosting