Importing Photoshop Files Into Flash
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.

Visitor Comments »
Comment by Spyros Papaspyropoulos | April 6, 2008 @ 10:22 am
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.
Comment by Brian | April 7, 2008 @ 7:34 pm
Brian:
can you share that script with us, because i am doint the very same thing (importing PNGs manually)
Comment by Mohammed Al-Asmar | April 16, 2008 @ 8:34 am
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.
Comment by simon | April 23, 2008 @ 4:07 pm
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.
Comment by Spyros Papaspyropoulos | May 20, 2008 @ 2:30 am
what is the use of group command in layers pallete
Comment by swarupa | July 24, 2008 @ 3:45 am
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.
Comment by Muhammad Waqas Butt | August 3, 2008 @ 10:50 am
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…
Comment by Aditya | September 3, 2008 @ 10:58 am
This is so hard i dont even understand a thing make a easier version for me to understand you make me dizzy BS.
Comment by BigMac Daddy | October 6, 2008 @ 1:04 pm
dude thats cuz you dum
Comment by russianguy | October 8, 2008 @ 12:45 pm
Thank you for this! Just what what I needed!
Comment by Jeff | November 5, 2008 @ 12:34 pm
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!
Comment by Christen | November 19, 2008 @ 2:24 pm
Be nice to have the source PSD file(s) that you started with so one could work with the products and follow your steps.
Comment by Ted Waltman | November 21, 2008 @ 2:18 pm
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.
Comment by Steve | December 3, 2008 @ 10:30 pm
[...] 4. Importing Photoshop Files Into Flash [...]
Pingback by Pushing Photoshop to the Limit: 13 Most Advanced tutorials | Link Archive | December 6, 2008 @ 5:00 pm
[...] 4. Importing Photoshop Files Into Flash [...]
Pingback by Pushing Photoshop to the Limit: 13 Most Advanced tutorials | Web Hosting and Domains | December 31, 2008 @ 3:21 pm
[...] 4. Importing Photoshop Files Into Flash [...]
Pingback by Pushing Photoshop to the limits 13 most advanced tutorials | Creative After Effects Tutorials and Showcase | January 6, 2009 @ 8:08 am
[...] I found a cool link : – Importing layers from Photosop to Flash!!! cool thing! Will try that [...]
Pingback by House of Angels » Blog Archive » My contest result | August 31, 2009 @ 12:11 am
Leave us a comment

- Dragging an Object Between Documents
- TV Scanline Effect
- Trick to the Glossy Effect
- 3D Text
- Changing Type on a Path





Photoshop
Illustrator
Indesign
Dreamweaver
Fireworks
Premiere
Flash
After Effects
Lightroom
Acrobat














