a clip does not appear when I add it to a certain block of code

Hello.

I want a movieclip appear in a drag and drop game. When you drag the right object and drop successfully, an animation is called the library.

The animation is not displayed. However, when I use the same code at the beginning of my program it appears so it is not part of the code that is the problem. In addition, a trace trace statement then it executes the code. WHY doesn't he appear?

private void 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);

Based on the name of the object, one thing to consider is time.  If your PointBurst object is be the animation, it does not wait for to add you to the scene to do.  He will lead as soon as it is instantiated, if she should end somehow invisible, that's what you'll see, nothing.

Tags: Adobe Animate

Similar Questions

  • Microsoft Security Essentials uninstall when it does not appear in my Add / Remove programs but it is always in Program files on my computer.

    I have McAfee Total Protection 2011 installed on my laptop, and he had a conflict with Microsoft Security Essentials. The McAfee Installer supposed to run add & remove programs to uninstall MS Security Essentials. After you have uninstalled the MS Security Essentials program seen listed in Add & Remove Programs, I discovered another instance of Microsoft Security Essentials in my program files and it does not appear in my Add / Remove programs. I can't perform an installation of McAfee Total Protection 2011 until it is deleted, but it's still in Program files on my computer. How to rid my computer of the MS Security Essentials (clean) program

    After you have uninstalled the MS Security Essentials program seen listed in Add & Remove Programs, I discovered another instance of Microsoft Security Essentials in my program files and it does not appear in my Add / Remove programs.  How to rid my computer of the MS Security Essentials (clean) program

    To remove completely Microsoft Security Essentials from the computer try to run the fixit cleaning tool by clicking on the following link: