Solve the problems with AIR 2 (Patreon)
Content
In the previous post, I said AS1 and AS3 codes are not compatible, in the figure above, it's impossible to control windows from the game.
However, I found that a special method called "LocalConnection" enables communication between AS1 and 3, but it's a very complicated and difficult procedure because communicating involves a security risk. It's hard to implement this method at once, so I made a test program to try it out.
Left is a flash player running on AS1, and right is an AIR application running on AS3. These are completely different programs, but the button on the flash player side is closing the AIR application. This means sending a communication to execute the other app's program.
Next, let's load the left program into the right one and merge them together.
Done. This is what I wanted to do. Let's try to implement it in the game now.
Done! The quit and full screen buttons are now back. However, this is not the only reason I deployed this method. It means that now possible to freely access AIR, and thus OS functions from the game body. I may be able to do something new.