Thanks Mario!

I actually found the solution to this. It was my own mistake, of course.
I've got a base level swf loading in a child swf which contains the super
class and subclass mentioned below. Turns out the loading swf also uses the
super class, and I hadn't recompiled it in the process. It was loading the
older version of the super class into memory first, so the updated
definition compiled into the child swf was not being used.

Thanks again for your response,

-----Original Message-----
[] On Behalf Of mario
Sent: Saturday, June 20, 2009 4:52 PM
To: Flash Coders List
Subject: Re: [Flashcoders] ReferenceError: Error #1065 issue

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 

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

Mario Gonzalez
Senior Developer |

Leisle wrote:
> Hi list,
> This should be simple, but for some reason refuses to cooperate. I'm
> in AS3, CS3.
> I've got a super class (HsSegment) and a subclass (HsSegment_qtd1), both
> 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
> 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
> same way and work fine in both IDE and browser. What makes this one
> What am I missing? Any help is appreciated.
> Thanks,
> Bob
> _______________________________________________
> Flashcoders mailing list

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

The message was checked by ESET NOD32 Antivirus.

Flashcoders mailing list

Flashcoders mailing list

Reply via email to