{"id":103,"date":"2008-11-24T00:00:29","date_gmt":"2008-11-24T07:00:29","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=230"},"modified":"2008-11-24T00:00:29","modified_gmt":"2008-11-24T07:00:29","slug":"dynamic-timeline-vars","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=103","title":{"rendered":"Dynamic Timeline Vars"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nthis.myVar = &quot;I am a dynamic variable&quot;;\r\ntrace(this.myVar);\r\n\r\n\/\/ trace(myVar) \/\/ will cause an error\r\n<\/pre>\n<p>This code will add dynamic untyped variables to the timeline. Although this example is pretty useless, it scratches the surface of an interesting topic&#8230;. by default all flash timeline code gets compiled into a giant dynamic document class that uses the undocumented addFrameScript() function. This means that all import statements on the timeline, even ones not on frame one become part of this large document class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>this.myVar = &quot;I am a dynamic variable&quot;; trace(this.myVar); \/\/ trace(myVar) \/\/ will cause an error This code will add dynamic untyped variables to the timeline. Although this example is pretty useless, it scratches the surface of an interesting topic&#8230;. by default all flash timeline code gets compiled into a giant dynamic document class that uses [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,68],"tags":[3,69,4],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-timeline","category-variables","tag-actionscript","tag-document-class","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}