Hi Nathan. Thanks to answering me.

The sound really stoped, but if If put a EnterFrame function inside a ball
starting a trace (for example), it continue working inside a function.
But the sound was a sample. the object still working hidden in memory.
Do you have any ideia how to destroy an object with sounds, functions etc?

Thanks again!


On Mon, Oct 25, 2010 at 3:54 PM, Nathan Mynarcik <[email protected]>wrote:

> import flash.media.SoundMixer;
>
> SoundMixer.stopAll();
>
> Nathan Mynarcik
> [email protected]
> www.mynarcik.com
>
> <http://www.mynarcik.com/feed/rss.xml>
> <http://www.twitter.com/NMynarcik>
> <
> http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
> >
>  <http://www.linkedin.com/in/nathanmynarcik>
>
>
>
>
> On Mon, Oct 25, 2010 at 1:37 PM, m...@rcello <[email protected]>
> wrote:
>
> > Hi Folks!
> >
> > I have a doubt of how to remove a movieClip from the stage using
> > removeChild.
> > I put some sample code in this message and the mc 'ball' has a sound in
> it.
> > The process to attach a movie clip on Stage works fine! Also the process
> to
> > remove but...
> >
> > Why does the sound still play without the object on Stage?
> > What can I do to remove it really from the memory?
> >
> > var ball:MovieClip = new Ball();
> > ball.x = ball.y = 100;
> > addChild(ball);
> > stage.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
> > function onClick(evt:MouseEvent):void {
> >    stage.removeEventListener(MouseEvent.CLICK, onClick);
> >    this.removeChild(ball);
> >    ball=null
> >    trace(ball)
> > }
> >
> > If somebody help me to fix it and continue my job, I'll be very thankful!
> >
> > --
> > Marcelo
> > -----------------------------------------
> > Email - Msn - GTalk
> > [email protected]
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Marcelo
-----------------------------------------
Email - Msn - GTalk
[email protected]
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to