# Edit a variable

**URL:** <https://forum.kirupa.com/t/edit-a-variable/289423>\
**Category:** Uncategorized\
**Created:** [May 30, 2009, 2:20am UTC](https://forum.kirupa.com/t/edit-a-variable/289423 "2009-05-30T02:20:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamikaze5141](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@kamikaze5141](https://forum.kirupa.com/u/kamikaze5141)\
**Post date:** [May 30, 2009, 2:20am UTC](https://forum.kirupa.com/t/edit-a-variable/289423/1 "2009-05-30T02:20:02Z")

</div>

this my code…

var fileName = fileUrl.substr(fileUrl.lastIndexOf("/")+1, fileUrl.length);  
return unescape(fileName);  
}  
trace(this.getFileName(this.\_url));

let say i get the fileName = something\_ld.swf  
can u guys provide me some solution so that i can have fileName1 = something.swf ???  
thx…
