Revision: 19910
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 3, 2009 11:43 by nate63179
Initial Code
private static function getFilenameFromUrl(url:String):String { var letters:Array= []; var charPosition:int= url.length; var currentCharacter:String; while(currentCharacter != '/' && currentCharacter != '\\') { currentCharacter = url.charAt(charPosition); letters.push( currentCharacter); charPosition--; } letters = letters.reverse(); letters.shift(); var filename:String = letters.join(''); return filename; }
Initial URL
Initial Description
Retrieves a filename from a complete url
Initial Title
Flash: Get filename from full url
Initial Tags
file
Initial Language
ActionScript 3