If you override that function like so, does it compile (to make sure the override is correct) and do you see the trace (to make sure the call is correct)?

override protected function  mthGetPDataTag(stgInput:String) :String
{
   trace('call worked')
   return '';
}
--

Mario Gonzalez
http://onedayitwillmake.com
Senior Developer | WDDG.com


Leisle wrote:
Hi list,

This should be simple, but for some reason refuses to cooperate. I'm working
in AS3, CS3.
I've got a super class (HsSegment) and a subclass (HsSegment_qtd1), both are
public. In the super class are the definitions for many methods, including
this definition:

protected function mthGetPDataTag(stgInput:String):String
{
        //...Do stuff and return a String...
}

In the subclass I've got the call to this method:
var stgEg:String = mthGetPDataTag(stgInput);

 When testing in the IDE this works fine. When testing in the browser I get
a runtime error,
 "ReferenceError: Error #1065: Variable
hs.segments.classes:HsSegment_qtd1::mthGetPDataTag is not defined."
        
I've googled and found plenty of questions around this, but no answers,
other than 'make your classes public', which they are.
The other methods in the super class are defined and called essentially this
same way and work fine in both IDE and browser. What makes this one special?

What am I missing? Any help is appreciated.

Thanks,
Bob


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4172 (20090619) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to