Subj : Frame that contains all layers? To : Kirkman From : echicken Date : Tue Aug 18 2015 06:21 pm Re: Frame that contains all layers? By: Kirkman to All on Tue Aug 18 2015 15:18:58 Ki> My question today: Is there a way in javascript to iterate over the entire Ki> rendered screen (or a flattened, rendered version of bgframe and its Ki> children)? Ki> I can iterate over those individual child frames and getData(), but each Ki> frame is separate, so where a character is transparent, I'm not getting Ki> any data from the frame below. I haven't looked, but based on what you're saying I would assume that each Frame just tracks its own data, and none (including the parent) has knowledge of what's in the others. There might already be a method for this that I don't know about. If MCMLXXIX is around, he might have some comments. For now I'll suggest: I think that we can probably add a method that will return a flattened version of each frame's .data array, with the topmost layers taking precedence over data from those below. Here's something that you can try: - Get your layers of frames set up as you've described - Call .screenshot(system.text_dir + "blah.bin", false) on the parent frame - Open text/blah.bin in an ANSI editor; column width is same as frame width was If blah.bin has the image that you're expecting (all of the contents of the frames tht were visible at the time), then that's a good start and we can move on from there. I'll make a Frame.dump method that will do what you're looking for. If not ... something else can be done. --- echicken electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230 þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com .