http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
<http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946>

You can also search Google for "oop AS3 variable scope"

Yes, it should be public; otherwise it is only exposed to that class.

-TH

--- In [email protected], "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> I have the following form:
> public class reportRunParameters extends Form
> {
> private var runString:String = "";
> private var originalRunString:String = "";
> private var mainApp:Object = new Object();
> public function reportRunParameters()
> {
> super();
> }
> public function completeParameters():void
> {
> }
>
> }
> in subclassed version when I try to reference runString I am getting
> an error:
> 1178: Attempted access of inaccessible property originalRunString
> through a reference with static type ...
>
> Should it be public then?
>
> Thanks
>


Reply via email to