well I’m sorry to tell you this but the code is not the same.
if (component.status == Component.Ready)
var game = component.createObject(main_Window, {});
game.focus = true;
=
if (component.status == Component.Ready)
{
var game = component.createObject(main_Window, {});
}
game.focus = true;
that is why game.focus = true produces and warning because “game” is undefined at that line… seems like nobody else is reading this thread but you tr it yourself if you don’t believe me
↧