| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:custom="Assets.*" |
| width="800" height="600" |
| > |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| import Assets.*; |
| import mx.graphics.*; |
| import spark.primitives.*; |
| |
| public function addRectsToGroup(g:Group, numItems:int = 1):void{ |
| var r:Rect; |
| var i:int; |
| |
| for(i = 0; i < numItems; ++i){ |
| r = new TestRect1(); |
| r.width = r.height = 10; |
| g.addElement(r); |
| } |
| } |
| |
| |
| ]]> |
| </fx:Script> |
| |
| <fx:Style> |
| global{ |
| kerning: "off"; |
| } |
| </fx:Style> |
| |
| <fx:Declarations> |
| <mx:Zoom id="zoom1" zoomWidthTo="1" zoomWidthFrom="0" zoomHeightTo="1" zoomHeightFrom="0" duration="1000" /> |
| <mx:Rotate id="rotate1" angleTo="45" angleFrom="0" originX="10" originY="10" duration="1000" /> |
| </fx:Declarations> |
| |
| <mx:Canvas id="cv1"> |
| <s:Group id="g1" /> |
| </mx:Canvas> |
| |
| </s:Application> |