Proper Syntax - Properties from Construct

How do you properly set a public variable or property in a construct?
I’m pretty sure this is the wrong way of going about it:

 private var subNavLoader:Loader = new Loader();
         public var type:String;
         public var w:Number;
         public var h:Number;
         public var path:String;
         public function SubNavIcon(thumbPath:String, myPath:String, myType:String, myWidth:Number, myHeight:Number):void
            subNavLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, displayIcon);
            subNavLoader.load(new URLRequest(thumbPath));
            trace("loading: ", thumbPath);
            type = myType; 
            w = myWidth;
            h = myHeight;
            path = myPath;