forked from scrooloose/snipmate-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated actionscript to match honza/snipmate-snippets
- Loading branch information
Showing
1 changed file
with
2 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,3 @@ | ||
# Actionscript 3 snippets file by Alex Schearer <[email protected]> | ||
|
||
# trace | ||
snippet tr | ||
trace(${1:/* argument* /}); | ||
# package | ||
snippet pa | ||
package ${1:/* package */} | ||
{ | ||
${2:/* code */} | ||
} | ||
# import | ||
snippet im | ||
import ${1:/* package */}; | ||
# Start Docblock | ||
snippet /* | ||
/** | ||
* ${1:Comments} | ||
**/ | ||
# while | ||
snippet wh | ||
while (${1:/* condition */}) { | ||
${2:// code...} | ||
} | ||
# do ... while | ||
snippet do | ||
do { | ||
${2:// code... } | ||
} while (${1:/* condition */}); | ||
snippet if | ||
if (${1:/* condition */}) { | ||
${2:// code...} | ||
} | ||
snippet ife | ||
if (${1:/* condition */}) { | ||
${2:// code...} | ||
} else { | ||
${3:// code...} | ||
} | ||
${4} | ||
snippet else | ||
else { | ||
${1:// code...} | ||
} | ||
snippet elseif | ||
elseif (${1:/* condition */}) { | ||
${2:// code...} | ||
} | ||
# switch | ||
snippet sw | ||
switch (${1:/* condition */}) { | ||
case ${2:/* value */}: | ||
${3:// code...} | ||
break; | ||
${5} | ||
default: | ||
${4:// code...} | ||
break; | ||
} | ||
# case | ||
snippet ca | ||
case ${1:/* value */}: | ||
${2:// code...} | ||
break;${3} | ||
snippet for | ||
for (var ${2:i}:uint = 0; $2 < ${1:count}; $2${3:++}) { | ||
${4: // code...} | ||
} | ||
snippet foreeach | ||
for each (var ${1:value}:${2:Type} in ${3:list}) { | ||
${4:// code...} | ||
} | ||
snippet fu | ||
${1:public }function ${2:FunctionName}(${3}):${4:void} | ||
{ | ||
${5:// code...} | ||
} | ||
snippet get | ||
${1:public }function get ${2:FunctionName}():${3:void} | ||
{ | ||
${4:// code...} | ||
} | ||
snippet set | ||
${1:public }function set ${2:FunctionName}(${3:value}:${4:Type:}):${5:void} | ||
{ | ||
${6:// code...} | ||
} | ||
snippet cl | ||
${1:public }class ${2:ClassName} ${3:extends} ${4:BaseClass} | ||
{ | ||
public function $2(${5}):void | ||
{ | ||
} | ||
|
||
${6://code...} | ||
} | ||
snippet const | ||
${1:public }static const ${2:CONSTANT}:${3:Type} = ${4:value}; | ||
# gotoAndPlay | ||
snippet gop | ||
gotoAndPlay(${1:frame}); | ||
# gotoAndStop | ||
snippet gos | ||
gotoAndStop(${1:frame}); | ||
snippet main | ||
package { | ||
import flash.display.*; | ||
|
@@ -237,7 +133,7 @@ snippet fun | |
{ | ||
${4:/* code */} | ||
} | ||
# FlxSprite | ||
# FlxSprite (usefull when using the flixel library) | ||
snippet FlxSprite | ||
package | ||
{ | ||
|
@@ -258,3 +154,4 @@ snippet FlxSprite | |
} | ||
} | ||
} | ||
|