SoulwireAS3Framework
SoulwireAS3Framework copied to clipboard
Adding controls for static variables in external Classes
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