Forum Topic: Deleting from display list [AS3]

(33 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

MrCrinkle

Reply To Post Reply & Quote

Posted at: 9/24/09 04:59 PM

MrCrinkle EVIL LEVEL 10

Sign-Up: 01/26/04

Posts: 340

I have a class that extends movieclip and I made an instance of said class, then added it to the stage using addChild(). If I use removeChild() will it delete the instance entirely, or will it just remove it from the display list? If it deletes it is there a way to keep the object but prevent it from being seen?

If you are reading this then you must be really bored.

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 9/24/09 05:03 PM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,560

At 9/24/09 04:59 PM, MrCrinkle wrote: I have a class that extends movieclip and I made an instance of said class, then added it to the stage using addChild(). If I use removeChild() will it delete the instance entirely, or will it just remove it from the display list? If it deletes it is there a way to keep the object but prevent it from being seen?

removeChild will as you should have guessed, just remove it from the display list

My social worker says im special!

BBS Signature

None

MrCrinkle

Reply To Post Reply & Quote

Posted at: 9/24/09 05:19 PM

MrCrinkle EVIL LEVEL 10

Sign-Up: 01/26/04

Posts: 340

Alright, thanks.

If you are reading this then you must be really bored.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 11:37 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!