{"id":280,"date":"2011-11-30T07:11:36","date_gmt":"2011-11-30T07:11:36","guid":{"rendered":"http:\/\/brain.dailyon.net\/?p=280"},"modified":"2011-11-30T07:11:36","modified_gmt":"2011-11-30T07:11:36","slug":"as-%eb%84%a4%eb%b9%84%ea%b2%8c%ec%9d%b4%ec%85%98-%ec%88%98%ec%a0%95%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=280","title":{"rendered":"AS : \ub124\ube44\uac8c\uc774\uc158 \uc218\uc815\uae30"},"content":{"rendered":"<p>\uc678\ubd80 \uc811\uadfc \ubcc0\uc218\ub294 swf?param=&#8221;~~~~~~&#8221;<\/p>\n<pre>\nif(param==null){\n\tparam= \"swf\/link.xml\";\n}\n<\/pre>\n<p>\ud30c\ub77c\ubbf8\ud130\uba85\uc744 \uc2a4\ud06c\ub9bd\ud2b8 \uc548\uc5d0 \ubc14\ub85c \uc368\uc8fc\uba74 SWF\uc5d0 \ub118\uc5b4\uac04\ub2e4.<\/p>\n<p>\uc911\ubcf5 \uc18c\uc2a4\uac00 \uc788\uae38\ub798 _global\ub85c \ud568\uc218\uc815\uc758\ud574\uc11c \ucc98\ub9ac\ud588\ub2e4.<\/p>\n<pre>\n\/\/ submenu click\n_global.navigateSubmenu = function(mainIdx, subIdx)\n{\n\ttrace(\"mainIdx[\" + mainIdx + \"], subIdx[\" + subIdx + \"]\");\n\t_global.active = mainIdx;\n\t_global.over = _global.active;\n\t_global.subActive = 0;\n\n\tgetURL(subLink[mainIdx][subIdx], subTarget[mainIdx][subIdx]);\n}\n<\/pre>\n<p>XML \uc218\uc815\ubc95<br \/>\n\ucc38\uc870 : http:\/\/www.republicofcode.com\/tutorials\/flash\/xml\/<\/p>\n<p>\uc124\uba85 : this\ub791 myXML\uc774\ub791 \uac19\ub2e4. firstChild\ub294 data\ud0dc\uadf8\uc758 \uc790\uc2dd\ub4e4\uc774\ub2e4. childNodes\ub85c \ub0b4\ubd80\ub85c \ub4e4\uc5b4\uac00\uba74 \uc790\uc2dd\ub4e4\uc5d0 \uc811\uadfc\ud560\uc218\uc788\ub2e4.<br \/>\n attributes.[\uc18d\uc131\uba85]\uc73c\ub85c \uc811\uadfc\uac00\ub2a5\ud55f.<\/p>\n<pre>\n\n\n\t\n\t\t<sub \/>\n\t\t<sub \/>\n\t\n\n\n\/\/xmlPath\ub294 \uc678\ubd80\uc5d0\uc11c \ud30c\ub77c\ubbf8\ud130\ub85c \uc804\ub2ec\nif(naviXmlPath==null){\n\tnaviXmlPath = \"swf\/link.xml\";\n}\n\nmyXML.load(naviXmlPath);\nmyXML.ignoreWhite = true;\n\nmyXML.onLoad = function(success) {\n\tfor (i=1; i&lt;=numOfMenu; i++) {\n\n\t\tmainLink[i] = this.firstChild.childNodes[i-1].attributes.value;\n\t\tmainTarget[i] = this.firstChild.childNodes[i-1].attributes.target;\n\t\tsubLink[i] = new Array();\n\t\tsubTarget[i] = new Array();\n\t\ttrace(&quot;\uba54\uc778\ub9c1\ud06c : &quot;+mainLink[i]+&quot; \uba54\uc778\ud0c0\uac9f :&quot;+mainTarget[i]);\n\t\tif (this.firstChild.childNodes[i-1].hasChildNodes()) {\n\t\t\tfor (k=1; k&lt;= this.firstChild.childNodes[i-1].childNodes.length; k++) {\n\t\t\t\tsubLink[i][k] = this.firstChild.childNodes[i-1].childNodes[k-1].attributes.value;\n\t\t\t\tsubTarget[i][k] = this.firstChild.childNodes[i-1].childNodes[k-1].attributes.target;\n\t\t\t\ttrace(&quot;    \uc11c\ube0c\ub9c1\ud06c : &quot;+subLink[i][k]+&quot; \uc11c\ube0c\ud0c0\uac9f :&quot;+subTarget[i][k]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n\t\n};\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc678\ubd80 \uc811\uadfc \ubcc0\uc218\ub294 swf?param=&#8221;~~~~~~&#8221; if(param==null){ param= &#8220;swf\/link.xml&#8221;; } \ud30c\ub77c\ubbf8\ud130\uba85\uc744 \uc2a4\ud06c\ub9bd\ud2b8 \uc548\uc5d0 \ubc14\ub85c \uc368\uc8fc\uba74 SWF\uc5d0 \ub118\uc5b4\uac04\ub2e4. \uc911\ubcf5 \uc18c\uc2a4\uac00 \uc788\uae38\ub798 _global\ub85c \ud568\uc218\uc815\uc758\ud574\uc11c \ucc98\ub9ac\ud588\ub2e4. \/\/ submenu click _global.navigateSubmenu = function(mainIdx, subIdx) { trace(&#8220;mainIdx[&#8220;&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":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/280"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}