Introducing ASTRID
Labels: actionscript, flash, flex, html, Model-view-controller, Source code
Tyler Larson's web design and application development ideas and cool stuff that inspires me to continue doing so. Flash, Flex, ActionScript, ECMA, Ruby, et cetera!!!
Labels: actionscript, flash, flex, html, Model-view-controller, Source code
Labels: actionscript, html
Labels: actionscript, flex
--langdef=Actionscript
--langmap=Actionscript:.as
--regex-Actionscript=/^[ \t]*[(private| public|static) ( \t)]*function[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-Actionscript=/^[ \t]*[(public) ( \t)]*function[ \t]+(set|get) [ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1 \2/p,property,properties/
--regex-Actionscript=/^[ \t]*[(private| public|static) ( \t)]*var[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,variable,variables/
--regex-Actionscript=/^[ \t]*[(private| public|static) ( \t)]*const[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,constant,constants/
--regex-Actionscript=/.*\.prototype \.([A-Za-z0-9 ]+)=([ \t]?)function( [ \t]?)*\(/\1/ f,function,functions/
--regex-Actionscript=/^[ \t]*class[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class, classes/
Labels: ActionScript 3, TextMate
var myObject:Object = function() : Object {
var value = 0;
return {
increment: function (inc:Number = 1) {
value += inc;
},
getValue: function() {
return value;
}
}
}();
myObject.increment();
trace(myObject.getValue()); // traces: 1
myObject.increment();
trace(myObject.getValue()); // traces: 2
Labels: JavaScript, Object-Oriented, Programming
Labels: actionscript, flash, Model-view-controller