# Can movie clip display its own file name?

**URL:** <https://forum.kirupa.com/t/can-movie-clip-display-its-own-file-name/57813>\
**Category:** flash\
**Created:** [July 16, 2004, 10:20am UTC](https://forum.kirupa.com/t/can-movie-clip-display-its-own-file-name/57813 "2004-07-16T10:20:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mu\_fu\_yoshi](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mu\_fu\_yoshi](https://forum.kirupa.com/u/mu_fu_yoshi)\
**Post date:** [July 16, 2004, 10:20am UTC](https://forum.kirupa.com/t/can-movie-clip-display-its-own-file-name/57813/1 "2004-07-16T10:20:38Z")

</div>

hi

i need script and some instructions how to:  
display my movie file\_name  
in example “movie-1.swf” or just “movie-1”  
inside of my movie-1.swf  
in the text field or something …

it is my movie own file name  
but not writen directly by me from keyboard  
but writen by script so if i change file name  
it will be updated automaticly in the movie  
after movie is reloaded  
so file movie-1.swf renamed to movie-2.swf  
will display text “movie-2swf” or just “movie-2”

thx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 10:39am UTC](https://forum.kirupa.com/t/can-movie-clip-display-its-own-file-name/57813/2 "2004-07-16T10:39:46Z")

</div>

```auto

it = _root._url.split("/").reverse()[0].split(".")[0]
trace(it)

```

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 7:47pm UTC](https://forum.kirupa.com/t/can-movie-clip-display-its-own-file-name/57813/3 "2004-07-19T19:47:58Z")

</div>

## big thx !!! it works almoast perfect exept that it displays %2D in stead of

but i can accept that  
once again big thx
