- To toggle the vertical NERDTree window on and off, use :NERDTreeToggle
- To open a tab and move into it use j or k to navigate the file you want to open, then hit t from the NERDTree window
- To open a tab but stay in the current tab, use j or k to navigate the file you want to open, then hit T from the NERDTree Window
- To move a file in the NERDTree window, use m
- To add a file in the NERDTree window, use a
- To navigate to the next tab, use gt
- To navigate to the previous tab, use gT
- All window commands start with ctrl w
- To move back to the NERDTree window from another split window in the current tab, use ctrl ww or ctrl wh
- To move between windows in general, ctrl wh takes you left, ctrl wl takes you right, ctrl wj takes you down and ctrl wk takes you up.
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
//Get an XML description of this class | |
//and return the variable types as XMLList with e4x | |
var varList:XMLList = flash.utils.describeType(VO)..variable; | |
for(var i:int; i < varList.length(); i++){ | |
//Show the name and the value | |
trace(varList[i].@name+':'+ VO[varList[i].@name]); | |
} |
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
for (var key:String in object) | |
{ | |
trace(key+':'+ object[key]); | |
} |
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
import flash.utils.getDefinitionByName; | |
var ClassReference:Class = getDefinitionByName("CLASS_NAME") as Class; | |
var obj:Object = new ClassReference(); |
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
package { | |
import flash.display.Sprite; | |
import flash.display.Loader; | |
import flash.display.LoaderInfo; | |
import flash.net.URLRequest; | |
import flash.display.MovieClip; | |
import flash.events.Event; | |
import flash.system.ApplicationDomain; |
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
var obj:DisplayObject = new DisplayObject(); | |
obj.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void { | |
obj.removeEventListener(event.type, arguments.callee); | |
}); |
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
array.filter(filterFunction); | |
private function filterFunction(item:Object ,index:int, arr:Array):Boolean | |
{ | |
// Do anything.. | |
} |
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
<s:Panel id="ui"> | |
<!-- anything --> | |
</s:Panel> | |
</fx:Declarations> | |
<s:Sequence id="shake" target="{ui}" duration="30"> | |
<s:Move xBy="20"/> | |
<s:Move xBy="-20"/> | |
<s:Move xBy="20"/> | |
<s:Move xBy="-20"/> |
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
package classes.utils | |
{ | |
import mx.collections.ArrayCollection; | |
import mx.collections.Sort; | |
import mx.collections.SortField; | |
/** | |
* Useful functions to manipulate arrays | |
* | |
* @author Cyril Mazur cyrilmazur.com |
#Sublime Text 2 - Shortcuts (Mac OSX)
##Default
###General
Command | Shortcut |
---|---|
Command palette | ⌘ + ⇧ + P |
Toggle side bar | ⌘ + K + B |
OlderNewer