As developers who live and breathe Photoshop, we always hated how hard it was to move Photoshop assets into Flash, but Adobe Flash CS3 has seduced us and transformed hate into passionate love. Specifically, we’re head over heels about Flash’s new ability to import Photoshop files, keeping layer (and most other) info intact. And it works with Illustrator files, too! Our first test drive of this feature began when we used Photoshop to mock up a website design for a (fictitious) watch company called Time & Tide.

[This article was co-authored by Richard Harrington]

STEP 1 Open Background Images
Begin by opening two images in Photoshop CS3. Use the Move tool (V) to drag one image into the other. With the top layer active (surf in our example), click on the Add Layer Mask icon at the bottom of the Layers panel to add a mask, then choose the Gradient tool (G), and draw a black-to-white gradient on the mask so that the top layer fades into the bottom layer. Next, add a Hue/Saturation adjustment layer (click on the Create New Adjustment Layer icon and choose Hue/Saturation) to bring both images into the same color space.


CREDIT: ©PHOTOSPIN

STEP 2 Duplicate Adjustment Layer
Our goal is to bring the surf’s transparency data into Flash so we can animate it fading in over the burlap, but never completely covering it. But before we do that, we have to deal with the fact that adjustment layers don’t import into Flash, so select the Hue/Saturation adjustment layer and duplicate it (Command-J [PC: Ctrl-J]). Then, drag the duplicate to immediately above the bottom layer (burlap in our example) so that both layers have their own copy of the adjustment layer.

STEP 3 Merge the Adjustment Layers
Click on the top adjustment layer and merge it with the image layer below (Command-E [PC: Ctrl-E]). Do the same with the duplicated adjustment layer.

STEP 4 Import a Watch; Draw Separate Hands
Next, drag in a watch or clock image. Using Free Transform (Command-T [Ctrl-T]), skew it to add the illusion of perspective and add a drop shadow (click on the Add a Layer Style icon and choose Drop Shadow). Because we want to animate the hands spinning in Flash, paint out the actual hands and recreate vector hands (shape layers drawn with the Pen tool), with each hand on its own layer. Use the Ellipse tool to create a shape layer for the small black circle in the center. To keep things organized, place the hand layers in a group called “hands” (what else?).


CREDIT: ©PHOTOSPIN

STEP 5 Add Text Layers for Links
Now let’s use the Type tool (T) to add layers of text that we’ll later use for links in Flash. We added the links as text layers because it’s vital that these remain editable since our clients constantly change their minds (sound familiar?) about the linked-to pages. Place all of your text in a layer group called “links” and then place this group in a group called “text.”

STEP 6 Add Logo Layer with Outer Glow
Finally, add a couple more text layers to create a logo. With one of the text layers active (“Time ide” in our example), click on the Add a Layer Style icon at the bottom of the Layers panel and choose Outer Glow. When you’re done adjusting the settings to your liking, click OK. Go to File>Save As and save the file as a PSD somewhere on your hard drive.

STEP 7 Import File to Flash
Flipping over to Flash, import the file by choosing File>Import>Import to Stage and selecting the PSD from your hard drive. The new Flash Import dialog will open. You’ll see this same dialog when you import any PSD or AI file. It contains useful options for ensuring that each layer imports the way you want.

STEP 8 Select Import Options for Link Layers
Begin by selecting all the link text layers (click the top text layer in the links layer group and Shift-click the bottom text layer). Then, check the Editable Text option so that we’ll later be able to make edits using the Flash Text tool.

STEP 9 Import Logo Text Layers
For the logo text layer (“Time ide” in our example), choose the Flattened Bitmap Image option to maintain the outer-glow effect. (We did the same with the watch layer to preserve its drop shadow.) We chose to import the ampersand (&) layer as Vector Outlines to maintain a small file size and so that we could edit it later with the Flash Pen tool.

STEP 10 Import Hands as Vector Shapes
Knowing that we plan to animate the watch hands in Flash, choose one of the shape layers in the Import to Stage dialog and select the Editable Paths and Layer Styles option. This automatically saves the layer as a movie clip in the Flash library (you must do this for most tween animations in Flash). The Import to Stage dialog also lets us create Instance Names and even choose Registration points (the pivot point for rotations). Repeat for the other shape layers in the hands layer group.

STEP 11 Lossless or Lossy Compression
When selecting the import options for the image layer that contains the layer mask, choose Lossless for Compression—this is vital for maintaining the transparency and soft edge that we added in Photoshop. Lossless images are imported as PNGs, which support transparency. (Lossy images [the other option] import as JPEGs, which works fine for our other image layer that doesn’t contain any transparency.) Also, select the Bitmap Image with Editable Layer Styles option.

STEP 12 Importing Layer Transparency
It’s important that you select both of these options—Lossless compression and Bitmap Image with Editable Layer Styles—to import the layer transparency. If you don’t, you’ll get a really ugly, jagged edge (as shown here).


STEP 13 Set Stage Size
Finally, check the Set Stage Size to Same Size as Photoshop Canvas option. This will resize the Flash movie so that it fits your PSD dimensions exactly. The Place Layers at Original Position option (which we left checked) ensures that the layers stay where we placed them in Photoshop. If you uncheck this option, Flash will center all the layers.

STEP 14 Let the Flash Begin
Click OK to close the Import dialog, and as you can see, Flash maintains our layer stack, including the groups, which it magically transformed into layer folders. You can now use the motion tweening in Flash to animate the hands moving around and the background fading in. You can also change any of the text links (such as the word “email” to “contact”) using Flash’s Text tool.

Now we can all fall to the floor and thank Adobe for shaving hours off our work time.

Share & Enjoy


Similar Articles

 

  1. Spyros Papaspyropoulos (Reply) on Friday April 4, 2008

    Thanks for explaining the Lossless / Bitmap thing. I was doing only the 1st and was having a hard time importing smooth transparencies. Could you tell me what happens after we have imported and need to change something in an imported graphic? Can I get back to the screen with all the importing options and make changes, or do I have to follow the same procedure over again?

  2. Brian (Reply) on Friday April 4, 2008

    Spyros… Nope.

    In fact, the lack of updating a Photoshop import completely prevents my company from using the tool.

    We export out of Photoshop in a PNG format and import into Flash. We even wrote a script for Photoshop that calls JSFL in Flash for faster importing.

    When the client requests an image change or the designer wants to tweak something, they can edit the PNG and just “update”. Typically this does the job with maybe a slight stage adjustment.

    Photoshop means importing everything again, or at least those layers. Then you have to manually replace them on the stage. Really, it just adds more time.

    I also have some issues with the way the Photoshop importer crops (or lack of) images with layer effects.

  3. Mohammed Al-Asmar (Reply) on Friday April 4, 2008

    Brian:
    can you share that script with us, because i am doint the very same thing (importing PNGs manually)

  4. simon (Reply) on Friday April 4, 2008

    hey. thanks very much for the tutorial. i get this whole thing i’m having trouble on the next stage. I.E. turning layers into buttons and giving them actions.

  5. Spyros Papaspyropoulos (Reply) on Friday April 4, 2008

    Thanks for the reply Brian. I suppose Adobe has to work on that if they wan t this feature to really work in every day production.

  6. swarupa (Reply) on Friday April 4, 2008

    what is the use of group command in layers pallete

  7. Muhammad Waqas Butt (Reply) on Friday April 4, 2008

    I did the same procedure but when i import adobe file in flash, no dialog box open and file import as Bitmap. I’m using falsh professional 8.

  8. Aditya (Reply) on Friday April 4, 2008

    Thank you for this…I was trying to get a few clouds I made in PS into Flash, and I was getting those ‘ugly, jagged edges’. I didn’t know about the settings…

  9. BigMac Daddy (Reply) on Friday April 4, 2008

    This is so hard i dont even understand a thing make a easier version for me to understand you make me dizzy BS.

  10. russianguy (Reply) on Friday April 4, 2008

    dude thats cuz you dum

  11. Jeff (Reply) on Friday April 4, 2008

    Thank you for this! Just what what I needed!

  12. Christen (Reply) on Friday April 4, 2008

    Thank you!!! I’m just getting into Flash, but have been a designer for years… You included the steps I needed to get my project done — ahead of time!

    I just discovered this site and will definitely be using it and recommending it to others for tips and tricks!

    Kudos!

  13. Ted Waltman (Reply) on Friday April 4, 2008

    Be nice to have the source PSD file(s) that you started with so one could work with the products and follow your steps.

  14. Steve (Reply) on Friday April 4, 2008

    CS3 did not have the ability to update Photoshop docs in Flash and — heavy sigh — CS4 does not either. If you have a sizable company using Flash this make this feature slightly more than a novelty.

    It would be better if you still had ImageReady’s great Export-layers-to-Files feature. But alas, Adobe took that away from us and shows no sign of ever bringing it back. We’re stuck with their lame Javascript for exporting layers which is slow and gives no real options for file naming.

  15. [...] 4. Importing Photoshop Files Into Flash [...]

  16. [...] I found a cool link : – Importing layers from Photosop to Flash!!! cool thing! Will try that [...]

  17. Andy (Reply) on Friday April 4, 2008

    Aaargh! No update of psd in flash cs4. I just discovered this the hard way. Is it coming in cs5?

  18. Andy (Reply) on Friday April 4, 2008

    Ok – hang in – you can update the individual layers with png24 files. Phew! Got to keep all the animations, alpha levels, etc

  19. webdeluxe (Reply) on Friday April 4, 2008

    Thanks was just looking for this for my new project, if only adobe could be more user friendly… the programs are all from the same family!!

  20. website designers in Chennai (Reply) on Friday April 4, 2008

    Its great tutor about this import photoshop into flash.its very useful to us.i search this …hear i get step by step explanation about layers and all.thanks for sharing.



Planet Photoshop Photoshop World Kelby Training Lightroom Killer Tips NAPP Scott Kelby