Reading the Flash Movie filename dynamically from within the movie

Is there a way to grab the name of the .swf file from inside the Flash movie?  Like "this._name" (which I already tried and it did not work) so that I can read in the name of the .swf in order to match it with the appropriate text file?
acekzAsked:
Who is Participating?
 
mr_asphaltConnect With a Mentor Commented:
_url shows the url of the movie

if you just want the filename of the movie, not the path, use something like
_url.substring(_url.lastIndexOf("/") + 1)
0
 
blue-genieCommented:
no
0
 
mr_asphaltCommented:
Um, yes, actually.

try the following:
trace(_url);
trace(_url.substring(_url.lastIndexOf("/") + 1));
0
 
blue-genieCommented:
ok
0
 
mr_asphaltCommented:
Hi acekz,

did this answer your question?
0
All Courses

From novice to tech pro — start learning today.