View Full Version : stupid question
smeared
December 2nd, 2008, 01:38 PM
if i do
var cur = this.getchildbyname("whatever");
removeChild(cur);
cur = null;
is that going to null the var cur, or the var cur represents??? how would I null that var as well if it doesn't.. thanks..
scottc
December 2nd, 2008, 01:49 PM
try..
trace("cur: "+cur);
trace("whatever: " + this.getchildbyname("whatever"));
I'm not sure if it stores it as a reference or not.. so hopefully that would answer your question.
(i think display objects do get stored as references...)
thread name reminded me of this quote lol.
"there is no such thing as a stupid question, only stupid people" - Mr. Garrison (south park)
smeared
December 2nd, 2008, 02:00 PM
yeah.. it traces to the object I want to null so i guess when I null it that works.. thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.