2 Replies Latest reply on Apr 11, 2013 1:22 PM by John Dunning

    Sharing Pages options in the Fireworks Command API

    jelaplan

      I would like to write some commands related to sharing pages. I wrote a simple command that lets me share a layer to the next page. This is nice but I'm stymied taking it further. For example, one thing that I can't figure out is

      1. Checking whether a layer is already shared to Pages. If I run my share command twice on the same layer/Page, then the second Page now has two layers of the same name that are both shared. That is really a deffect. If I hide one then the other hides too. If I could detect sharing then In some cases I would simply not share the layer. In other situations, I would unshare a layer if it is shared.

       

      I noticed in the history that there are two undocumeted API calls - excludeSharedLayer & detachSharedLayer. For example

      fw.getDocumentDOM().detachSharedLayer(2, 11);.  The arguments for this method are not apparent. The first is the layer number that is being detached but the second is not apparent. It doesn't make much sense to run these on a layer that isn't shared and in fact this brings an error so it is problematic.

       

      In the short term, I'd like to know if there are any properties or methods to detect if a layer is Page shared and ideally to what other pages it is shared. Longer term,  I hope that Adobe could update the FWAPI document to be more thorough because the presence of undocumented API methods and properties is frustrating.