Load sound using getDefinitionByName

Hi I read in the archives about someone trying to find an alternative to attachSound(); in as3. But attachSound has been removed. The answer was to use:

 
import flash.utils.getDefinitionByName;
 
var theSound : Class = getDefinitionByName ( "sounds_library_name") as Class;
var instance : Object = new theSound ();

if this is the case, is this still classed as if it were a sound in this sense:


theSound:Sound = new Sound();

hope that made sense.

Thanks.