How about:
class Classes.NoAnswerBut extends Classes.AnswerBut{
function NoAnswerBut(){trace(NoAnswerBut created);}
public function onPress(){}//no actions here
public function onRelease(){}//no actions here
}
Another option is to override
You can with override
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Alistair Colling
Verzonden: donderdag 1 mei 2008 13:21
Aan: Flash Coders List
Onderwerp: [Flashcoders] How do I remove methods of superclass in AS2?
Hiya, thanks for checking this. I
Thanks for your responses guys, I have removed onPress/onRelease
events as you suggested
onPress = undefined ;
onRelease = undefined ;
delete(onPress);
delete(onRelease);
but now my nested mc will
Thanks for your responses guys, I have removed onPress/onRelease
events as you suggested
onPress = undefined ;
onRelease = undefined ;
delete(onPress);
delete(onRelease);
but now my nested mc
Subject: Re: [Flashcoders] How do I remove methods of superclass in AS2?
Thanks for your responses guys, I have removed onPress/onRelease
events as you suggested
onPress = undefined ;
onRelease = undefined ;
delete(onPress
Override the functions instead with the override keyword. Something like
this:
override public function onPress(e:Event):void
{
}
Jason Merrill
Bank of America
Global Technology Operations LLD
eTools Multimedia
Join the Bank of America Flash Platform Developer Community
Are you a Bank
Sadly - override is AS3 only ... not AS2...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 01 May 2008 15:26
To: Flash Coders List
Subject: RE: [Flashcoders] How do I remove methods of superclass in AS2?
Override the functions
of
superclass in AS2?
Sadly - override is AS3 only ... not AS2...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: 01 May 2008 15:26
To: Flash Coders List
Subject: RE: [Flashcoders] How do I remove methods of
superclass in AS2
I remove methods of
superclass in AS2?
Sadly - override is AS3 only ... not AS2...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: 01 May 2008 15:26
To: Flash Coders List
Subject: RE: [Flashcoders] How do I
9 matches
Mail list logo