
{"id":1448,"date":"2010-07-14T09:00:35","date_gmt":"2010-07-14T08:00:35","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=1448"},"modified":"2010-07-08T12:06:48","modified_gmt":"2010-07-08T11:06:48","slug":"create-swc-library-from-fdt","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2010\/07\/14\/create-swc-library-from-fdt\/","title":{"rendered":"Create SWC library from FDT"},"content":{"rendered":"<p>I use <a href=\"http:\/\/www.greensock.com\/\">Greensock<\/a> Tweening Platform a lot, it awesome. Download it (<a href=\"http:\/\/www.greensock.com\/tweenmax\/\">here<\/a> for example) and you have everything you need.<\/p>\n<p>Now I start working with SWC files and they are so compact: I love it.<br \/>\nBut how do you get a library in a SWC? <a href=\"http:\/\/www.google.com\/search?q=create+a+swc+with+fdt\" target=\"_blank\">Google<\/a> has an answer but it&#8217;s very complex.<\/p>\n<p>The best answer is from <a href=\"http:\/\/twitter.com\/BrunoFonzi\/\">Bruno Fonzi<\/a> on <\/p>\n<p><a href='http:\/\/twitter.com\/BrunoFonzi\/statuses\/17885849155'>Twitter \/ Bruno Fonzi: How to create SWC librarie &#8230;<\/a>.<\/p>\n<p>How to create SWC libraries from FDT:<br \/>\nRight click Project > Run as > FDT Library<br \/>\nor<br \/>\nMenu > Run Configurations > Create new FDT Library<\/p>\n<p>So start with a <strong>New Flash Project<\/strong> (the name you will use for this project will be the name of the SWC: in my case &#8220;Greensock_Tweening_Platform&#8221;) and copy the <strong>com<\/strong> folder from the Greensock ZIP into the src (of source) folder.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/greensock_folder.png\" alt=\"\" title=\"Greensock folder\" width=\"291\" height=\"69\" class=\"alignnone size-full wp-image-1454\" \/><br \/>\nIf you follow the instructions and create a SWC you will get an error about: UIComponent and Vector (depends on your Project properties).<\/p>\n<p>So to fix this: follow the 2 red x&#8217;s<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/greensock_folder_with_com.png\" alt=\"\" title=\"Greensock folder with red x\" width=\"299\" height=\"377\" class=\"alignnone size-full wp-image-1453\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/greensock_folder_with_com.png 299w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/greensock_folder_with_com-237x300.png 237w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><\/p>\n<p>com > greensock > loading > display > FlexContentDisplay<br \/>\nI don&#8217;t use this one, so delete.<\/p>\n<p>The next depends on the project properties (I used SDK: Flex 3.3 and Player Version 9 and there are no Vectors in Player version 9)<br \/>\ncom > greensock > plugins > EndVectorPlugin<br \/>\nI can&#8217;t use this one, so delete this on too.<\/p>\n<p>Create the SWC again and your done: you have one file with the Greensock Tweening Platform in it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Greensock Tweening Platform a lot, it awesome. Download it (here for example) and you have everything you need. Now I start working with SWC files and they are so compact: I love it. But how do you get a library in a SWC? Google has an answer but it&#8217;s very complex. The best [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,330,3],"tags":[411,398,336],"class_list":["post-1448","post","type-post","status-publish","format-standard","hentry","category-as3","category-fdt","category-flash","tag-fdt","tag-flash","tag-swc"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1448","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=1448"}],"version-history":[{"count":5,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1448\/revisions"}],"predecessor-version":[{"id":1452,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1448\/revisions\/1452"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=1448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=1448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}