2/17/2011 5:18:34 AM
Title:
overriding function in as3
Hi all
I am learning OOP concepts could you please explain on the following:
Why we do the overriding function in as3 and what is the advantage of it in the class?
Regards,
Manish
2/18/2011 9:42:49 AM
we override a function in as3 to replace or add some functionality of a function in class with our new function .
say we have a class which creates textbox , now we want that the textbox should have some default text also. In such case we can override the textbox creating function inside that class and write our new function which will create the textbox and also add the default text inside.