2import flash.events.MouseEvent;
5 public class TestSyntax extends flash.display.Sprite {
7 public static const TEST_CONSTANT:Number = 33.333;
9 var testAttribute:int = 1;
11 public namespace TestNamespace;
12 TestNamespace function Method2():void { }
17 override public function set x(value:Number):void
19 super.x = Math.round(value);
23 * Actual multi-line comment
24 * Takes up multiple lines
26 override public function set y(value:Number):void
31 public function testFunction() {
32 var test:String = 'hello';
35 var testArray:Array = ["a", "b", "c", "d"];
36 for (var i:uint = 0; i < testArray.length; i++)
40 var testObject:Object = {foo: 20, bar: 40};
41 for (var key:String in testObject) {
42 trace(testObject[key]);
44 for each (var objectValue:int in testObject) {
51 testDynamic = "Seventy-five";
54 var testRegExp:RegExp = /foo-\d+/i;
59 <firstName>Harold</firstName>
60 <lastName>Webster</lastName>
64 private function anotherFunc(a:int, arg2:uint, arg3:Function, ... args) {
68 [Embed(source="sound1.mp3")] public var soundCls:Class;
69 public function SoundAssetExample()
71 var mySound:SoundAsset = new soundCls() as SoundAsset;
72 var sndChannel:SoundChannel = mySound.play();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list