Graphics Unleashed
Vehicle Templates for Vehicles Wraps CorelDRAW Brushes CorelDRAW Books and Videos
Free Graphics Blog Seamless Textures Vector Clipart for CorelDRAW and Illustrator
CorelDRAW X7 Info | CorelDRAW Unleashed | Seamless Textures Unleashed | Vehicle Templates Unleashed

From CorelDRAW to Macromedia Flash, A Simple Example

© 1999 by Foster D. Coburn III. All Rights Reserved.

If you've created graphics for the Web, you've probably noticed that you have two choices; GIF and JPEG. Sure, there are other formats, but those two are dominant. And they are also both bitmap formats. This tutorial is going to cover another popular format and it works with vectors rather than bitmaps. I'm talking about Macromedia Flash.

Vectors and the Web

Before I get into the step-by-step tutorial about how to create a Flash file, let me first explain why vectors can be useful and why we're going to choose Flash.

Let's first go over the difference between bitmaps and vectors. With a bitmap, the image is broken up into a series of pixels (picture elements). So for a Web graphics that is 150 pixels wide and 150 pixels high, you have a total of 22,500 individual pixels. Each of those pixels can hold any of 16.7 million colors for JPEG files and any of 256 colors for GIF files. So even for a small file, there is a lot of data to be stored. Each of those formats contains a compression routine that makes saving the data much smaller than if it were stored uncompressed. Another limitation is that resizing the file may give undesirable results. If you enlarge the file, it becomes pixelated or stairstepped. Making the image smaller will throw out detail.

But for many things on the Web, bitmaps work great. A Web artist can tweak the images to make the files small while still getting great results. And best of all, the browsers support both formats.

Then there are vectors. If you want to create a shape in vector format, you only have to describe a few data points along a path. Then you can fill the path with any color. So for simple shapes, vector files can be much smaller in size. And they can be scaled to any size you want without a loss of quality.

Programs like Adobe Photoshop, Corel PHOTO-PAINT, Metacreations Painter and JASC Paint Shop Pro are all dedicated to working with bitmaps. Software dedicated to vectors includes Adobe Illustrator, CorelDRAW and Macromedia Freehand.

So we've decided that for a particular Web graphic that a vector image will work best. Maybe it is because the file will be smaller. But another great reason is that a vector image will print text at a much better quality than a bitmap. So our example will be a map where the various roads are all labeled with small text. The text wouldn't be readable as a bitmap, but it will print beautifully as a vector.

One flavor of vector files that works well on the Web is Macromedia Flash. There is the product Flash, which we'll be using a bit later. But there is also the Flash file format which is open to any developer who wants to support it. Both of the major browsers include support for Flash files and a recent study showed that over 100 million people already have Flash support in their browser. So I guess you could say it is pretty darned popular.

Since we'll be using Macromedia Flash for our project, you might want to download the 30-day evaluation version so that you can work along. If you like it, you can order it from within the evaluation version. If you don't like it, it was free.

Another vector format is getting a lot of attention these days. It is called Scalable Vector Graphics (SVG) and is backed by many of the big players in the software industry. Right now, there is no software that will create a file in SVG format and there are no browsers that can display it. Yet companies like Corel have indicated that they have no plans to directly support Flash as they will wait for SVG. That might be great in a couple of years, but it doesn't help us now. So we'll carry on in Flash!

Preparing the Map

I'm not going to spend a lot of time describing how the map was created, but I'll give you a few tips for preparing a file. Since we know that the file is headed for the Web, we definitely want to use RGB colors. The best way to do this is to use one of the Web-safe palettes that are supplied with CorelDRAW. I always use the Netscape Navigator palette as the Microsoft Internet Explorer palette contains sixteen extra colors that only work in Windows. That is the only difference between the two. You'll also want to keep the image fairly simple. Don't use a bunch of the special effects like Lens because they won't translate well to other file formats.

Once you've got your image finished, we'll need to export it to Adobe Illustrator format. Because Illustrator doesn't have all the features of CorelDRAW, there are some things that just won't export correctly. So if your goal is to create an illustration that you want converted to Flash, try not to use things like pattern fills, transparency and bitmaps. This limitation is frustrating, but it is just something we have to live with.

In CorelDRAW 9's Adobe Illustrator Export dialog box shown at right, there are a few specific settings that are important. First, choose Adobe Illustrator 7.0 format. This flavor of Illustrator supports more CorelDRAW features than the other versions and it works just fine with Flash. If you're using a PC, select PC. For those of you on the Mac, choose Macintosh. Export the Text as Text. This will retain the fonts in your file. Note that we have made sure that all other settings are unchecked. The exception is Include placed images and it is grayed out since we didn't use any images (bitmaps) in the file.

Moving Into Flash

We're going to assume that the file does not need to be edited in Flash. So all we need to do is import the Illustrator file and Publish it to a Flash Movie.

To import the file, choose File | Import. As it comes in, you'll notice that all objects are selected. This is indicated by a gray box around each object. Click away from the objects and everything becomes deselected. If you needed to do minor editing, you could select an object and do the editing here in Flash. We're conquer that in a future tutorial.

Now we need to save the file so choose File | Save. This is so that we can work with it later if needed. But for using it on the Web, we'll need to Publish it. Select File | Publish Settings to get the dialog box shown below.

We want to create three files. A Flash file (SWF), an HTML file (HTML) and a GIF image (GIF). So make sure all three of those checkboxes are checked. We want the SWF as it is the vector image that will be displayed on the Web. The HTML file contains the code needed to display the SWF file. Lastly, the GIF file will be used for visitor's whose browsers can't display the SWF file. You'll see that other files can be created, but we'll just stick with these three for now. Now let's move to the Flash tab of the dialog box shown below.

You might wish to change the Load Order, but I've left it at the default of Bottom Up. This just determines how the image will be drawn. The important change is the Version. It defaults to Flash 4 and we want to change this to Flash 3. Since Flash 4 is fairly new, we want to choose the older format that can be seen by a much larger percentage of users. Now let's move to the HTML tab as shown below.

Here we've kept with the default settings. I suggest that you start with these settings. If you find that you want to change something, go back and change the settings. Lastly, let's move to the GIF tab shown below.

Here you control the settings of the GIF file you created. You might be asking why we are even creating a GIF file. It is really only done as a backup. If someone doesn't have the Flash plug-in and doesn't want to download it, the GIF will display in its place. Again, we stuck with the defaults except for Interlace which we've checked. Go ahead and click OK.

The last step is to choose File | Publish. This will create the SWF, HTML and GIF files you requested. You can either use the HTML file as is to display the Flash file on the Web or you can paste the code into another HTML file.

So that you can see the difference between vector and bitmap, you'll find copies of the Flash file (top image) and the corresponding GIF file (bottom image) below. Note that some of you will see the GIF file twice if you don't have the Flash plug-in. To really see the difference between the two, print this page out. The GIF image will be much more pixelated and the Flash file should look fantastic.

If you aren't convinced by what you see, then look at the file sizes. The Flash file is 7K and can be scaled to any size you want. The GIF file is 14K.

Graphics Unleashed

Foster D. Coburn III's Tutorials & Reviews

Other Tutorials by Foster D. Coburn III

Graphics Unleashed
Last Updated January 12, 2000.

Our Favorite Products

Roboform for Passwords · GoodSync for Backup · MysticThumbs and ROMCat · Save Money With RingCentral · iolo System Mechanic Pro · ZoneAlarm Security Suite · AfterShot Pro · WeBuilder · SocialOomph · Feedblitz · Paymo

Shop at Corel eStore Shop at Amazon

HDMI Cables · USB Cables · Surge Protectors/USB Wall Plates · Dual USB Car Charger · FM Transmitter for Tablets/Phones

Artwork, Brushes & Add-Ons Free Stuff Training Unleashed Sites

Bonus Content Packs
Clipart Unleashed
1400+ CorelDRAW Brushes
CorelDRAW Stitch Brushes
QR Codes Docker
CNC Software

Vehicle Templates-1000s free
Signs by Design
Clipart deSIGN
Design Base (free)
ROMCat | eCut
CoCut Standard & Pro

Cave Creek Geek
Graphics Unleashed Blog
Free Publications

CorelDRAW X6 Training DVD
X5 DVDs | X4 DVDs
Jeff Harrison's FUNdaMENTALs
CorelDRAW Training | On-Site
Hire the Geek

CorelDRAW Unleashed
Graphics Unleashed Blog
Seamless Textures Unleashed
Vehicle Templates Unleashed
Web Design Solutions Unleashed

Seamless Textures Collections
Volume 1: Wood · Volume 2: Metal · Volume 3: Stone · Volume 4: Terrain · Volume 5: Fire and Ice · Volume 6: Ground and Plants · Volume 7: Floor, Wall and Bricks · Volume 8: Fiber · Volume 9: Tile and Path · Volume 10: Marble · Volume 11: Crystals · Volume 12: Technology · Volume 13: Metal II · Volume 14: Diamond Plate · Volume 15: Circuits · Volume 16: Aliens · Volume 17: Floor & Wall · Volume 18: Tiles · Volume 19: Brick · Volume 20: Wood II · Volume 21: Technology II
Unleashed Productions 21 Year Anniversary
Follow Subscribe to Blog Facebook Twitter Google+ LinkedIn YouTube Amazon Corel Subscribe

Copyright © 1995–2015 Unleashed Productions, Inc., All Rights Reserved.