{"id":910,"date":"2010-02-23T01:00:00","date_gmt":"2010-02-22T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2010-02-23-1.html"},"modified":"2026-08-10T14:46:09","modified_gmt":"2026-08-10T05:46:09","slug":"2010-02-23-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2010-02-23-1.html","title":{"rendered":"SWFObject &#8211; IE \u3067 Flash \u304b\u3089 fscommand \u304c\u5b9f\u884c\u3067\u304d\u306a\u3044\u5bfe\u7b56"},"content":{"rendered":"<p>\nIE \u3067 Flash \u30e0\u30fc\u30d3\u30fc(foo.swf\u306a\u3069)\u3092 innerHTML\u306a\u3069\u3067\u52d5\u7684\u306b\u57cb\u3081\u8fbc\u3080\u3068, VB\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u53d6\u308c\u306a\u304f\u306a\u308b\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u5bfe\u7b56\u306f\u3001<a href=\"http:\/\/code.google.com\/p\/swfobject\/wiki\/faq\">SWFObject FAQ<\/a>\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3088\u3046\u306b<\/p>\n<blockquote><p>5.\u306a\u305c\u52d5\u7684\u306a\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3092\u884c\u3046\u3068\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067 fscommand \u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u306e\u304b\u3002<br \/>\nAdobe \u306f fscommand \u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u3001<br \/>\nFSCommand \u547c\u3073\u51fa\u3057\u3092\u53d7\u3051\u53d6\u308a JavaScript \u306b\u8ee2\u9001\u3059\u308b\u305f\u3081\u306e VBScript \u3092\u8ffd\u52a0\u3059\u308b\u3088\u3046\u306b\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304c SWFObject \u306e\u52d5\u7684\u306a\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u30e1\u30bd\u30c3\u30c9\u3067\u884c\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3001<br \/>\ninnerHTML\u3084 outerHTML \u306a\u3069\u3092\u4f7f\u3063\u3066 Flash\u30e0\u30fc\u30d3\u30fc\u3092\u633f\u5165\u3059\u308b\u5834\u5408\u306b\u306f VBScript \u306f\u5168\u304f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<br \/>\n&nbsp;<br \/>\n\u904b\u304c\u3044\u3044\u3053\u3068\u306b\u3001VBScript \u306e\u4ee3\u308f\u308a\u306b JavaScript \u3092\u4f7f\u3063\u3066\u3082 fscommand \u306e\u547c\u3073\u51fa\u3057\u3092\u53d7\u3051\u53d6\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3061\u3087\u3063\u3068\u4e0b\u306b\u3042\u308b\u30b3\u30fc\u30c9\u3067\u306f\u30d7\u30ed\u30d7\u30e9\u30a4\u30a8\u30bf\u30ea(\u8a33\u6ce8:\u5c02\u7528\u306e\uff1f)\u5c5e\u6027(\u3092\u3001\u3042\u306a\u305f\u306e\u30b3\u30fc\u30c9\u3092\u304a\u304b\u3057\u304f\u3055\u305b\u306a\u3044\u305f\u3081\u306b\u3001\u3055\u3089\u306b\u6761\u4ef6\u5206\u5c90\u30b3\u30e1\u30f3\u30c8\u3067\u62ec\u3063\u305f\u3082\u306e)\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u4f8b\u3068\u3057\u3066\u3001\u4e0b\u306eVBScript\u306f\u3001<\/p>\n<blockquote><p>&lt;SCRIPT LANGUAGE=VBScript><br \/>\non error resume next<br \/>\nSub myCom_FSCommand(ByVal command, ByVal args)<br \/>\n&nbsp;&nbsp;call myCom_DoFSCommand(command, args)<br \/>\nend sub<br \/>\n&lt;\/SCRIPT>\n<\/p><\/blockquote>\n<p>\u6b21\u306e\u3088\u3046\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\n<\/p>\n<blockquote><p>&lt;!&#8211;[if IE]&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; event=&#8221;FSCommand(command,args)&#8221; for=&#8221;myCom&#8221;><br \/>\n&nbsp;&nbsp;myCom_DoFSCommand(command, args);<br \/>\n&lt;\/script><br \/>\n&lt;![endif]&#8211;>\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u6ce8\u610f:Flash 8 \u4ee5\u4e0a\u3067\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3057\u3066\u3044\u308b\u5834\u5408\u3001JavaScript &#8211; ActionScript\u9593\u306e\u901a\u4fe1\u306b\u306f fscommand() \u3092\u5229\u7528\u3059\u308b\u3088\u308a\u3082 ExternalInterface \u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u30b3\u30fc\u30c9\u306e\u4f8b\u306f SWFObject \u306e\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u3067\u3082\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<\/blockquote>\n<p>\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/blog.dawgsdk.org\/weblog\/archives\/410011\">Flash\u3068JavaScript\u306e\u9023\u643a<\/a><br \/>\n&#8211; SWFObject v2.0 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u65e5\u672c\u8a9e\u8a33<br \/>\n&#8211; <a href=\"http:\/\/code.google.com\/p\/swfobject\/wiki\/faq#5._Why_doesn%27t_fscommand_work_in_Internet_Explorer_with_dyn\">Why doesn&#8217;t fscommand work in Internet Explorer with dynamic publishing ?<\/a>(SWFObject FAQ)<br \/>\n&#8211; ExternalInterface(ActionScript 3.0 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ac\u30a4\u30c9)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IE \u3067 Flash \u30e0\u30fc\u30d3\u30fc(foo.swf\u306a\u3069)\u3092 innerHTML\u306a\u3069\u3067\u52d5\u7684\u306b\u57cb\u3081\u8fbc\u3080\u3068, VB\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u53d6\u308c\u306a\u304f\u306a\u308b\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u3002 &nbsp; \u5bfe\u7b56\u306f\u3001SWFObject FAQ\u306b\u66f8\u304b\u308c\u3066\u3044 &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2010-02-23-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">SWFObject &#8211; IE \u3067 Flash \u304b\u3089 fscommand \u304c\u5b9f\u884c\u3067\u304d\u306a\u3044\u5bfe\u7b56<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[24,52],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-web-dev","tag-flash","tag-ie"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=910"}],"version-history":[{"count":3,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":1798,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/910\/revisions\/1798"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}