RE: [Flashcoders] ReferenceError: Error #1065 issue

2009-06-22 Thread Robert Leisle
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,
Bob


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] 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 
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


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


Re: [Flashcoders] ReferenceError: Error #1065 issue

2009-06-20 Thread mario
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


[Flashcoders] ReferenceError: Error #1065 issue

2009-06-18 Thread Robert Leisle
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