Re: Best way to identify Element as being Flash

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Leslie Milburn" <CDB4W@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23q4bwKLaJHA.1328@xxxxxxxxxxxxxxxxxxxx
Where my problem lies is that the url
http://view.atdmt.com/CEM/iview/msnnkcem001180x150XfiXimsd100000001cem/direct;wi.180;hi.150/01
n the embedded iframe is loading a Flash object. How do I then
identify this has occurred ? I have no idea what to do at this point
!!!

You just apply the same approach recursively. You detect a mouse click
in the top-level document. You figure out which element is under the
point. If the element is not a frame or an iframe, you proceed to check
whether it's a flash movie. If the element is in fact an iframe, you a)
translate the coordinates of the mouse click into the coordinate system
of the iframe, and b) repeat the process with the iframe's document.

It's possible that, inside an iframe, the mouse click falls into yet
another, nested iframe. Then you, again, translate the coordinates
relative to that second iframe and proceed with that iframe's document.
Lather, rinse, repeat.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.