/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 }
Comments
