To center the visible part on stage, center the mask on stage. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of matt stuehler Sent: Wednesday, April 18, 2007 2:30 PM To: Flashcoders mailing list Subject: [Flashcoders] Finding the height and width of the VISIBLE area of amasked SWF
All, It looks like this has been asked before, but I couldn't find an answer. I'm creating a Flash app that loads several SWFs. Those SWFs contain use masks. I'd like to be able to find the VISIBLE height and width of those SWFs; however _width and _height return the size of ALL the masked content. In other words, if the SWF has a stage size of 400x300, and a mask of 400x300, but the total size of the SWF is 800x600 (e.g., b/c of off-stage content, or stuff that's not visible thru the mask), then _width returns 800, and _height returns 600. I can see why that's sometimes useful, but in this particular application, I need to know the VISIBLE size. For example, I'd like to be able to center the VISIBLE part of the SWF on the stage. Is there any way to figure that out? Cheers, Matt Stuehler _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

