A question to Flash experts from a beginner: the flash object within a web page -
here's explanation of question:
from javascript, need reference flash player object. there 2 basic flash player versions run in browser: activex , plug-in version. activex version runs natively in internet explorer, while plug-in version used rest of browsers.
the activex player controlled object tag in html page, , can retrieve javascript reference using window. objectid objectid value of id attribute of object tag. example, if object tag's id attribute example, reference activex player window.example.
the plug-in player controlled embed tag in html page, , can retrieve javascript reference using window.document. embedname, embedname value of name attribute of embed tag. example, if embed tag's name attribute example, reference plug-in player window.document.example.
and here's question itself:
why flash player object exist window property when embeded via object tag, while, when embeded via embed tag, exists in window.document property? , modern way of getting flash player object within web page?
the answer embedded in question itself. ie uses object tags , hence swf window object when embedded object tags. rest of world uses embed tags , hence swf property of window.document them.
Comments
Post a Comment