Where do you assign to the mp3try variable to be able to use its getSongTitle method, or is that a Shared method? If it is Shared then you should strictly be using the class name to identify it as such. If it's not, then that's your problem.