How to list available callbacks opened by flash element

Is there a way to request an inline flash element to determine the available methods that can be executed on it via JavaScript?

Edit: It seems like in IE it's just like

for ( i in flashNode ) { alert(i); } 

After clicking repeatedly, they will list some of the last members.

Still unable to determine this in Firefox.

+4
source share
2 answers

While callbacks can be obtained by listing the <object> DOM node in IE, they are mixed with all other DOM node properties, and they cannot be programmatically highlighted without saving a list of known properties, to compare them against, and then accept the difference between two sets.

This approach is doubtful, since properties can be arbitrarily added to any DOM node. Worse, it only works in IE. Firefox (and possibly others) does not return callbacks as the <object> DOM node property.

+2
source

I believe that it works the same in FF and other browsers, but you may need to get a link to your swf element differently than IE.

IE will use an object tag, usually with id, and ff / safari / etc will use the embed tag, and since you do not have to be the same identifier on two elements, people usually use the name attribute instead of the id attribute in the embed tag .

If you use something like SWFObject to embed your swfs, then you should only get one or the other (object or embed), and depending on what is written, it will have the id attribute specified with what you specify so that you could iterate over the object.

+1
source

Source: https://habr.com/ru/post/1286797/


All Articles