I’m debugging the following app (trying it in browser):
import feathers.controls.Application;
import feathers.controls.Label;
class PhantasyStar3 extends Application {
private var label:Label;
private var i:Int = 0;
public function new() {
super();
label = new Label();
label.text = cast(stage.width);
addChild(label);
stage.addEventListener("resize", stage_resizeHandler);
}
public function stage_resizeHandler(e) {
trace(i);
i += 1;
label.text = cast(stage.width);
}
}
The stage_resizeHandler()
only runs once. Even if it’s a bug, I’d like to know if anyone relies on this or just use StageScaleMode.SHOW_ALL
for landscape games that may run on mobile phones, consequently scaling the user interface together with the gameplay world?