Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

ActionScript

< >

ActionScript is a programming language created in 1998 by Gary Grossman.

#142on PLDB 26Years Old 25kRepos
Wikipedia · Docs

438 184 ActionScript is an object-oriented programming language originally developed by Macromedia Inc. (later acquired by Adobe Systems). It is a derivation of HyperTalk, the scripting language for HyperCard. Read more on Wikipedia...


Example from hello-world:
package { import flash.display.Sprite; import flash.text.TextField; public class actionscript extends Sprite { private var hello:TextField = new TextField(); public function actionscript(){ hello.text = "Hello World"; addChild(hello); } } }
Example from Linguist:
package mypackage { public class Hello { /* Let's say hello! * This is just a test script for Linguist's Actionscript detection. */ public function sayHello():void { trace("Hello, world"); } } }
Example from Wikipedia:
private function getNeighbours(_arg1:int, _arg2:int):Array{ var _local3:Array = -(((null - !NULL!) % ~(undefined))); var _local4:*; var _local5:*; var _local6:*; _local3 = new Array(); _local4 = 0; for (;//unresolved jump , _arg2 < 8;_local4++) { _local5 = (_arg1 + int(!NULL!)); _local6 = (_arg2 + int(!NULL!)); if (true){ _arg1 = (((//unresolved nextvalue or nextname << !NULL!) + !NULL!) << undefined); _arg1 = (!(!NULL!) ^ !NULL!); (!NULL! instanceof !NULL!); var _local1 = (((!NULL! as !NULL!) + !NULL!) == this); if (!(!NULL! == !NULL!)){ -((true << !NULL!)).push(Cell(cells[_local5][_local6])); } } if (!true){ (_local6 < 0); (_local6 < 0); (_local5 < 0); } } return (_local3); }

Language features

Feature Supported Example Token
Line Comments ✓
Integers ✓
Floats ✓
Hexadecimals ✓
Strings ✓ "Hello world" "
Comments ✓ /* A comment */
MultiLine Comments ✓ /* A comment */ /* */
Print() Debugging ✓ trace
Case Insensitive Identifiers X
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0