From 51cceca4b2f464ea79a8424b4d7eb8afcc3e86d2 Mon Sep 17 00:00:00 2001 From: tohar <84278827+tohar777@users.noreply.github.com> Date: Sat, 19 Jul 2025 11:08:41 +0300 Subject: [PATCH] Added an Hello World I added an Hello World Example in ActionScript (3.0) with comments which documents every line in the script --- docs/basics/create-an-app.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/basics/create-an-app.md b/docs/basics/create-an-app.md index 76d5ea4a6..6ecfe2b8d 100644 --- a/docs/basics/create-an-app.md +++ b/docs/basics/create-an-app.md @@ -2,4 +2,22 @@ title: Create an Application sidebar_position: 5 --- +this is an Hello World in ActionScript,each line explains what everything does so that you will a familiarity with the ActionScript Language. +``` +package{ //tells where's the script locate which can later be use to import(for example:flash.display.Sprite) + import flash.display.Sprite; //imports the Sprite class(nessecery) + + public class Main extends Sprite{ + public function say(sentence:String){ //A Comment + trace(sentence); //print() function + } + public function Main(){ //the Main function,needs to have the same name as the class + say("Hello World"); //print the variable + } + } +} +``` +#### after you finish writing the code use mxmlc(which come with the AIR SDK) to compile it to a swf + +`mxmlc helloworld.as`