Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actionscript&MXML snippet added

  • Loading branch information...
commit 22a1266dda26340ad57676b31ae1deae7d5537d3 1 parent 15cb6bf
Andrea Brancaleoni authored
View
2  Rakefile
@@ -5,7 +5,7 @@ namespace :snippets_dir do
task :find do
vim_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin|msys|mingw32/ ? "vimfiles" : ".vim")
pathogen_dir = File.join(vim_dir, "bundle")
- @snippets_dir = File.directory?(pathogen_dir) ? File.join(pathogen_dir, "snipmate", "snippets") : File.join(vim_dir, "snippets")
+ @snippets_dir = File.directory?(pathogen_dir) ? File.join(pathogen_dir, "snipmate.vim", "snippets") : File.join(vim_dir, "snippets")
end
desc "Purge the contents of the vim snippets directory"
View
4 actionscript/ca.snippet
@@ -0,0 +1,4 @@
+snippet ca
+ case ${1:/* value */}:
+ ${2:// code...}
+ break;${3}
View
9 actionscript/cl.snippet
@@ -0,0 +1,9 @@
+snippet cl
+ ${1:public }class ${2:ClassName} ${3:extends} ${4:BaseClass}
+ {
+ public function $2(${5}):void
+ {
+ }
+
+ ${6://code...}
+ }
View
7 actionscript/class.snippet
@@ -0,0 +1,7 @@
+snippet class
+ public class ${1} {
+
+ ${2}
+
+ }
+
View
4 actionscript/comment.snippet
@@ -0,0 +1,4 @@
+snippet /*
+ /**
+ * ${1:Comments}
+ **/
View
2  actionscript/const.snippet
@@ -0,0 +1,2 @@
+snippet const
+ ${1:public }static const ${2:CONSTANT}:${3:Type} = ${4:value};
View
4 actionscript/do.snippet
@@ -0,0 +1,4 @@
+snippet do
+ do {
+ ${2:// code... }
+ } while (${1:/* condition */});
View
4 actionscript/else.snippet
@@ -0,0 +1,4 @@
+snippet else
+ else {
+ ${1:// code...}
+ }
View
4 actionscript/elseif.snippet
@@ -0,0 +1,4 @@
+snippet elseif
+ elseif (${1:/* condition */}) {
+ ${2:// code...}
+ }
View
5 actionscript/for.snippet
@@ -0,0 +1,5 @@
+snippet for
+ for(var ${2:i}:uint = 0; $2 < ${1:length}; $2${3:++}) {
+ ${4}
+ }
+
View
4 actionscript/foreach.snippet
@@ -0,0 +1,4 @@
+snippet foreeach
+ for each (var ${1:value}:${2:Type} in ${3:list}) {
+ ${4:// code...}
+ }
View
5 actionscript/fun.snippet
@@ -0,0 +1,5 @@
+snippet fun
+ ${1:public} function ${2}(${3}):${4:void} {
+ ${5}
+ }
+
View
5 actionscript/get.snippet
@@ -0,0 +1,5 @@
+snippet get
+ ${1:public }function get ${2:FunctionName}():${3:void}
+ {
+ ${4:// code...}
+ }
View
3  actionscript/gotoandplay.snippet
@@ -0,0 +1,3 @@
+snippet gop
+ gotoAndPlay(${1:frame});
+
View
2  actionscript/gotoandstop.snippet
@@ -0,0 +1,2 @@
+snippet gos
+ gotoAndStop(${1:frame});
View
5 actionscript/if.snippet
@@ -0,0 +1,5 @@
+snippet if
+ if (${1:/* condition */}) {
+ ${2:// code...}
+ }
+
View
7 actionscript/ife.snippet
@@ -0,0 +1,7 @@
+snippet ife
+ if (${1:/* condition */}) {
+ ${2:// code...}
+ } else {
+ ${3:// code...}
+ }
+ ${4}
View
2  actionscript/im.snippet
@@ -0,0 +1,2 @@
+snippet im
+ import ${1:/* package */};
View
5 actionscript/pa.snippet
@@ -0,0 +1,5 @@
+snippet pa
+ package ${1:/* package */}
+ {
+ ${2:/* code */}
+ }
View
7 actionscript/package.snippet
@@ -0,0 +1,7 @@
+snippet package
+ package ${1}{
+
+ ${2}
+
+ }
+
View
5 actionscript/set.snippet
@@ -0,0 +1,5 @@
+snippet set
+ ${1:public }function set ${2:FunctionName}(${3:value}:${4:Type:}):${5:void}
+ {
+ ${6:// code...}
+ }
View
10 actionscript/sw.snippet
@@ -0,0 +1,10 @@
+snippet sw
+ switch (${1:/* condition */}) {
+ case ${2:/* value */}:
+ ${3:// code...}
+ break;
+ ${5}
+ default:
+ ${4:// code...}
+ break;
+ }
View
2  actionscript/tr.snippet
@@ -0,0 +1,2 @@
+snippet tr
+ trace(${1:/* argument* /});
View
4 actionscript/while.snippet
@@ -0,0 +1,4 @@
+snippet wh
+ while (${1:/* condition */}) {
+ ${2:// code...}
+ }
View
11 mxml/mxapp.snippet
@@ -0,0 +1,11 @@
+snippet mxapp
+ <?xml version="1.0"?>
+ <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
+ <mx:Script>
+ <![CDATA[
+ ${2}
+ ]]>
+ </mx:Script>
+ ${1}
+ </mx:Application>
+
View
13 mxml/sapp.snippet
@@ -0,0 +1,13 @@
+snippet sapp
+ <?xml version="1.0"?>
+ <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx">
+ <fx:Script>
+ <![CDATA[
+ ${2}
+ ]]>
+ </fx:Script>
+ ${1}
+ </s:Application>
+
View
8 mxml/sitem.snippet
@@ -0,0 +1,8 @@
+snippet sitem
+ <?xml version="1.0"?>
+ <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx">
+ ${1}
+ </s:ItemRenderer>
+
Please sign in to comment.
Something went wrong with that request. Please try again.