{"id":191,"date":"2007-08-26T00:28:26","date_gmt":"2007-08-25T15:28:26","guid":{"rendered":"http:\/\/hangunsworld.com\/blog\/?p=191"},"modified":"2008-10-15T23:05:27","modified_gmt":"2008-10-15T14:05:27","slug":"using-flashvars-in-actionscript-30","status":"publish","type":"post","link":"http:\/\/hangunsworld.com\/blog\/191","title":{"rendered":"Using FlashVars in ActionScript 3.0"},"content":{"rendered":"<div class=\"english\">You can pass data from an HTML document to a Flash movie via FlashVars or query string.<br \/>\nIn AS2, these data are defined as variables in the main timeline(_root). But you have to access the data using loaderInfo.parameters in AS3.<\/div>\n<div class=\"korean\">HTML\ubb38\uc11c\uc5d0\uc11c FlashVars \ub610\ub294 \ucffc\ub9ac \uc2a4\ud2b8\ub9c1\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud50c\ub798\uc2dc \ubb34\ube44\ub85c \ub370\uc774\ud130\ub97c \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\nAS2\uc5d0\uc11c\ub294, \uc774\ub807\uac8c \ub118\uc5b4\uc628 \ub370\uc774\ud130\uac00 \uba54\uc778 \ud0c0\uc784\ub77c\uc778(_root) \uc0c1\uc758 \ubcc0\uc218\ub85c \ub9cc\ub4e4\uc5b4\uc9d1\ub2c8\ub2e4. \uadf8\ub7ec\ub098 AS3\uc5d0\uc11c\ub294, loaderInfo.parameters\ub97c \ud1b5\ud558\uc5ec \uc811\uadfc\ud558\uac8c \ub429\ub2c8\ub2e4.<\/div>\n<div class=\"japanese\">FlashVars\u304a\u3088\u3073query string\u3092\u4f7f\u3063\u3066HTML\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089Flash\u30e0\u2015\u30d3\u2015\u306b\u30c7\u2015\u30bf\u3092\u4f1d\u3048\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\nAS2\u3067\u306f\u3001\u305d\u306e\u30c7\u30fc\u30bf\u30fc\u304c\u30e1\u30fc\u30f3\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3(_root)\u306e\u5909\u6570\u306b\u4f5c\u3089\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001AS3\u3067\u306floaderInfo.parameters\u3092\u4f7f\u3046\u4e8b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/div>\n<pre lang=\"ActionScript3\" line=\"1\">var userID:String = loaderInfo.parameters.userID;\r\nvar pathXML:String = loaderInfo.parameters.pathXML;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can pass data from an HTML document to a Flash movie via FlashVars or query string. In AS2, these data are defined as variables in the main timeline(_root). But you have to access the data using loaderInfo.parameters in AS3. HTML\ubb38\uc11c\uc5d0\uc11c FlashVars \ub610\ub294 \ucffc\ub9ac \uc2a4\ud2b8\ub9c1\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud50c\ub798\uc2dc \ubb34\ube44\ub85c \ub370\uc774\ud130\ub97c \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. AS2\uc5d0\uc11c\ub294, \uc774\ub807\uac8c \ub118\uc5b4\uc628 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[139,50,51],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-as3","tag-actionscript-30","tag-flashvars","tag-loaderinfo"],"_links":{"self":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":0,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}