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
package
{
import com.danielfreeman.madcomponents.*;
import com.danielfreeman.extendedMadness.*;

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.utils.getQualifiedClassName;


public class ExtendedMadnessScrollXY extends Sprite
{
[Embed(source="images/thailand.png")]
protected static const THAILAND:Class;

protected static const SCROLLXY:XML = <scrollXY tapToScale="3.0" stageColour="#666666" scrollBarColour="#FFFFFF" width="480" height="640" border="false" id="scroller">
<image>
{getQualifiedClassName(THAILAND)}
</image>
</scrollXY>;

public function ExtendedMadnessScrollXY(screen:Sprite = null)
{
if (screen)
screen.addChild(this);

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

UIe.create(this, SCROLLXY);

var scroller:UIScrollXY = UIScrollXY(UI.findViewById("scroller"));
scroller.scale = 1.2;
}
}
}

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: 984 bytes, 37 lines
Powered by Google Project Hosting