Tag Archives: document class

Dynamic Timeline Vars

  1. this.myVar = "I am a dynamic variable";
  2. trace(this.myVar);
  4. // 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.... 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.

Posted in timeline, variables | Also tagged , | 2 Comments