airsdk.dev
airsdk.dev copied to clipboard
Update create-an-app.md
how to create a basic AS3/Air Application
The code in this PR doesn't look valid to me.
- The main class should extend
flash.display.Spriteorflash.display.MovieClip. It currently has no superclass. - AS3 doesn't use a
main()function as its entry point. Instead, code starts executing in the constructor of the main class. Sofunction mainshould probably befunction HelloAirto match the name of the class. - The main class constructor isn't allowed to accept arguments, unless they're optional, because the AIR runtime instantiates it automatically. If you intended to make the app read command line arguments, you need to listen for
InvokeEvent.INVOKEinstead. However, command line arguments are more of an advanced topic for AIR applications, so I'd actually omit that from this tutorial.
Hello Josh,
Yeah I know that I didn't add any superclass like flash.display,Sprite or make the function function HelloAir() but what I'm trying/tried to do is show how to write a simple Hello World program.
if is there anything I can/need to fix,I'll write and test it again