Archive for June, 2005

Control SWF rendering in Contribute

Here’s the bits to add a new menu item called "Flash Preview" with the "Play/Stop all" control in Contribute.

Paste wherever you would like the menu item to appear in the menu hierarchy. I placed it in-between the "Table" and "Help" items in the ccmenus.xml file found in:

C:\Program Files\Macromedia\Contribute 3\Configuration\Menus

<menu name="_Flash Preview" id="Flash_Preview">
<menuitem name="Play _All" key="Cmd+Opt+Shift+P" enabled="dw.getFocus() == ‘document’" command="dw.getDocumentDOM().playAllPlugins()" id="DWMenu_View_Plugins_PlayAll" />
<menuitem name="S_top All" key="Cmd+Opt+Shift+X" enabled="dw.getFocus() == ‘document’" command="dw.getDocumentDOM().stopAllPlugins()" id="DWMenu_View_Plugins_StopAll" />