Linkage

You are accustomed to using the the Library to drag objects onto the stage. But in this project, you are going to have ActionScript "drag" the objects for you at runtime.

You know from experience that a MovieClip (or button) needs to have an instance name in order to target it with ActionScript. How do you assign an instance name to a MovieClip that isn't on the stage? Well, you use the Library to access the Linkage Properties and assign an Identifier (which is like an instance name):

  1. Locate the bee MovieClip in the Library
  2. Right-Click on bee and choose Linkage

The Linkage Properties dialogue box pops up. This is where assign an "Instance Name":

  1. Select Export for ActionScript
  2. Type bee in the Identifier box (It should be there by default)
  3. Click OK