Draw a few ellipses
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/255f822d Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/255f822d Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/255f822d Branch: refs/heads/develop Commit: 255f822dbce723a93c224c3e3fa38e842c971800 Parents: e213ce7 Author: Om <[email protected]> Authored: Fri Sep 5 17:19:21 2014 -0700 Committer: Om <[email protected]> Committed: Fri Sep 5 17:19:21 2014 -0700 ---------------------------------------------------------------------- examples/FlexJSTest_SVG/src/GraphicsView.mxml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/255f822d/examples/FlexJSTest_SVG/src/GraphicsView.mxml ---------------------------------------------------------------------- diff --git a/examples/FlexJSTest_SVG/src/GraphicsView.mxml b/examples/FlexJSTest_SVG/src/GraphicsView.mxml index 23f5e68..7a68173 100644 --- a/examples/FlexJSTest_SVG/src/GraphicsView.mxml +++ b/examples/FlexJSTest_SVG/src/GraphicsView.mxml @@ -24,6 +24,7 @@ limitations under the License. > <fx:Script> <![CDATA[ + import org.apache.flex.core.graphics.Ellipse; import org.apache.flex.core.graphics.Rect; import org.apache.flex.core.graphics.SolidColor; import org.apache.flex.core.graphics.SolidColorStroke; @@ -82,7 +83,32 @@ limitations under the License. rect5.drawRect(0,750,50,200); this.addElement(rect5); + var ellipse1:Ellipse = new Ellipse(); + fill.color = 0x290149; + ellipse1.fill = fill; + stroke.color = 0x830011; + stroke.weight = 3; + ellipse1.stroke = stroke; + ellipse1.drawEllipse(300,300,50,200); + this.addElement(ellipse1); + var ellipse2:Ellipse = new Ellipse(); + fill.color = 0x2222CC; + ellipse2.fill = fill; + stroke.color = 0xabcdef; + stroke.weight = 5; + ellipse2.stroke = stroke; + ellipse2.drawEllipse(100,100,500,200); + this.addElement(ellipse2); + + var ellipse3:Ellipse = new Ellipse(); + fill.color = 0xfedcba; + ellipse3.fill = fill; + stroke.color = 0x123456; + stroke.weight = 2; + ellipse3.stroke = stroke; + ellipse3.drawEllipse(250,150,300,250); + this.addElement(ellipse3); } ]]>
