Skip to content

Adding controls for static variables in external Classes #5

Description

@hornergraphic

Hi Justin,

This may just be me having a shortage of caffeine but I can't work out how to use SimpleGUI to control values in static classes. This (stripped down) example below is throwing compiler Error #1069 property not found and there is no default value:

Model {
public static var someVariable:int = 0;
}

View {
import Model;

 public function View():void {
      ...
      _gui = new SimpleGUI(this, "GUI Name", "C");
      _gui.addStepper("Model.someVariable", 0 , 4 );
      _gui.show();          
      ....
 }

}

Is this an issue with the class or how I'm implementing it? Any help (over and above the great class you've already provided) would be much appreciated!

Cheers,

Steve

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions