Return to Snippet

Revision: 34843
at October 29, 2010 01:40 by alptugan


Initial Code
private function removeExtAndGetFileName($url:String):String
		{
			var extRemoved : String = $url.slice($url.lastIndexOf("/")+1,$url.lastIndexOf("."));
			return extRemoved;
			
			//trace(removeExtAndGetFileName("http://www.mydomain.com/images/myFilename.jpg"));
			// OUTPUT: myFilename
		}

Initial URL
http://www.alptugan.com

Initial Description


Initial Title
Get Filename from url path and Remove extension

Initial Tags


Initial Language
ActionScript 3