Within a Chrome extension, how can I inject items into the context menus of 3rd party flash objects?
Is it possible to simply inject items using JavaScript?
Is it possible to wrap the players in a container .swf that adds our context menu item along with the items included by the original swf?
Thanks so much for your ideas and inspiration!
Edit: To be clear, what I’d like to do with my extension is add a context menu item to any 3rd party Flash program. So for instance, if a user visits YouTube, I’d like to add my own menu item along with YouTube’s custom items.
The easiest solution is to do exactly what you and @felipemaia suggested – make use of a loader SWF that adds (or modifies) the context menu of its loaded SWF.
The original (loaded) SWF:
And the loader SWF:
Note that if you need finer grain control you can also modify the context menu on individual InteractiveObject subclasses: