a movie clip doesn't appear when I add it in a certain block of code
Hi.
I want a movieclip to appear in a drag and drop game. When you successfully drag the right object and drop it then an animation is called from the library.
The animation doesn't appear. However, when I use the same code at the beginning of my programme it does appear so it's not that part of the code that is the problem. Also, a trace statement does trace so it is running the code. WHY doesn't it appear?
private function mouseUpCheckDrag(e:MouseEvent):void
{
e.currentTarget.stopDrag();
if (this.currentBubble.hitTestObject(this.dragTarget))
{
if (currentBubble && currentBubble == e.currentTarget)
{
pointBurst.x = 300;
pointBurst.y = 300;
addChild(pointBurst);
trace("POINTBURST");
currentBubble.visible = false;
removeChild(currentBubble);