/ Published in: ActionScript 3
![](/img/icon_sav.png?v3)
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
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)