with() Statement in Actionscript 3

with() Statement in Actionscript 3

Often times, you will find yourself assigning many properties to one particular movie clip. Let’s say you have a movie clip instance called data_txt. Adding properties to it could look like this: Notice how you are repeating the word theContent. A better, cleaner method for referencing one particular object would be to use the with() [...]