Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jonasmonnier/Mobilo
base: 4852ec0108
...
head fork: jonasmonnier/Mobilo
compare: b0468e9544
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 24, 2012
Jonas Monnier Add Button.as a20f979
Jonas Monnier add Interval.as debug swf b0468e9
View
BIN  bin/test/IntervalDebug.swf
Binary file not shown
View
31 src/com/jonas/utils/Button.as
@@ -0,0 +1,31 @@
+package com.jonas.utils {
+ import flash.display.Sprite;
+ import flash.text.TextField;
+ import flash.text.TextFieldAutoSize;
+
+ /**
+ * @author Jonas Monnier
+ * @date Apr 18, 2012
+ */
+ public class Button extends Sprite {
+ private var _label:TextField;
+ public var data:Object;
+
+ public function Button(label:String) {
+ buttonMode = true;
+ _label = new TextField();
+ _label.mouseEnabled = false;
+ _label.autoSize = TextFieldAutoSize.LEFT;
+ _label.x = 10;
+ addChild(_label);
+ this.label = label;
+ }
+
+ public function set label(label:String):void {
+ _label.htmlText = label;
+ graphics.beginFill(0xCCCCCC);
+ graphics.drawRect(0, 0, _label.width+20, _label.height);
+ graphics.endFill();
+ }
+ }
+}

No commit comments for this range

Something went wrong with that request. Please try again.