{"id":38,"date":"2008-04-25T09:11:27","date_gmt":"2008-04-25T17:11:27","guid":{"rendered":"http:\/\/www.blogs.abeazam.com\/dev\/?p=38"},"modified":"2008-04-25T09:11:27","modified_gmt":"2008-04-25T17:11:27","slug":"testing-for-flashvars-in-as2","status":"publish","type":"post","link":"http:\/\/www.blogs.abeazam.com\/dev\/2008\/04\/testing-for-flashvars-in-as2\/","title":{"rendered":"Testing for FlashVars in AS2"},"content":{"rendered":"<p>Quick bit of code stick it on the first frame of new flash file and it will list all the FlashVars passed into the flash.<\/p>\n<pre lang=\"actionscript\">\n\/\/creates the text feild on the stage\n\nthis.createTextField(\"vars_txt\",3,100,100,Stage.width-100, Stage.height-100)\n\n\/\/sets the basic properties\n\nvars_txt.multiline = true;\n\nvars_txt.selectable = true;\n\n\/\/adds the title\n\nvars_txt.text += \"FlashVar : Contant of FlashVarn\";\n\nfor(var z in _root)\n\n{\n\n\u00a0\/\/$version: version is on the root by default so it is excluded\n\n\u00a0\/\/vars_txt: is the name of the text field so it is also excluded from the list\n\n\u00a0if(z !=  \"$version\" &amp;&amp; z != \"vars_txt\")\n\n\u00a0vars_txt.text += z + \" : \" + _root[z]+\"n\";\n\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Quick bit of code stick it on the first frame of new flash file and it will list all the FlashVars passed into the flash. \/\/creates the text feild on the stage this.createTextField(&#8220;vars_txt&#8221;,3,100,100,Stage.width-100, Stage.height-100) \/\/sets the basic properties vars_txt.multiline = true; vars_txt.selectable = true; \/\/adds the title vars_txt.text += &#8220;FlashVar : Contant of FlashVarn&#8221;; for(var [&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:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}