Hey everybody,
I’m having some problems with sound-control in my current project.
I’m placing movieclips on the stage at certain times with AS3 and when they are rolled over with the mouse they are removed. They are removed when this function is called:
function killObject(e:MouseEvent)
{
removeChild(DisplayObject(e.target));
skullCursor.gotoAndPlay(2);
}
However some of the movieclips have sounds attached to them. For some reason these sounds play even before the movieclip has been placed on the stage by my AS3 code. And when the movieclips are removed, the sounds do not stop playing.
Any ideas how I can solve this?
Thanks in advance.