{"id":21,"date":"2008-05-02T13:48:00","date_gmt":"2008-05-02T18:48:00","guid":{"rendered":"http:\/\/thaylin.info\/blog\/?p=21"},"modified":"2008-05-02T13:48:00","modified_gmt":"2008-05-02T18:48:00","slug":"adding-component-usability-from-flex-to-your-actionscript-project","status":"publish","type":"post","link":"https:\/\/www.thaylin.com\/blog\/2008\/05\/02\/adding-component-usability-from-flex-to-your-actionscript-project\/","title":{"rendered":"Adding Component Usability from Flex to Your Actionscript Project"},"content":{"rendered":"<p>Today I was in need of a quick alert box but realized the mx.controls.Alert is not included in the accessible packages when creating an Actionscript project.<\/p>\n<p>Well, after a bit of searching I found it was really quite easy. Though I imagine it bloats your app due to the component libraries added. Here it goes:<\/p>\n<p>1. Right click on your project>properties<\/p>\n<p>2. Select Actionscript> Build Path> Library Path<\/p>\n<p>3. Add an swc, within this box you can either browse to your respective framework folder or type the following <\/p>\n<div>\n<div><code><span class=\"Apple-style-span\"  style=\"color:blue;\">${PROJECT_FRAMEWORKS}\/libs\/framework.swc<\/span><\/code><\/div>\n<p>4. Repeat step 3 but with<\/p>\n<div><code><span class=\"Apple-style-span\"  style=\"color:blue;\"><code>${PROJECT_FRAMEWORKS}\/locale\/{locale}<\/code><\/span><\/code><\/div>\n<p>Now you should be able to access things like mx.controls.Alert<\/p>\n<p>if ${PROJECT_FRAMEWORKS) doesn&#8217;t work you can try ${FRAMEWORKS} and that should work. Otherwise just browse to your framework folder in the sdk folder<\/p>\n<\/div>\n<div>\n<span style=\"font-weight: bold;\">::Edit::<\/span><br \/>\nSo it looks like in theory this would have worked, except that Adobe made their swc files very dependent upon a bunch of other things so unfortunately this just gives errors.<br \/>\nI&#8217;ll be looking into it more and seeing what I can find to fix this.\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today I was in need of a quick alert box but realized the mx.controls.Alert is not included in the accessible packages when creating an Actionscript project. Well, after a bit of searching I found it was really quite easy. Though I imagine it bloats your app due to the component libraries added. Here it goes: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}