[MX04] Truncate a variable with AS

hi all, if i have a variable called textVar and that variable always holds the path to external swf files to be loaded into a loader component and that path always starts with swf/ and then the file name, ie. swf/movietoload.swf, is there a way of then getting that value into another variable but without the swf/ part so I just have the file name?

Secondly, can you associate a media controller to an swf file that is loaded into a loader component rather than a media display component?

Thank very much… A