Can you show us some code?  How are things set up in MXML and in the
subclass?

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matthew OMeara
Sent: Thursday, May 17, 2007 6:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Override failing.... between MXML base class and
AS3 subclass

 

Perhaps I shopuld not be trying to do this, but here it is anyway...

I have a "compound" MXML component that I have created that has a few 
MXML children and 2 states. It serves as an agnostic visual control 
that Value Objects get assigned to for dipslay.

I want to reuse the MXML control several times over, so I have 
subclassed it in an AS3 class. Everything works fine except... when 
I override functions from the base class in the descendant class, it 
is failing to override.

Meaning I have a button in the base class that calls its own 
function, which is overriden in this "instance" but flex fails to 
route my event to the overriden function... it sends it to my 
placeholder function in the base class.

I realize that Flex does not support Abstract functions yet, but what 
I am trying to do should work without requiring "abstract".

Any insights are appreciated.

Matthew

 

Reply via email to