{"id":11,"date":"2008-06-09T02:07:29","date_gmt":"2008-06-08T17:07:29","guid":{"rendered":"http:\/\/www.hi-farm.net\/wp\/?p=11"},"modified":"2008-06-09T02:07:29","modified_gmt":"2008-06-08T17:07:29","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88","status":"publish","type":"post","link":"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/","title":{"rendered":"\u30ab\u30b9\u30bf\u30e0\u30af\u30e9\u30b9\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u30ab\u30b9\u30bf\u30e0\u30af\u30e9\u30b9\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" data-text=\"\u30ab\u30b9\u30bf\u30e0\u30af\u30e9\u30b9\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\" data-via=\"mmlemon\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" colorscheme=\"light\" ><\/fb:send><\/div>\n            <div class=\"wsbl_tumblr\"><a href=\"\/\/www.tumblr.com\/share?v=3&u=http%3A%2F%2Fblog.hi-farm.net%2Fen%2F2008%2F06%2F09%2F%25e3%2582%25ab%25e3%2582%25b9%25e3%2582%25bf%25e3%2583%25a0%25e3%2582%25af%25e3%2583%25a9%25e3%2582%25b9%25e3%2581%25ae%25e3%2582%25ab%25e3%2582%25b9%25e3%2582%25bf%25e3%2583%25a0%25e3%2582%25a4%25e3%2583%2599%25e3%2583%25b3%25e3%2583%2588%2F&t=%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%82%AF%E3%83%A9%E3%82%B9%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88\" title=\"Share on Tumblr\" style=\"display:inline-block; text-indent:-9999px; overflow:hidden; width:81px; height:20px; background:url('\/\/platform.tumblr.com\/v1\/share_1.png') top left no-repeat transparent;\">Share on Tumblr<\/a><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"inline\" href=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" width=\"250\"><\/g:plusone><\/div>\n            <div class=\"wsbl_evernote\">[`evernote` not found]<\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%82%AF%E3%83%A9%E3%82%B9%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%0D%0Ahttp%3A%2F%2Fblog.hi-farm.net%2Fen%2F2008%2F06%2F09%2F%25e3%2582%25ab%25e3%2582%25b9%25e3%2582%25bf%25e3%2583%25a0%25e3%2582%25af%25e3%2583%25a9%25e3%2582%25b9%25e3%2581%25ae%25e3%2582%25ab%25e3%2582%25b9%25e3%2582%25bf%25e3%2583%25a0%25e3%2582%25a4%25e3%2583%2599%25e3%2583%25b3%25e3%2583%2588%2F' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='http:\/\/blog.hi-farm.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line88x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='88' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_pocket\"><a href=\"https:\/\/getpocket.com\/save\" class=\"pocket-btn\" data-lang=\"en\" data-save-url=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\" data-pocket-count=\"none\" data-pocket-align=\"left\" >Pocket<\/a><script type=\"text\/javascript\">!function(d,i){if(!d.getElementById(i)){var j=d.createElement(\"script\");j.id=i;j.src=\"https:\/\/widgets.getpocket.com\/v1\/j\/btn.js?v=1\";var w=d.getElementById(i);d.body.appendChild(j);}}(document,\"pocket-btn-js\");<\/script><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<div style=\"float: right; margin-left: 10px;\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-count=\"vertical\" data-url=\"http:\/\/blog.hi-farm.net\/en\/2008\/06\/09\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88\/\">Tweet<\/a><\/div>\n<p>AIR\u3092\u4f7f\u3046\u3068\u30ed\u30fc\u30ab\u30eb\u3067SQLite\u3092\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001<br \/>\nPHP\u306ePear\u306b\u8fd1\u3044\u611f\u3058\u3067\u81ea\u4f5c\u30af\u30e9\u30b9\u3092\u4f5c\u308d\u3046\u3068\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001DB\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u304c\u78ba\u304b\u306b\u81ea\u5206\u306e\u7d44\u3093\u3060\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u3068\u3044\u3046\u4e8b\u3092\u77e5\u3089\u305b\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3002<\/p>\n<p>\u5358\u306bDB\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3001\u3068\u3044\u3046\u3060\u3051\u306a\u3089SQLEvent\u3092\u4f7f\u3048\u3070\u826f\u3044\u306e\u3060\u304c\u3001\u4eca\u56de\u306f\u305d\u306e\u5f8c\u306b\u51e6\u7406\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u305d\u308c\u3092\u77e5\u3089\u305b\u308b\u30a4\u30d9\u30f3\u30c8\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3092\u81ea\u4f5c\u30af\u30e9\u30b9\u306b\u5b9f\u88c5\u3055\u305b\u305f\u3002<\/p>\n<p>\u305d\u306e\u65b9\u6cd5\u3002<\/p>\n<p>\u307e\u305a\u3001\u30a4\u30d9\u30f3\u30c8\u7cfb\u306e\u30af\u30e9\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3002\uff08\u4e0b\u3067\u7d99\u627f\u3057\u3066\u3044\u308b\u304b\u3089\u3044\u3089\u306a\u3044\u304b\u3082\uff09<br \/>\nimport flash.events.Event;<br \/>\nimport flash.events.EventDispatcher;<br \/>\nimport flash.events.IEventDispatcher;\t\/\/\u3044\u3089\u306a\u3044\u304b\u3082\u77e5\u308c\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u306bEvent\u3092\u7d99\u627f\u3002<br \/>\npublic class DB extends Event<\/p>\n<p>\u6b21\u306b\u3001EventDispatcher\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3002<br \/>\nvar event_dispatcher:EventDispatcher = new EventDispatcher();<\/p>\n<p>\u3055\u3089\u306b\u3001\u3053\u306e\u30af\u30e9\u30b9\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u88c5\u3055\u305b\u308b\u306e\u3067\u3001<br \/>\nEvent\u7cfb\u306b\u3042\u308b\u3001addEventListener, dispatchEvent, hasEventListener, removeEventListener, willTrigger\u3092\u5b9f\u88c5\u3002<\/p>\n<p>\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3059\u3002<br \/>\nsuper(&#8220;customEvent&#8221;);<\/p>\n<p>\/\/super()\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066<br \/>\n<a href=\"http:\/\/livedocs.adobe.com\/flash\/9.0_jp\/ActionScriptLangRefV3\/statements.html\" target=\"_blank\">http:\/\/livedocs.adobe.com\/flash\/9.0_jp\/ActionScriptLangRefV3\/statements.html<\/a><\/p>\n<p>Event\u30af\u30e9\u30b9\u306e\u5404\u30e1\u30bd\u30c3\u30c9\u3092\u7f6e\u304d\u63db\u3048\uff08\u4e0a\u66f8\u304d\uff09\u3059\u308b\u306e\u3067\u3001<br \/>\noverride\u3092\u3064\u3051\u307e\u3059\u3002<br \/>\npublic override function clone():Event{<br \/>\nreturn new DB();<br \/>\n}<br \/>\npublic function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void{<br \/>\nevent_dispatcher:EventDispatcher.addEventListener(type , listener, useCapture, priority, useWeakReference);<br \/>\n}<br \/>\npublic function dispatchEvent(evt:Event):Boolean{<br \/>\nreturn event_dispatcher:EventDispatcher.dispatchEvent(evt);<br \/>\n}<br \/>\npublic function hasEventListener(type:String):Boolean{<br \/>\nreturn event_dispatcher:EventDispatcher.hasEventListener(type);<br \/>\n}<br \/>\npublic function removeEventListener(type:String, listener:Function,useCapture:Boolean):void{<br \/>\nevent_dispatcher:EventDispatcher.removeEventListener(type, listener, useCapture);<br \/>\n}<br \/>\npublic function willTrigger(type:String):Boolean{<br \/>\nreturn event_dispatcher:EventDispatcher.willTrigger(type);<br \/>\n}<\/p>\n<p>\u3053\u3053\u307e\u3067\u306f\u307e\u308b\u307e\u308b\u30b3\u30d4\u30fc\u3067\u3082\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u3051\u3070\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u914d\u4fe1\u3059\u308b\u3068\u304d\u306f\u3001<\/p>\n<p>event_dispatcher.dispatchEvent( new Event(&#8220;myEvent&#8221;) );<\/p>\n<p>\u3068\u3067\u3082\u3057\u3066\u304a\u3051\u3070\u3001<\/p>\n<p>var db:DB = new DB();<\/p>\n<p>db.addEventListener(&#8220;myEvent&#8221;, myEventHandler);<\/p>\n<p>\u3068\u3057\u3066\u304a\u3051\u3070\u3001<\/p>\n<p>function myEventHandler(e:Event):void{<br \/>\n\/\/\u51e6\u7406<br \/>\n}<\/p>\n<p>\u3068\u3067\u3082\u3057\u3066\u304a\u3051\u3070\u5229\u7528\u53ef\u80fd\u3067\u3059\uff01\uff01\uff01<\/p>\n<p>2007\u5e747\u67088\u65e523:34<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tweet AIR\u3092\u4f7f\u3046\u3068\u30ed\u30fc\u30ab\u30eb\u3067SQLite\u3092\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001 PHP\u306ePear\u306b\u8fd1\u3044\u611f\u3058\u3067\u81ea\u4f5c\u30af\u30e9\u30b9\u3092\u4f5c\u308d\u3046\u3068\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001DB\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u304c\u78ba\u304b\u306b\u81ea\u5206\u306e\u7d44\u3093\u3060\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u3068\u3044\u3046\u4e8b\u3092\u77e5 &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":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}