Example 1, using super to use the base base variable
public class MyBaseClass
{
protected var myProtectedVar:String;
}
public class MyExtendedClass
{
public function MyExtendedClass
{
super.myProtecedVar = "Hello World"; // this will throw an JS error
at runtime
}
}
Example 2, using super at an event
call a remote AMF service to a resultHandler event:
private function resultHandler(event:ResultEvent):void
{
super.entities = event.data as ArrayList; // this will throw an
internal JS error that will stop the result event and fire the AMF fault
event
}