Components with parameters

Ok, so I noticed there’s not a whole lot of information on components and components with parameters is even more rare. I currently have a component that is an image loader. I have a parameters that are defined in code (see below, code is defined in an .as file tied to my component). so component loads fine when i run it in a new flash file…but when I change the parameter and run it I get a “1119: Access of possibly undefined property path through a reference with static type myComponent.”

Am I defining these properties as static? if so how do i make them not static? any help would be appreciated!

(Note I have a draw function overridden as well so this isn’t the full class)


package 
{
    import fl.core.UIComponent;
    import flash.display.*;
    public class myComponent extends UIComponent
    {

public var path:String;

public function AS3_SWF_Loader()
        {
            super();
        }

[Inspectable(name="path",type="String",defaultValue="N/A")]

        public function set path(val:String):void
        {
            this._path = val;
        }
        public function get path():String
        {
           return this._path;
        }
}
}