Hi,
I'm creating a simple sound component that plays a sound file in the library, it takes V_Source parameter as the linkage name in the library, and V_Button parameter as the name of the button that will play the sound.

var soundClass = flash.utils.getDefinitionByName(this.V_Source) as Class;
var currentlyPlayingSound = new soundClass();
var currentSoundChannel = new Object;
MovieClip(parent)["this.V_Button"].addEventListener(MouseEvent.CLICK,PlaySound);
function PlaySound(event:MouseEvent) {
currentSoundChannel = currentlyPlayingSound.play();
}



I have this error:

TypeError: Error #1010: A term is undefined and has no properties.
at SoundRepeater_fla::Symbol1_1/frame1()