/ Published in: ActionScript 3
Efficiently returns the filename by a given URL
Expand |
Embed | Plain Text
public static function getFilenameByURL( $url:String ) : String { return $url.slice( Math.max( $url.lastIndexOf('/'), $url.lastIndexOf('\\') ) + 1 ); }
You need to login to post a comment.
