> in subclassed version when I try to reference runString

If this means that you are trying to access runString from a subclass of 
reportRunParameters, then you could make it protected instead of public. 
Protected properties and methods are visible from subclasses.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Friday, October 10, 2008 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Variable scope


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 flexcoders@yahoogroups.com, "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