SVGの使用テスト
http://www.adobe.com/jp/devnet/flash/articles/spark_project_svg.html のまんま
♥0 |
Line 16 |
Modified 2013-07-31 07:35:06 |
MIT License
archived:2017-03-20 05:17:42
ActionScript3 source code
/**
* Copyright MORISHIGE ( http://wonderfl.net/user/MORISHIGE )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/sjtc
*/
package {
import flash.display.Sprite;
import frocessing.shape.FShapeSVG;
public class SvgTest extends Sprite {
public function SvgTest() {
var svg:XML =
<svg>
<circle cx="150" cy="75" r="45" fill="#7FBCFF" stroke="#202052" stroke-width="8" />
<circle cx="150" cy="75" r="30" fill="#FFFFFF" />
<circle cx="150" cy="75" r="15" fill="#FF4900" />
</svg>;
var fShapeSVG:FShapeSVG = new FShapeSVG(svg);
addChild(fShapeSVG.toSprite());
}
}
}