frogive me, as i am still learning, and this might sound totally off the wall.
i need to get the filename of the movie that is being played and have it availble to me within a class.
i have a function that gets the name, but it doesnt work inside the class.
how would i get the filename of the movie that is playing from within the class and be able to use it as a variable?
this is the function i have been using to get the filename.
function movieName ()
{
var url = new String (this._url);
var p1 = url.lastIndexOf ("/") + 1;
var p2 = url.length;
return url.slice (p1, p2);
}
name = movieName();