View Full Version : Checking if a displayobject is on the display list
Ordinathorreur
August 3rd, 2007, 07:28 AM
Just wondering if you guys knew the best method for checking if an object is on the displaylist.
At the moment I am checking if stage is not null but that feels a little hacky. :-/
senocular
August 3rd, 2007, 08:19 AM
Thats about it right there. You could check for root too... or stage/root.contains(yourInstance) (assuming you already have access to stage or root)
Ordinathorreur
August 3rd, 2007, 09:03 AM
Cool, thanks Senocular
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.