{"id":1287,"date":"2012-03-11T18:18:44","date_gmt":"2012-03-11T10:18:44","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/2341\/2012\/03\/11\/flash-actionscript-3-%e5%81%b5%e6%b8%ac%e5%9c%96%e5%bd%a2%e6%98%af%e5%90%a6%e7%a2%b0%e6%92%9e%e9%87%8d%e7%96%8a\/"},"modified":"2021-03-18T19:41:42","modified_gmt":"2021-03-18T11:41:42","slug":"flash-actionscript-3-%e5%81%b5%e6%b8%ac%e5%9c%96%e5%bd%a2%e6%98%af%e5%90%a6%e7%a2%b0%e6%92%9e%e9%87%8d%e7%96%8a","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/2341\/2012\/03\/11\/flash-actionscript-3-%e5%81%b5%e6%b8%ac%e5%9c%96%e5%bd%a2%e6%98%af%e5%90%a6%e7%a2%b0%e6%92%9e%e9%87%8d%e7%96%8a\/","title":{"rendered":"[Flash ActionScript 3] \u5075\u6e2c\u5716\u5f62\u662f\u5426\u78b0\u649e\u91cd\u758a"},"content":{"rendered":"<\/p>\n<p>\u7528\u6ed1\u9f20\u53ef\u4ee5\u62d6\u66f3\u9ec3\u8272\u548c\u7da0\u8272\u7684\u5e73\u884c\u56db\u908a\u5f62\uff0c\u62d6\u66f3\u5230\u6b63\u78ba\u7684\u76f8\u5c0d\u61c9\u6846\u6846\u88e1\uff0c\u5c31\u6703\u986f\u793a Ture\uff0c\u5dee\u592a\u591a\u5c31\u986f\u793a False\u3002\u7a0b\u5f0f\u78bc\u5982\u4e0b\uff1a<\/p>\n<p>[@more@]<\/p>\n<div class=\"actionscript3\" style=\"font-family: monospace;color: #006;border: 1px solid #d0d0d0;background-color: #f0f0f0\">\n<ol>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">left_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">addEventListener<\/span><span style=\"color: #000000\">(<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">MOUSE_DOWN<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span> movieleft<span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">left_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">addEventListener<\/span><span style=\"color: #000000\">(<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">MOUSE_UP<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span> Stopleft<span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">right_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">addEventListener<\/span><span style=\"color: #000000\">(<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">MOUSE_DOWN<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span> movieRight<span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">right_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">addEventListener<\/span><span style=\"color: #000000\">(<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">MOUSE_UP<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span> movieStop<span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: bold;vertical-align: top;color: #006060\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">\u00a0<\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #339966;font-weight: bold\">function<\/span> movieRight<span style=\"color: #000000\">(<\/span>e<span style=\"color: #000066;font-weight: bold\">:<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000000\">)<\/span> <span style=\"color: #000000\">{<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">right_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">startDrag<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #0033ff;font-weight: bold\">true<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">}<\/span> <span style=\"color: #009900;font-style: italic\">\/\/&#21491;&#37002;&#25302;&#26355;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #339966;font-weight: bold\">function<\/span> movieleft<span style=\"color: #000000\">(<\/span>e<span style=\"color: #000066;font-weight: bold\">:<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000000\">)<\/span> <span style=\"color: #000000\">{<\/span><\/div>\n<\/li>\n<li style=\"font-weight: bold;vertical-align: top;color: #006060\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">left_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">startDrag<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #0033ff;font-weight: bold\">true<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">}<\/span> <span style=\"color: #009900;font-style: italic\">\/\/&#24038;&#37002;&#25302;&#26355;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #339966;font-weight: bold\">function<\/span> movieStop<span style=\"color: #000000\">(<\/span>event<span style=\"color: #000066;font-weight: bold\">:<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000000\">)<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">{<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">\u00a0 \u00a0 right_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">stopDrag<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: bold;vertical-align: top;color: #006060\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">\u00a0 \u00a0 txt<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">text<\/span> = <a href=\"http:\/\/www.google.com\/search?q=string%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:string.html\"><span style=\"color: #004993\">String<\/span><\/a><span style=\"color: #000000\">(<\/span>right_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">hitTestPoint<\/span><span style=\"color: #000000\">(<\/span>right1<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">x<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span>right1<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">y<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span><span style=\"color: #0033ff;font-weight: bold\">true<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000000\">)<\/span> <span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">}<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #009900;font-style: italic\">\/\/&#28369;&#40736;&#25918;&#38283;&#26178;&#20572;&#27490;&#25302;&#26355;&#65292;&#20006;&#20597;&#28204;&#26159;&#21542;&#30896;&#25758;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #339966;font-weight: bold\">function<\/span> Stopleft<span style=\"color: #000000\">(<\/span>event<span style=\"color: #000066;font-weight: bold\">:<\/span><a href=\"http:\/\/www.google.com\/search?q=mouseevent%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:mouseevent.html\"><span style=\"color: #004993\">MouseEvent<\/span><\/a><span style=\"color: #000000\">)<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">{<\/span><\/div>\n<\/li>\n<li style=\"font-weight: bold;vertical-align: top;color: #006060\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">\u00a0 \u00a0 left_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">stopDrag<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\">\u00a0 \u00a0 left_txt<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">text<\/span> = <a href=\"http:\/\/www.google.com\/search?q=string%20inurl:http:\/\/livedocs.adobe.com\/flex\/201\/langref\/%20inurl:string.html\"><span style=\"color: #004993\">String<\/span><\/a><span style=\"color: #000000\">(<\/span>left_move<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">hitTestPoint<\/span><span style=\"color: #000000\">(<\/span>left1<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">x<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span>left1<span style=\"color: #000066;font-weight: bold\">.<\/span><span style=\"color: #004993\">y<\/span><span style=\"color: #000066;font-weight: bold\">,<\/span><span style=\"color: #0033ff;font-weight: bold\">true<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000000\">)<\/span> <span style=\"color: #000066;font-weight: bold\">;<\/span><\/div>\n<\/li>\n<li style=\"font-weight: normal;vertical-align: top;font: normal normal 130% 'Courier New', Courier, monospace;color: #003030\">\n<div style=\"font: normal normal 1em\/1.2em monospace;margin: 0;padding: 0;background: none;vertical-align: top;color: #000020\"><span style=\"color: #000000\">}<\/span><\/div>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u6ed1\u9f20\u53ef\u4ee5\u62d6\u66f3\u9ec3\u8272\u548c\u7da0\u8272\u7684\u5e73\u884c\u56db\u908a\u5f62\uff0c\u62d6\u66f3\u5230\u6b63\u78ba\u7684\u76f8\u5c0d\u61c9\u6846\u6846\u88e1\uff0c\u5c31\u6703\u986f\u793a Ture\uff0c\u5dee\u592a\u591a\u5c31\u986f\u793a False\u3002&#8230; &raquo; <a class=\"read-more-link\" href=\"https:\/\/2blog.ilc.edu.tw\/2341\/2012\/03\/11\/flash-actionscript-3-%e5%81%b5%e6%b8%ac%e5%9c%96%e5%bd%a2%e6%98%af%e5%90%a6%e7%a2%b0%e6%92%9e%e9%87%8d%e7%96%8a\/\">\u95b1\u8b80\u5168\u6587<\/a><\/p>\n","protected":false},"author":76,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-1287","post","type-post","status-publish","format-standard","hentry","category-c-50711"],"meta_key":{"lt_post_id":["266042"],"_jetpack_related_posts_cache":["a:1:{s:32:\"8f6677c9d6b0f903e98ad32ec61f8deb\";a:2:{s:7:\"expires\";i:1578936701;s:7:\"payload\";a:0:{}}}"],"_pingme":["1"],"_encloseme":["1"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/posts\/1287"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":1757,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/posts\/1287\/revisions\/1757"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/2341\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}