{"id":433,"date":"2007-12-14T02:49:16","date_gmt":"2007-12-13T17:49:16","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/?p=433"},"modified":"2022-09-29T17:55:33","modified_gmt":"2022-09-29T08:55:33","slug":"mac%e3%81%a7flex2%e7%92%b0%e5%a2%83%e4%bd%9c%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/mac%e3%81%a7flex2%e7%92%b0%e5%a2%83%e4%bd%9c%e3%81%a3%e3%81%9f\/","title":{"rendered":"Mac\u3067flex2\u74b0\u5883\u4f5c\u3063\u305f"},"content":{"rendered":"<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u307e\u305a\u3001flex2SDK \u306e\u30b5\u30a4\u30c8\u3078\u884c\u304d\u3001Flex SDK, Flex Language Pack \u3092\u843d\u3068\u3059\u3002<\/p>\n<p>Flex SDK \u306e\u4e2d\u306b\u3001 Flex Language Pack \u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u306b\u914d\u7f6e\u3059\u308b\u3002Mac\u306eFinder\u3067\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u66f8\u304d\u3059\u308b\u3068\u3001\u524d\u306b\u3042\u3063\u305f\u4e2d\u8eab\u6d88\u3057\u3061\u3083\u3046\u3093\u3060\u306d\u30fc\u3002<\/p>\n<p>\u3042\u3068\u306f Fles SDK \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306ebin\u306b\u30d1\u30b9\u3092\u901a\u305b\u3070\u3044\u3044\u307f\u305f\u3044\u3002<\/p>\n<p>flex\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u3084\u305f\u3089\u6642\u9593\u304c\u304b\u304b\u308b\u305d\u3046\u306a\u306e\u3067\u3001Flex Compiler Shell \u3092\u5c0e\u5165\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u89e3\u51cd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092Flex SDK \u306e\u8a72\u5f53\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4e00\u7dd2\u306b\u5165\u308c\u3066\u7f6e\u3051\u3070\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3002<\/p>\n<p>\u3042\u3068\u3001<a href=\"http:\/\/d.hatena.ne.jp\/secondlife\/20070211\/1171173690\">ActionScript3 (mxmlc) \u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3092100\u500d\u901f\u306b\u3059\u308b\u65b9\u6cd5<\/a> \u306b\u66f8\u3044\u3066\u3042\u3063\u305f rlwrap \u3068\u3044\u3046\u306e\u3082\u5165\u308c\u305f\u3002\u4e0a\u4e0b\u30ad\u30fc\u3067\u5c65\u6b74\u8fbf\u308c\u305f\u308a\u3059\u308b\u307f\u305f\u3044\u3002<\/p>\n<p>rlwrap \u306f port \u3067\u5165\u308b\u3002<\/p>\n<pre><code class=\"language-bash \">$ sudo port install rlwrap\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u74b0\u5883\u69cb\u7bc9\u306f\u7d42\u308f\u308a\u3002<\/p>\n<p>fsch \u306f\u3053\u3093\u306a\u611f\u3058\u306b\u4f7f\u3046\u307f\u305f\u3044\u3002<\/p>\n<pre><code class=\"language-sh \">chu@chu-mac:~\/flex$ rlwrap fcsh\nAdobe Flex Compiler SHell (fcsh)\nVersion 2.0.1 build 159086\nCopyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.\n\n(fcsh) mxmlc hello.mxml\nfcsh: Assigned 1 as the compile target id\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb \"\/Developer\/SDKs\/flex\/frameworks\/flex-config.xml\" \u3092\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e##\n\/Users\/chu\/flex\/hello.swf (126938 bytes)\n(fcsh) compile 1\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb \"\/Developer\/SDKs\/flex\/frameworks\/flex-config.xml\" \u3092\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e##\nNothing has changed since the last compile. Skip...\n\/Users\/chu\/flex\/hello.swf (126939 bytes)\n(fcsh) \n<\/code><\/pre>\n<p>rlwrap \u3067 fsch \u3092\u8d77\u52d5\u3057\u3066\u3001\u305d\u306e\u30b7\u30a7\u30eb\u5185\u3067 mxmlc \u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304f\u3002\u3059\u308b\u3068<strong>fcsh: Assigned 1 as the compile target id<\/strong> \u3068\u51fa\u308b\u306e\u3067\u3001\u6b21\u56de\u304b\u3089\u306f <strong>compile 1<\/strong> \u3068 id \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30e1\u30e2\u30ea\u4e0a\u306b\u5c55\u958b\u3055\u308c\u305f\u30bd\u30fc\u30b9\u3092\u77ac\u6642\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u304f\u308c\u308b\u307f\u305f\u3044\u3002\u4e0a\u306e\u5b9f\u884c\u4f8b\u3060\u3068\u3001\u5dee\u5206\u304c\u306a\u304b\u3044\u306e\u3067\u4f55\u3082\u3057\u306a\u304b\u3063\u305f\u69d8\u5b50\u3002<\/p>\n<h3>fcwrap<\/h3>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306e\u7d50\u69cb\u3081\u3093\u3069\u304f\u3055\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001fcwrap \u3068\u3044\u3046\u306e\u304c\u3042\u3063\u305f\u3002webrick \u3067\u30b5\u30fc\u30d0\u304c\u5e38\u6642\u7acb\u3061\u4e0a\u304c\u3063\u3066\u3066\u3001\u30bd\u30fc\u30b9\u306e\u66f4\u65b0\u3054\u3068\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308c\u308b\u3068\u3066\u3082\u826f\u3044\u3082\u306e\u3002<\/p>\n<p><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\" class=\"broken_link\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\"><a href=\"http:\/\/saqoosha.net\/2007\/03\/25\/534\/\">http:\/\/saqoosha.net\/2007\/03\/25\/534\/<\/a><\/a><\/a><\/a><\/a><\/a><\/a><\/a><\/p>\n<p>Rails\u74b0\u5883\u304c\u305d\u308d\u3063\u3066\u308c\u3070\u30013\u3042\u305f\u308a\u304b\u3089\u3067\u5927\u4e08\u592b\u306a\u611f\u3058\u3002<\/p>\n<pre><code class=\"language-sh \">3. gems\u3044\u308d\u3044\u308d\n$ sudo gem install rails hoe mongrel rack --include-dependencies\n\n4. fcwrap\n$ svn co svn:\/\/rubyforge.org\/var\/svn\/hotchpotch\/fcwrap fcwrap\n$ cd fcwrap\n$ sudo rake install_gem\n<\/code><\/pre>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<pre><code class=\"language-bash \">$ fcwrap -s hello_world.mxml\n<\/code><\/pre>\n<p>\u3068\u3057\u3066\u3001<a href=\"http:\/\/0.0.0.0:3001\/\"><a href=\"http:\/\/0.0.0.0:3001\/\"><a href=\"http:\/\/0.0.0.0:3001\/\">http:\/\/0.0.0.0:3001\/<\/a><\/a><\/a> \u3092\u958b\u3044\u3066\u304a\u304d\u307e\u3059\u3002 hello_world.mxml \u306b\u66f4\u65b0\u304c\u3042\u308b\u305f\u3073\u306b\u30d6\u30e9\u30a6\u30b6\u5074\u3067\u52dd\u624b\u306b\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<h3>rascut<\/h3>\n<p>fcwrap\u306e\u5f8c\u7d99\u3067\u9ad8\u6a5f\u80fd\u7248\u306e rascut \u3068\u3044\u3046\u306e\u304c\u51fa\u3066\u3044\u305f\u307f\u305f\u3044\u3002<\/p>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre><code class=\"language-bash \">$ sudo gem install rascut --include-dependencies\n<\/code><\/pre>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<pre><code class=\"language-bash \">$ fcwrap hello_world.mxml -s\n<\/code><\/pre>\n<p>\u3068\u3059\u308b\u3068\u30b5\u30fc\u30d0\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u3066\u3001<a href=\"http:\/\/0.0.0.0:3001\/\"><a href=\"http:\/\/0.0.0.0:3001\/\"><a href=\"http:\/\/0.0.0.0:3001\/\">http:\/\/0.0.0.0:3001\/<\/a><\/a><\/a> \u3092\u958b\u3044\u3066\u304a\u304d\u307e\u3059\u3002 hello_world.mxml \u306b\u66f4\u65b0\u304c\u3042\u308b\u305f\u3073\u306b\u30d6\u30e9\u30a6\u30b6\u5074\u3067\u52dd\u624b\u306b\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ea\u30f3\u30c8\u30c7\u30d0\u30c3\u30b0<\/h3>\n<p><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\"><a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801\">http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070219\/1171872801<\/a><\/a><\/a><\/a><\/a><\/a><\/a><\/a><\/a><\/p>\n<p>\u304b\u3089 log.as \u3092\u9802\u3044\u3066\u304f\u308b\u3002flex-config.xml  \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u307f\u305f\u3044\u306a\u3093\u3060\u3051\u3069\u3001\u305d\u306e mxml \u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u3044\u305f\u3089 import \u305b\u305a\u306b\u305d\u306e\u307e\u307e\u4f7f\u3048\u305f\u3002<\/p>\n<pre><code class=\"language-json \">&lt;source-path&gt;\n  &lt;path-element&gt;\/path\/to\/&lt;\/path-element&gt;\n&lt;\/source-path&gt;\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u305f\u3089\u3001fcwrap \u7acb\u3061\u4e0a\u3052\u3066 firefox \u306e firebug \u306e console \u3067\u30d7\u30ea\u30f3\u30c8\u30c7\u30d0\u30c3\u30b0\u51fa\u6765\u307e\u3057\u305f\u3002AS3 \u306e\u6587\u6cd5\u308f\u304b\u3089\u306a\u3059\u304e\u3066\u3001\u306a\u3093\u3067 log.as \u304c\u547c\u3070\u308c\u308b\u306e\u304b\u5206\u304b\u3063\u3066\u306a\u3044\u3051\u3069\u3001\u74b0\u5883\u305d\u308d\u3063\u305f\u306e\u3067\u59cb\u3081\u3088\u3046\u3002<\/p>\n<pre><code class=\"language-as \">   private function sayHello():void{\n     log('hello !');\n   }\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u307e\u305a\u3001flex2SDK \u306e\u30b5\u30a4\u30c8\u3078\u884c\u304d\u3001Flex SDK, Flex Language Pack \u3092\u843d\u3068\u3059\u3002 Flex SDK \u306e\u4e2d\u306b\u3001 Flex Language Pack \u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[9,12],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-development","tag-actionscript","tag-mac"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":12,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":4388,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/433\/revisions\/4388"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}