
{"id":2140,"date":"2015-04-09T15:12:01","date_gmt":"2015-04-09T14:12:01","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=2140"},"modified":"2015-04-09T15:16:32","modified_gmt":"2015-04-09T14:16:32","slug":"using-svg-for-assets-in-openfl","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/","title":{"rendered":"Using svg for assets in Openfl"},"content":{"rendered":"<p>I wanted to use svg for icons in an <strong>Openfl<\/strong> project.<br \/>\nIt&#8217;s not intuitive to do this, so I wrote it down for future use.<\/p>\n<h2>What are svg files?<\/h2>\n<blockquote><p>Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. <\/p><\/blockquote>\n<p><em>Source:<\/em> <a href=\"http:\/\/en.wikipedia.org\/wiki\/Scalable_Vector_Graphics\" target=\"_blank\">http:\/\/en.wikipedia.org\/wiki\/Scalable_Vector_Graphics<\/a><\/p>\n<p>Good to remember that they scale awesomely without lost of resolution!<\/p>\n<h2>How to add it to your project<\/h2>\n<p>You can find the svg code on <a href=\"https:\/\/github.com\/openfl\/svg\" target=\"_blank\">github<\/a>.<br \/>\nBut you can install it easier with <strong>haxelib<\/strong><\/p>\n<p>Open your terminal and write:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">haxelib install svg<\/pre>\n<p>To add it to an <strong>OpenFL<\/strong> project, add this to your project file:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;haxelib name=&quot;svg&quot; \/&gt;\r\n<\/pre>\n<h2>Code<\/h2>\n<pre class=\"brush: as3; gutter: true; highlight: [13]; title: ; notranslate\" title=\"\">\r\nimport openfl.Assets;\r\nimport openfl.display.Shape;\r\nimport openfl.display.Sprite;\r\nimport format.SVG;\r\n \r\nclass SVGExample extends Sprite\r\n{\r\n\r\n  public function new()\r\n  {\r\n    var svg : SVG = new SVG(Assets.getText(&quot;assets\/openfl.svg&quot;));\r\n    var shape : Shape  = new Shape();\r\n    svg.render(shape.graphics);\r\n    addChild(shape);\r\n  }\r\n}\r\n<\/pre>\n<p>NICE!!!<br \/>\nBut now the cool part: it scales without losing resolution<\/p>\n<p>Check the highlighted line for the changes,<\/p>\n<pre class=\"brush: as3; gutter: true; highlight: [13]; title: ; notranslate\" title=\"\">\r\nimport openfl.Assets;\r\nimport openfl.display.Shape;\r\nimport openfl.display.Sprite;\r\nimport format.SVG;\r\n \r\nclass SVGExample extends Sprite\r\n{\r\n\r\n  public function new()\r\n  {\r\n    var svg : SVG = new SVG(Assets.getText(&quot;assets\/openfl.svg&quot;));\r\n    var shape : Shape  = new Shape();\r\n    svg.render(shape.graphics,0,0,1000,1000);\r\n    addChild(shape);\r\n  }\r\n}\r\n<\/pre>\n<p>for the curious: <a href=\"https:\/\/github.com\/openfl\/svg\/blob\/master\/format\/SVG.hx\" target=\"_blank\">https:\/\/github.com\/openfl\/svg\/blob\/master\/format\/SVG.hx<\/a><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li>I remembered this <a href=\"https:\/\/gist.github.com\/ambethia\/5124913\" title=\"gist\" target=\"_blank\">gist<\/a>, which explains almost everything.<\/li>\n<li>Get icons here, they are free for download as long as you credit <a href=\"http:\/\/www.flaticon.com\/\" target=\"_blank\">freepik<\/a><\/li>\n<li>Featured image from <a href=\"http:\/\/www.webdesignerdepot.com\/\" target=\"_blank\">webdesignerdepot<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to use svg for icons in an Openfl project. It&#8217;s not intuitive to do this, so I wrote it down for future use. What are svg files? Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. Source: http:\/\/en.wikipedia.org\/wiki\/Scalable_Vector_Graphics Good to remember that they [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[360,385],"tags":[412,383,388,163,389,160],"class_list":["post-2140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-haxe","category-openfl","tag-haxe","tag-openfl","tag-scalable-vector-graphics","tag-shape","tag-svg","tag-vector"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I wanted to use svg for icons in an Openfl project. It&#039;s not intuitive to do this, so I wrote it down for future use.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Matthijs Kamstra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"[mck] | a polymath zapper\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using svg for assets in Openfl | [mck]\" \/>\n\t\t<meta property=\"og:description\" content=\"I wanted to use svg for icons in an Openfl project. It&#039;s not intuitive to do this, so I wrote it down for future use.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-04-09T14:12:01+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-04-09T14:16:32+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using svg for assets in Openfl | [mck]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I wanted to use svg for icons in an Openfl project. It&#039;s not intuitive to do this, so I wrote it down for future use.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#article\",\"name\":\"Using svg for assets in Openfl | [mck]\",\"headline\":\"Using svg for assets in Openfl\",\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/wp-content\\\/uploads\\\/featured13@wdd2x.jpg\",\"width\":1684,\"height\":960},\"datePublished\":\"2015-04-09T15:12:01+01:00\",\"dateModified\":\"2015-04-09T15:16:32+01:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#webpage\"},\"articleSection\":\"Haxe, Openfl, Haxe, openfl, Scalable Vector Graphics, shape, SVG, vector\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/haxe\\\/#listItem\",\"name\":\"Haxe\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/haxe\\\/#listItem\",\"position\":2,\"name\":\"Haxe\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/haxe\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#listItem\",\"name\":\"Using svg for assets in Openfl\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#listItem\",\"position\":3,\"name\":\"Using svg for assets in Openfl\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/haxe\\\/#listItem\",\"name\":\"Haxe\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Matthijs Kamstra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"Matthijs Kamstra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#webpage\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/\",\"name\":\"Using svg for assets in Openfl | [mck]\",\"description\":\"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/wp-content\\\/uploads\\\/featured13@wdd2x.jpg\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#mainImage\",\"width\":1684,\"height\":960},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2015\\\/04\\\/09\\\/using-svg-for-assets-in-openfl\\\/#mainImage\"},\"datePublished\":\"2015-04-09T15:12:01+01:00\",\"dateModified\":\"2015-04-09T15:16:32+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using svg for assets in Openfl | [mck]","description":"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use.","canonical_url":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#article","name":"Using svg for assets in Openfl | [mck]","headline":"Using svg for assets in Openfl","author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/featured13@wdd2x.jpg","width":1684,"height":960},"datePublished":"2015-04-09T15:12:01+01:00","dateModified":"2015-04-09T15:16:32+01:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#webpage"},"isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#webpage"},"articleSection":"Haxe, Openfl, Haxe, openfl, Scalable Vector Graphics, shape, SVG, vector"},{"@type":"BreadcrumbList","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.matthijskamstra.nl\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/#listItem","name":"Haxe"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/#listItem","position":2,"name":"Haxe","item":"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#listItem","name":"Using svg for assets in Openfl"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#listItem","position":3,"name":"Using svg for assets in Openfl","previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/#listItem","name":"Haxe"}}]},{"@type":"Organization","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization","name":"[mck]","description":"a polymath zapper","url":"https:\/\/www.matthijskamstra.nl\/blog\/"},{"@type":"Person","@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author","url":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/","name":"Matthijs Kamstra","image":{"@type":"ImageObject","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"Matthijs Kamstra"}},{"@type":"WebPage","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#webpage","url":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/","name":"Using svg for assets in Openfl | [mck]","description":"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#breadcrumblist"},"author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/featured13@wdd2x.jpg","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#mainImage","width":1684,"height":960},"primaryImageOfPage":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/#mainImage"},"datePublished":"2015-04-09T15:12:01+01:00","dateModified":"2015-04-09T15:16:32+01:00"},{"@type":"WebSite","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website","url":"https:\/\/www.matthijskamstra.nl\/blog\/","name":"[mck]","description":"a polymath zapper","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"[mck] | a polymath zapper","og:type":"article","og:title":"Using svg for assets in Openfl | [mck]","og:description":"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use.","og:url":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/","article:published_time":"2015-04-09T14:12:01+00:00","article:modified_time":"2015-04-09T14:16:32+00:00","twitter:card":"summary_large_image","twitter:title":"Using svg for assets in Openfl | [mck]","twitter:description":"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use."},"aioseo_meta_data":{"post_id":"2140","title":null,"description":"I wanted to use svg for icons in an Openfl project. It's not intuitive to do this, so I wrote it down for future use.","keywords":[{"label":"openfl","value":"openfl"},{"label":"haxe","value":"haxe"},{"label":"svg","value":"svg"},{"label":"assets","value":"assets"},{"label":"vector","value":"vector"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-12-11 08:53:24","updated":"2025-06-04 10:49:32","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/\" title=\"Haxe\">Haxe<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUsing svg for assets in Openfl\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.matthijskamstra.nl\/blog"},{"label":"Haxe","link":"https:\/\/www.matthijskamstra.nl\/blog\/category\/haxe\/"},{"label":"Using svg for assets in Openfl","link":"https:\/\/www.matthijskamstra.nl\/blog\/2015\/04\/09\/using-svg-for-assets-in-openfl\/"}],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/2140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=2140"}],"version-history":[{"count":13,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/2140\/revisions"}],"predecessor-version":[{"id":2163,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/2140\/revisions\/2163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media\/2160"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=2140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=2140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=2140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}