Posts Tagged ‘ all ’

simple way to removeChild all

Hi friends,

Mostly AS3 developers, make a dummy container to remove all child. In your particular class its not necessory by code.

while(holder.numChildren)
{
    holder.removeChildAt(0);
}

stopAllSounds in as3

Hi friends,

In AS2 To stop all sounds playing in the movieĀ  is easy by stopAllSounds().

Now in AS3, what is the way to make this?.. Here I have given you the solution.

First you have to import the particular class.

import flash.media.SoundMixer;

.

Then call the static method when you required this.

SoundMixer.stopAll();