You can add some logic in there that will prevent that happening, even something like a simple boolean variable and if statement checking it's value should take care of it. Or if you have need for more complicated situations using a singleton pattern or something I think.
Great video. One question. How to you make it so that there is only one instance of the new window that you have created? If you keep hitting the button, more and more windows will be populated onscreen.
You can add some logic in there that will prevent that happening, even something like a simple boolean variable and if statement checking it's value should take care of it. Or if you have need for more complicated situations using a singleton pattern or something I think.
GrfxG 1 year ago
Thanks!
thew0rldofscience 1 year ago
@thew0rldofscience Most welcome, I aim to get some more AIR videos out.
GrfxG 1 year ago