| 1. |
What Is Dynamic Keyword Used For In Actionscript? |
|
Answer» Dynamic classes, which allow you to programmatically add new properties and behavior to classes during the run-time. Just add the magic keyword dynamic to the class definition: dynamic class Person { Now let's add dynamically two VARIABLES name and AGE and the function printme() to the OBJECT of type Person: Person p= new Person(); Dynamic classes, which allow you to programmatically add new properties and behavior to classes during the run-time. Just add the magic keyword dynamic to the class definition: dynamic class Person { Now let's add dynamically two variables name and age and the function printme() to the object of type Person: Person p= new Person(); |
|