{"id":132,"date":"2019-01-16T20:52:59","date_gmt":"2019-01-16T12:52:59","guid":{"rendered":"https:\/\/0x.mk\/?p=132"},"modified":"2019-01-16T20:53:00","modified_gmt":"2019-01-16T12:53:00","slug":"%e5%88%9b%e5%bb%baplaygroundoss%e5%8f%af%e6%92%ad%e6%94%be%e7%9a%84flash","status":"publish","type":"post","link":"https:\/\/0x.mk\/?p=132","title":{"rendered":"\u521b\u5efaPlaygroundOSS\u53ef\u64ad\u653e\u7684flash"},"content":{"rendered":"\n<p>\u6700\u8fd1\u5728\u7814\u7a76PlaygroundOSS\u7684\u4e00\u4e9b\u9ad8\u7ea7\u64cd\u4f5c\uff0c\u6b63\u597d\u7814\u7a76\u5230\u521b\u5efaflash\uff0c\u907f\u514d\u66f4\u591a\u7684\u4eba\u8df3\u5751\uff0c\u5495\u4e86\u7bc7\u6587\u7ae0<\/p>\n\n\n\n<p>\u9996\u5148\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2aflash\u9879\u76ee\uff0c\u7c7b\u578b\u5fc5\u987b\u9009\u62e9Action Script 2.0\u62161.0\uff0c\u56e0\u4e3a3.0\u4e0d\u652f\u6301\u4f7f\u7528\u6807\u8bc6\u7b26\u6807\u8bb0\u5404\u4e2a\u5143\u4ef6\uff0c\u5fc5\u987b\u4f7f\u7528\u7c7b\u540d\uff0c\u4f46\u662f\u7c7b\u540d\u4e0d\u80fd\u4f7f\u7528\u5927\u591a\u6570\u7b26\u53f7\uff0c\u5305\u62ec&#8221;\/&#8221;\u548c&#8221;.&#8221;\uff0c\u4f1a\u7ed9\u540e\u671f\u5de5\u4f5c\u9020\u6210\u5f88\u5927\u7684\u9ebb\u70e6\u3002\u6587\u4ef6\u540d\u79f0\u9700\u8981\u4e3a<code>xxx.flash.fla<\/code>\uff0c\u786e\u4fddToboggan\u53ef\u4ee5\u6b63\u786e\u8bc6\u522b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"328\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116202250.png\" alt=\"\" class=\"wp-image-133\"\/><figcaption>\u521b\u5efa\u9879\u76ee<\/figcaption><\/figure>\n\n\n\n<p>\u521b\u5efa\u597d\u9879\u76ee\u4ee5\u540e\uff0c\u628a\u60f3\u505a\u52a8\u753b\u7684\u56fe\u7247\u62d6\u8fdb\u5e93\uff0c\u7136\u540e\u9700\u8981\u5bf9\u6bcf\u4e2a\u56fe\u7247\u5efa\u7acb\u4e00\u4e2a\u5143\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1702\" height=\"1049\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116202601.png\" alt=\"\" class=\"wp-image-134\"\/><figcaption>\u521b\u5efa\u5143\u4ef6<\/figcaption><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5c31\u662f\u975e\u5e38\u91cd\u8981\u7684\u90e8\u5206\uff0c\u5bf9\u5143\u4ef6\u7684\u914d\u7f6e\u3002<\/p>\n\n\n\n<p>\u5143\u4ef6\u540d\u79f0\u53ef\u4ee5\u968f\u4fbf\u6765\uff0c\u7136\u540e\u9700\u8981\u52fe\u9009\u201c\u4e3aActionScript\u5bfc\u51fa\u201d\uff0c\u6807\u8bc6\u7b26\u91cc\u9762\u9700\u8981\u586b\u5199\u8be5\u56fe\u7247\u6240\u5728\u8def\u5f84\uff0c\u7ed3\u5c3e\u9700\u8981\u4e3a<code>.png.imag<\/code>\uff0c\u8fd9\u4e2a\u5982\u679c\u4f7f\u7528\u8fc7PlaygroundOSS\u5f00\u53d1\u7684\u5e94\u8be5\u90fd\u8ba4\u8bc6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"669\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116202734.png\" alt=\"\" class=\"wp-image-135\"\/><figcaption>\u5143\u4ef6\u5c5e\u6027<\/figcaption><\/figure>\n\n\n\n<p>\u521b\u5efa\u597d\u5143\u4ef6\u4ee5\u540e\uff0c\u628a\u5355\u5f20\u56fe\u7247\u62d6\u8fdb\u53bb\uff0c<strong>\u4e0d\u8981\u7f29\u653e<\/strong>\uff0c\u4fdd\u5b58\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u56de\u5230\u573a\u666f\u505a\u52a8\u753b\u4e86\u3002\u8981\u6ce8\u610fPlaygroundOSS\u662f\u51e0\u4e4e\u4e0d\u652f\u6301\u4efb\u4f55\u811a\u672c\u7684\uff0c\u5982\u679c\u9700\u8981\u5faa\u73af\u64ad\u653e\uff0c\u9700\u8981\u628a\u7b2c\u4e00\u5e27\u91cd\u547d\u540d\uff0c\u6bd4\u5982start\uff0c\u540e\u9762\u7684\u6587\u7ae0\u4f1a\u6559\u4f60\u600e\u4e48\u8df3\u8f6c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1702\" height=\"1049\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116203259.png\" alt=\"\" class=\"wp-image-136\"\/><\/figure>\n\n\n\n<p>flash\u505a\u597d\u4ee5\u540e\uff0c\u9700\u8981\u62ffToboggan\u53d1\u884c\u3002\u4f7f\u7528Toboggan\u521b\u5efa\u4e00\u4e2aProject\uff0c\u9996\u5148\u5728Tools-Setup-Plugins\u91cc\u9762\u914d\u7f6e\u4e00\u4e0bflash\u53ef\u6267\u884c\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u628a\u56fe\u7247\u548cfla\u6587\u4ef6\u585e\u8fdb\u53bb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"429\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116204049.png\" alt=\"\" class=\"wp-image-139\"\/><figcaption>Flash\u6587\u4ef6\u4f4d\u7f6e\u914d\u7f6e<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"290\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116203558.png\" alt=\"\" class=\"wp-image-137\"\/><figcaption>\u5bfc\u5165Toboggan<\/figcaption><\/figure>\n\n\n\n<p>\u7136\u540e\u4f7f\u7528 File-New Resource-texture files \u521b\u5efa\u4e00\u4e2atexb\uff0c\u628a\u4f60\u7528\u5230\u7684\u56fe\u6253\u8fdb\u53bb\uff0c\u5f53\u7136\u8fd9\u6b65\u53ef\u4ee5\u628a\u4ed6\u6253\u8fdb\u591a\u4e2atexb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1268\" height=\"659\" src=\"https:\/\/0x.mk\/wp-content\/uploads\/2019\/01\/TIM\u622a\u56fe20190116203836.png\" alt=\"\" class=\"wp-image-138\"\/><figcaption>\u521b\u5efatexb<\/figcaption><\/figure>\n\n\n\n<p>\u4fdd\u5b58\u4ee5\u540e\uff0c\u4f7f\u7528Ctrl+Shift+P\u4fdd\u5b58\uff0c\u7136\u540e\u5c31\u80fd\u5728<code>.publish<\/code>\u6587\u4ef6\u5939\u83b7\u5f97\u6253\u5305\u597d\u7684texb\u3001png.imag\u548cflsh\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u628a\u6253\u5305\u597d\u7684\u8d44\u6e90\u590d\u5236\u5230install\u6587\u4ef6\u5939\uff0c\u4fee\u6539<code>start.lua<\/code>\u4e3a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function setup()\n\tlocal x = 0\n\tlocal y = 0\n\t\n\t--\u521b\u5efaSWF\u64ad\u653e\u5668\uff0c\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u662f\u6267\u884c\u5230\u6700\u540e\u4e00\u5e27\u7684\u65f6\u5019\u7684callback\n\tpSWF = UI_SWFPlayer(nil, 7000, x, y, \"asset:\/\/flash\/mv_saya.flsh\", nil, \"flash_callback\")\nend\n\nfunction execute(deltaT)\n\nend\n\nfunction leave()\n\nend\n\nfunction flash_callback(pSWF, label)\n\tsyslog(string.format(\"[SWF]reach: &lt;%s>\", label))\n\t--\u8df3\u5230\u547d\u540d\u4e3astart\u7684\u5e27\n\tsysCommand(pSWF, UI_SWF_GOTOFRAME, \"start\")\nend<\/code><\/pre>\n\n\n\n<p>\u5f53\u7136\uff0c\u5982\u679c\u8981\u5728\u5e27\u91cc\u9762<del>\u8e66\u6765\u8e66\u53bb<\/del>\u53ef\u4ee5\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sysCommand(pSWF, UI_SWF_REACHFRAME, \"end\", \"flash_callback\")<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u7814\u7a76PlaygroundOSS\u7684\u4e00\u4e9b\u9ad8\u7ea7\u64cd\u4f5c\uff0c\u6b63\u597d\u7814\u7a76\u5230\u521b\u5efaflash\uff0c\u907f\u514d\u66f4\u591a\u7684\u4eba\u8df3\u5751\uff0c\u5495\u4e86 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-lua","category-sif"],"_links":{"self":[{"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0x.mk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":1,"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/0x.mk\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/0x.mk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0x.mk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0x.mk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}