You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2014/09/04 23:49:18 UTC

git commit: [flex-asjs] [refs/heads/develop] - Draw moar stuff!

Repository: flex-asjs
Updated Branches:
  refs/heads/develop c766dd19d -> 61a9eeab1


Draw moar stuff!


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/61a9eeab
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/61a9eeab
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/61a9eeab

Branch: refs/heads/develop
Commit: 61a9eeab1abc7882af20db4c410793e7e506a9da
Parents: c766dd1
Author: Om <bi...@gmail.com>
Authored: Thu Sep 4 14:34:34 2014 -0700
Committer: Om <bi...@gmail.com>
Committed: Thu Sep 4 14:42:26 2014 -0700

----------------------------------------------------------------------
 examples/FlexJSTest_SVG/src/GraphicsView.mxml | 39 +++++++++++++++++++---
 1 file changed, 34 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61a9eeab/examples/FlexJSTest_SVG/src/GraphicsView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_SVG/src/GraphicsView.mxml b/examples/FlexJSTest_SVG/src/GraphicsView.mxml
index 008b5ef..a4569fc 100644
--- a/examples/FlexJSTest_SVG/src/GraphicsView.mxml
+++ b/examples/FlexJSTest_SVG/src/GraphicsView.mxml
@@ -40,12 +40,41 @@ limitations under the License.
 				stroke.color = 0x00FF00;
 				stroke.alpha = 0.9;
 				
-				var rect:Rect = new Rect();
-				rect.fill = fill;
-				rect.stroke = stroke;
-				rect.drawRect(200,200,200,200);
+				var rect1:Rect = new Rect();
+				rect1.fill = fill;
+				rect1.stroke = stroke;
+				rect1.drawRect(200,50,100,100);
+				this.addElement(rect1);
+				
+				var rect2:Rect = new Rect();
+				fill.color = 0xCC9900;
+				rect2.fill = fill;
+				rect2.stroke = stroke;
+				rect2.drawRect(200,200,100,300);
+				this.addElement(rect2);
+				
+				var rect3:Rect = new Rect();
+				fill.color = 0x99CC99;
+				rect3.fill = fill;
+				rect3.stroke = stroke;
+				rect3.drawRect(200,500,200,200);
+				this.addElement(rect3);
+				
+				var rect4:Rect = new Rect();
+				fill.color = 0xAA33EE;
+				rect4.fill = fill;
+				rect4.stroke = stroke;
+				rect4.drawRect(200,700,200,100);
+				this.addElement(rect4);
+				
+				var rect5:Rect = new Rect();
+				fill.color = 0x11CC44;
+				rect5.fill = fill;
+				rect5.stroke = stroke;
+				rect5.drawRect(200,750,50,200);
+				this.addElement(rect5);
+				
 				
-				this.addElement(rect);
 			}
 			
 		]]>