Email Updates RSS Subscribe
Line

This blog is created and maintained by the technical team at Hook in an effort to preserve and share the insights and experience gained during the research and testing phases of our development process. Often, much of this information is lost or hidden once a project is completed. These articles aim to revisit, expand and/or review the concepts that seem worth exploring further. The site also serves as a platform for releasing tools developed internally to help streamline ad development.

Launch
Line

Hook is a digital production company that develops interactive content for industry leading agencies and their brands. For more information visit www.byhook.com.

Line

Utility – Deep Copy Panel

Line
Posted on March 24th, 2010 by Jake
Line

Download Hook Deep Copy

Lets say you are an epic flash button maker, and you have just finished your latest masterpiece. This is good news, everyone in the office rejoices, flood waters recede, the hungry get fed, and world peace overcomes the planet. (I wasn’t kidding about epic). Your new piece of hotness is released to the client. They love it, of course. However, no one could have predicted exactly how much they would love it. They have decided to change ALL of the buttons in the project to match the new amazingness. The fear of impending pain courses through every bit of plumbing in your body. How on earth are you going to take all of those carefully placed keyframes, gradient masks, and undocumented flash tricks, and create new buttons that are all slightly different from that epicly complex set of timelines?

The answer? Download our new Deep Copy Panel, thats how.

This panel will allow you to select an item in the library, and make a fully unique copy of all or part of it and all of its children.

Essentially this means you can then take that unique duplicate, go into it, and mess with its innards without causing any ill effects to the original. Using the “include/exclude selected items” radio buttons, you can choose to make a unique copy of everything in the tree, or just parts of the tree.

The image on the left, is how the library started. The image on the right is the result of selecting the “mc_TestSource” library item, and doing a deep copy on its entire tree. As you can see it goes into each child of the MovieClip, and makes a copy of each piece individually. Now you can take “mc_TestSource_new” and do whatever you like with it and not have to worry about what it will do to the original.

Usage
The first thing you need to do to is select one item in the library. Once you have done that, click the “Select library Item” button. This will load that item into the panel and display its hierarchy in the item tree. The currently loaded library item’s name will also be displayed in the text field under that button.

From here you have some choices to make. Firstly, you need to fill in a new suffix and/or prefix. When a unique copy is made, the newly made library items will have the new suffix and prefix in the name.

The next part is optional, but it does allow for a bit more specific control over the copy. With the “Include and Exclude Selected” radio buttons, you can choose to copy parts of the source. This could be useful if you wanted to make a unique copy, but wanted to share a background image for example. You could pick “Exclude Selected” and select the background MovieClip from the tree. Now when you click “Make Unique Copy” all of the items except for the background clip will have unique copies. Therefore if you change the background clip in the new copy, it will also update in the original. If you have Excluded Selected set, and do not have anything selected in the tree, then every child will get a unique copy made, this is the default setting. Conversely if you have “Include Selected” selected, it will only make a unique copy of items that are selected in the tree.

Once all of your options are set, you can simply click “Make Copy” to set things in motion. Please be aware that if you have clips with many layers or a long timeline sequences, this process could take a bit of time. Its also worth noting that the copies will be placed inside of the same folders in the library that the original of the clip resides.

If you are interested in seeing how some of this flash panel stuff is done, please check out our other posts on the subject: Hook Outliner and Hook ReNamer

That about covers it, we hope this will help get a few people a few minutes of their lives back to do something interesting with. As always, if you have any issues or suggestions or whatever, please leave them in the comments of this post.

Good luck!

Line
4 Responses to “Utility – Deep Copy Panel”
  1. Olle S. says:

    Hi! Seems amazing.

    But cant get it to work in CS5. Won’t show up in “Other Panels”.

    mxp will go in, but don’t show up in Flash.

    /olle

    • Jake says:

      Couple of quick things to check:
      1) If you installed it with flash open, you will need to restart flash
      2) Make sure in the Extension Manager that the panel is “enabled”
      3) See if this file exists: C:\Users\YourUserName\AppData\Local\Adobe\Flash CS5\en_US\Configuration\WindowSWF\HookDeepCopy.swf

  2. Great post thanks for sharing a informative article keep it up

  3. [...] Essentially this means you can then take that unique duplicate, go into it, and mess with its innards without causing any ill effects to the original. Using the “include/exclude selected items” radio buttons, you can choose to make a unique copy of everything in the tree, or just parts of the tree. The image on the left, is how the library started. The image on the right is the result of selecting the “mc_TestSource” library item, and doing a deep copy on its entire tree. As you can see it goes into each child of the MovieClip, and makes a copy of each piece individually. Now you can take “mc_TestSource_new” and do whatever you like with it and not have to worry about what it will do to the original. (FULL ARTICLE) [...]


Leave a Reply

*

Line
Line
Pony