# Getting a Flash movie name

**URL:** <https://forum.kirupa.com/t/getting-a-flash-movie-name/43353>\
**Category:** flash\
**Created:** [February 21, 2004, 9:53am UTC](https://forum.kirupa.com/t/getting-a-flash-movie-name/43353 "2004-02-21T09:53:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HTuttle](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@HTuttle](https://forum.kirupa.com/u/HTuttle)\
**Post date:** [February 21, 2004, 9:53am UTC](https://forum.kirupa.com/t/getting-a-flash-movie-name/43353/1 "2004-02-21T09:53:34Z")

</div>

(Okay, the response was so quick and helpful with my last question I thought I’d post another)

Is there an efficient way to get the name of the Flash file you are in via actionscript? i.e. from within ‘My\_Flash.swf’ I want to get THAT name. (Something like ‘myName = the movieName’ in Director)

All I could find so far was the \_url property which holds the entire path string and also requires the extra code to check for and clean up any odd character replacements. (i.e. My\_Flash\_Fancy\_Thing.swf becomes My%5FFlash%5FFancy%5FThing.swf in a url)
