{"id":193,"date":"2009-02-17T00:00:42","date_gmt":"2009-02-17T07:00:42","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=801"},"modified":"2009-02-17T00:00:42","modified_gmt":"2009-02-17T07:00:42","slug":"lineto-w-drawcircle","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=193","title":{"rendered":"lineTo() w\/ drawCircle()"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar dial:Sprite = Sprite(addChild(new Sprite()));\r\nwith(dial.graphics) lineStyle(1, 0x000000), beginFill(0xCCCCCC), drawCircle(0,0,100), lineTo(0,0);\r\ndial.x = stage.stageWidth \/ 2;\r\ndial.y = stage.stageHeight \/ 2;\r\n<\/pre>\n<p>This snippet shows how you can combine drawCircle() and lineTo() to quickly draw a clock\/dial primitive shape. I&#8217;ll use this in tomorrows snippet&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>var dial:Sprite = Sprite(addChild(new Sprite())); with(dial.graphics) lineStyle(1, 0x000000), beginFill(0xCCCCCC), drawCircle(0,0,100), lineTo(0,0); dial.x = stage.stageWidth \/ 2; dial.y = stage.stageHeight \/ 2; This snippet shows how you can combine drawCircle() and lineTo() to quickly draw a clock\/dial primitive shape. I&#8217;ll use this in tomorrows snippet&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[3,4],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-graphics","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}