Posted By

arpo on 05/04/10


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

Mephysto
socialflasher
Tex
thastyle


Get filename from path


 / Published in: ActionScript 3
 

  1. var fileUrl:String = "assets\\downloads\\myFile.jpg";
  2. fileUrl = fileUrl.split("\\").join("/");
  3. var fileName:String = fileUrl.substr( fileUrl.lastIndexOf("/")+1, fileUrl.length);

Report this snippet  

You need to login to post a comment.