How to Make an SWF File

Shockwave Flash (swf) was created by Adobe to display vector graphics, text, video and sound on the web. If you have Flash, you can easily publish animated objects as SWF files within the application. In fact, Flash generates the codes for your web page that can be added to your HTML file. Here's how to create a SWF file.

Things You'll Need

  • Macromedia or Adobe Flash, Text Editor
Show More

Instructions

  1. Creating SWF File

    • 1

      Create a new document in Flash.

    • 2

      Add your animated text, graphics or video you want to use to your Flash stage.

    • 3

      Import any graphics or text from the Flash library or an outside file that you created in an image editor (optional). Select "File/Import" from the menu to import the image.

    • 4

      Complete your animation and check that it works properly by selecting "Control/Test Movie" (shortcut: Ctrl+Enter) from the menu.

    • 5

      Save your Flash file and accept the .fla default.

    • 6

      Publish your file by choosing "File/Publish Settings" from the menu.

    • 7

      Place a check mark beside HTML and SWF in the "Format" tab.

    • 8

      Change the file names for your HTML and SWF in the text box if you so choose, and click on the yellow folder on the right to change the location for your file(s). Flash will automatically create an HTML and SWF file for you.

    • 9

      Select the HTML tab (which will display only if you placed a check mark beside HTML under the Format tab). Here you can change the Flash version, dimensions, play options, quality, window mode and alignment for your SWF file.

    • 10

      Hit "Publish" and then "OK."

    • 11

      Preview your HTML file in a web browser and check its source code. The code should look similar to this:
      <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase=";http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
      WIDTH="320" HEIGHT="240" id="MyMovieName">
      <PARAM NAME=movie VALUE="MyFlashMovie.swf">
      <PARAM NAME=quality VALUE="high">
      <PARAM NAME=wmode VALUE="transparent">
      <EMBED src="MyFlashMovie.swf" quality="high" WMODE="transparent" WIDTH="320" HEIGHT="240"
      NAME="MyMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
      PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
      </EMBED>
      </OBJECT>
      You can manipulate the HTML code for your SWF file from within the HTML code too.

    Giving Your SWF File a Transparent Background (with Flash)

    • 12

      Select the HTML tab under File/Publish Settings in Flash.

    • 13

      Click on the drop-down by "Window Mode" and change it to "Transparent Windowless."

    • 14

      Hit "Publish" and then "OK."

    • 15

      Save the file and copy the HTML code generated in Flash into any HTML pages in which you'd like to use it.

    Giving Your SWF File a Transparent Background (with HTML)

    • 16

      Open the HTML file you saved in Flash with a text editor.
      The code should be similar to:
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="somefile" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="somefile.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="somefile.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testing" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

    • 17

      Add the following code above the <EMBED> tag:
      <param name="wmode" value="transparent" />

    • 18

      Save your HTML file and preview it in a browser.

    • 19

      Reuse the code in any other HTML pages in which you want it to appear.

Tips & Warnings

  • Your web browser must support Flash for it to display SWF files.

Related Searches:

References

Comments

You May Also Like

  • How to Make SWF Files

    SWF files are built into Adobe Flash, which is a design program used to create animated films. These files are made in...

  • How to Make SWF Files

    Making SWF files, which accompany HTML files to publish a Flash website, often results automatically from saving and publishing the web file....

  • How to Create a .Swf File

    Shockwave Flash (SWF) files are compiled Adobe (formerly Macromedia) Flash files that are viewable over the web. SWF files may contain animation,...

  • How to Create an SWF Flash File

    Creating an SWF Flash file is accomplished using the Adobe Flash application. Flash files indicated by the SWF file extension are compiled...

  • How to Make an SWF File Into a URL Button

    Small Web Format (SWF) files are animation video files that are commonly used with Adobe and Macromedia Flash programs. These files can...

  • How to Create SWF For Free

    All web animation files that are exported from the Adobe Flash Professional program are stored in the SWF format. But although the...

  • How to Create a SWF From Flash Project Files

    Adobe Flash is the application that enables the creation of Shockwave Flash (SWF) files. Flash project files may contain graphics, sound, text...

  • How to Edit SWF Files

    Flash animation is the standard for Internet video. Videos on YouTube and other websites use SWF (.swf) files, which are the Web-optimized...

  • How to Create a SWF File in FrontPage

    The SWF file extension is associated with Adobe's Shockwave Flash. According to Adobe's SWF File Format Specification document, the Shockwave Flash format...

  • How to Open a Swf File

    Open a SWF file on your computer by using this step by step guide. This article will explain to you what a...

  • How to Make a Link for an SWF File

    An SWF file is the file that Flash creates after the Flash object is exported. By linking to an SWF file, you...

  • How Do I Embed a SWF File in HTML?

    After you create a Flash game or element, you need to export the file before you can upload it to a website....

  • How to Add Flash SWF Files to a Page in Dreamweaver CS4

    The way Dreamweaver handles embedding Flash SWF movies (in .swf format) to a page has changed in Adobe Dreamweaver CS4. It's still...

  • How to Make Shockwave Games

    Programming video games from scratch can be incredibly time consuming and hard to learn. Some programs, such as Macromedia Shockwave, make this...

  • How Do You Embed an SWF File Into Your Web Page?

    If you want to put a SWF Flash video or animation on your website, the HTML code required to do is incredibly...

  • How to Upload SWF Files for Free

    SWF (ShockWave Flash) files differ from FLV (Flash Video) files in that FLV files contain audio and video streams while SWF files,...

  • How to Make an FLV File Into an SWF

    FLV (Flash Video) is a popular video format used by websites ranging from Youtube to Hulu. SWF (Small Web Format) is used...

  • How Do I Add SWF Files to PowerPoint Presentations?

    Microsoft PowerPoint allows you to create slideshow presentations filled with text, images and other visual elements, such as charts, graphs and animations....

Related Ads

Featured