Repository: flex-asjs Updated Branches: refs/heads/develop 1fd43da51 -> d36feac45
Add FXG graphic style graphic shape declarations Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b784b847 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b784b847 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b784b847 Branch: refs/heads/develop Commit: b784b847417ab265f2416c33c93d6acd54e67a2b Parents: 1fd43da Author: OmPrakash Muppirala <[email protected]> Authored: Thu Oct 16 01:33:59 2014 -0700 Committer: OmPrakash Muppirala <[email protected]> Committed: Thu Oct 16 01:33:59 2014 -0700 ---------------------------------------------------------------------- examples/FlexJSTest_SVG/src/GraphicsView.mxml | 69 +++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b784b847/examples/FlexJSTest_SVG/src/GraphicsView.mxml ---------------------------------------------------------------------- diff --git a/examples/FlexJSTest_SVG/src/GraphicsView.mxml b/examples/FlexJSTest_SVG/src/GraphicsView.mxml index 6907b3f..3704b10 100644 --- a/examples/FlexJSTest_SVG/src/GraphicsView.mxml +++ b/examples/FlexJSTest_SVG/src/GraphicsView.mxml @@ -38,7 +38,7 @@ limitations under the License. protected function viewbase1_initCompleteHandler(event:org.apache.flex.events.Event):void { //drawIndividualShapes(); - drawOnGraphicsContainer(); + //drawOnGraphicsContainer(); } private function drawIndividualShapes():void @@ -251,5 +251,72 @@ limitations under the License. ]]> </fx:Script> + <basic:Rect x="0" y="0" width="200" height="200" > + <basic:fill> + <basic:SolidColor color="#FF0000" /> + </basic:fill> + </basic:Rect> + + <basic:Rect x="300" y="0" width="200" height="200"> + <basic:fill> + <basic:LinearGradient > + <basic:entries> + <basic:GradientEntry ratio="0.1" alpha="1" color="#FF0000" /> + <basic:GradientEntry ratio="0.9" alpha="1" color="#0000FF" /> + </basic:entries> + </basic:LinearGradient> + </basic:fill> + </basic:Rect> + + <basic:Circle x="100" y="350" radius="100"> + <basic:fill> + <basic:LinearGradient > + <basic:entries> + <basic:GradientEntry ratio="0.1" alpha="1" color="#FF0000" /> + <basic:GradientEntry ratio="0.9" alpha="1" color="#0000FF" /> + </basic:entries> + </basic:LinearGradient> + </basic:fill> + </basic:Circle> + + <basic:Circle x="400" y="350" radius="100"> + <basic:fill> + <basic:SolidColor color="#0000FF" alpha="0.5" /> + </basic:fill> + </basic:Circle> + + <basic:Ellipse x="0" y="500" width="200" height="100" > + <basic:fill> + <basic:LinearGradient > + <basic:entries> + <basic:GradientEntry ratio="0.1" alpha="1" color="#FF0000" /> + <basic:GradientEntry ratio="0.9" alpha="1" color="#0000FF" /> + </basic:entries> + </basic:LinearGradient> + </basic:fill> + </basic:Ellipse> + + <basic:Ellipse x="300" y="500" width="200" height="100" > + <basic:fill> + <basic:SolidColor color="#0000FF" alpha="0.5" /> + </basic:fill> + </basic:Ellipse> + + <basic:Path x="0" y="0" width="1000" height="1000" data="M 800 800 L 900 800 A 100 100 0 0 0 800 700 Z" > + <basic:fill> + <basic:LinearGradient > + <basic:entries> + <basic:GradientEntry ratio="0.1" alpha="1" color="#FF0000" /> + <basic:GradientEntry ratio="0.9" alpha="1" color="#0000FF" /> + </basic:entries> + </basic:LinearGradient> + </basic:fill> + </basic:Path> + + <basic:Path x="0" y="300" width="200" height="100" data="M 100 350 q 150 -300 300 0" > + <basic:fill> + <basic:SolidColor color="#0000FF" alpha="0.5" /> + </basic:fill> + </basic:Path> </basic:ViewBase>
