This file contains hidden or 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
| private function removeDuplicates(arr:Array):Array | |
| { | |
| var currentValue:String = ""; | |
| var tempArray:Array = new Array(); | |
| arr.sort(Array.CASEINSENSITIVE); | |
| arr.forEach( | |
| function(item:*, index:uint, array:Array):void { | |
| if (currentValue != item) { | |
| tempArray.push(item); | |
| currentValue= item; |
This file contains hidden or 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
| # to be run throughc ygwin | |
| # swftools required: http://www.swftools.org/ | |
| echo 'Dumping swf...' | |
| /c/Program\ Files/SWFTools/swfdump -a ./bin-debug/main.swf > dump | |
| echo 'Exporting *.as classnames...' | |
| find . -name "*.as" -exec basename {} .as \; > classes | |
| echo 'Exporting *.mxml classnames...' | |
| find . -name "*.mxml" -exec basename {} .mxml \; >> classes | |
| echo 'Unused classes:' | |
| for class in $(<classes) ; do grep -q \\\<$class\\\> dump || echo $class; done |