The Viewer Window
Create the object to be viewed, panned, and zoomed in on
Create/import an object...photo, diagram, figure, floorplan or whatever you have that you want to be seen in the viewer window. We'll call this clip (library name) 'object2View' for this tutorial. We'll also assume we're placing the clips on the _root level. Here's a list of things to check when creating it to avoid problems later.
- Take note of the clip's size (height and width). For this example it will be 600 pixels wide by 440 pixels tall (the size of the cropped/sized photo and of the previous piece I based this off of...)Note: make sure it is 100% and do not resize it with the scale tool from the _root level or via the transform/properties panel
- Make sure it is registered at 0,0 on it's own internal stage. (i.e. When you select it with the arrow tool from the _root level...it's crosshairs should be in the upper-right corner)
- Take note of where it is placed on the _root (you can do this on other levels, but we're sticking with root here) We are goint to put it at 0,0.
- Name the clip's instance and note that down/remember it. We'll call this one 'figure'. Why 'figure'? Because the first one I developed was done for figures in a manual...and I don't feel like chasing and changing all the code just yet.
Mask the viewed object
Create a mask using the layer above the layer this clip is on. Make the mask slightly larger or the same size as your clip and note that down. We'll do it the same size for simplicity sake.