all groups > flash (macromedia) > august 2005 >
You're in the

flash (macromedia)

group:

how to return finame of loaded movie


how to return finame of loaded movie abyjoe
8/20/2005 9:07:35 PM
flash (macromedia):
hi

i want to get the filename of the movie that is loaded, can anyone tell me how to do that.

Re: how to return finame of loaded movie urami_
8/21/2005 12:00:00 AM


[quoted text, click to view]

flash does not see file names, it sees levels or targets so you can't get the name
directly but you can use '_url' to return the file path and than using substring
obtain just the characters after the last slash "/" as it always appear in paths
on server or drive.
For example :

trace(_url.substr(_url.lastIndexOf("/")+1));



--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: how to return finame of loaded movie abyjoe
8/21/2005 10:14:56 AM
AddThis Social Bookmark Button