Attached files and screen shots give examples, here is a summary
base mxml defined this way
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="common.securitygateway.components.*" xmlns:component="common.components.*"
initialize="init()">
and it is extended using the following syntax (note this is working code)
<SG:LoginMain xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:SG="common.securitygateway.components.*"
xmlns:view="views.*" initialize="init()"
appName="Ebt" mainLoginSuccess="handleLoginSuccess(event)"
sessionLogOff="forceLogOff(event)">
inspection incorreclty flags the following as issues
private function doRegisterUser(evt:Event):void {
super.switchView('loginRegistration'); — inspection flags switchView as unknown but it is public in subclass
}
registerLink = myRegisterLink; – inspection flasgs registerLink as unknown but it is public function set in subclass
dispatchEvent(new CommonEvent("loginSuccess")); – inspection flags dispatchEvent as unkown
- subclass's attributes unknown
label = "Log-in"; – inspection reports label as uknown but it is an attribute of the extended Canvas component
AGAIN please not this is working code, not theory, extending MXML is very useful concept
Environment: xp
Issue was resolved