Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Inserting SWF content


From:

Creating a First Web Site with Dreamweaver CS4

with Paul Trani

Video: Inserting SWF content

Another thing you might consider adding to your website is Flash content. Since this is the web, I really would like some movement, maybe some interactivity, whatever the case may be. I want to take advantage of what Flash brings to the table. Say for instance this page, I want to really add a Flash file up at the top, an SWF file and again it's made it Flash CS4 Professional and I want to put it right up at the top, just to add simple animation that's going to add sort of a nice feeling to this page.
please wait ...
Watch the Online Video Course Creating a First Web Site with Dreamweaver CS4
2h 41m Beginner Sep 16, 2009

Viewers: in countries Watching now:

Creating a First Web Site with Dreamweaver CS4 shows the basics of doing just that—building a first web site. Adobe Certified Instructor Paul Trani walks through the important steps of creating a web site from concept to publishing, using Dreamweaver CS4. He teaches how to create basic web pages, add text and image content, use Cascading Style Sheets for design and layout, create a photo gallery, and even check the final site for browser compatibility. He also demonstrates how to create a contact form to encourage viewer feedback on the site. Exercise files accompany the course.

Topics include:
  • Exploring the Dreamweaver workspace for first-time users
  • Linking to external web pages and sites
  • Improving the presentation of text and images on the site
  • Building a layout using Cascading Style Sheets
  • Making navigation reusable across multiple pages
  • Displaying content using the Accordion widget
  • Creating a contact form and sending data from it
  • Making the final site search engine-friendly
Subject:
Web
Software:
Dreamweaver
Author:
Paul Trani

Inserting SWF content

Another thing you might consider adding to your website is Flash content. Since this is the web, I really would like some movement, maybe some interactivity, whatever the case may be. I want to take advantage of what Flash brings to the table. Say for instance this page, I want to really add a Flash file up at the top, an SWF file and again it's made it Flash CS4 Professional and I want to put it right up at the top, just to add simple animation that's going to add sort of a nice feeling to this page.

In fact, I want to add an SWF file to all of these pages. There is going to be a different one in the About page, another one at the top of the Portfolio page, and then another one on top of the Contact page at the very top. That's what I want to do, really just jazz up my page with some SWF content and how I'm going to do that is I actually want that SWF file to appear above this content div.

I'm going to go to Split View and right above this content, right in here, that's where I want to insert SWF. Now, I could just as easily insert it just like I would an image, but in this particular case, I'm showing you that you can actually point to a place in the code and insert content as well. So in this case, I'm not going to insert an image. I'm going to go to down to Media and I'm going to locate SWF.

I'm going to select SWF and I'm going to go out to my Images folder and I'm going to locate this index.SWF, which is of course going on the Index page. So with that SWF selected, I'm going to click Choose and then I get a similar dialog box as I do when I import an image, which is give it a title. What this SWF file says is "Jane Doe Travel Writer and Photographer." If I needed to have certain access keys because there is content the user can interact with, I might want to add access keys or a certain tab index, but there isn't. There's just an animation.

Select OK and what it does is it adds in the SWF. In fact, look at all of this code that Dreamweaver wrote for me. It wrote all of this code, but if I switch to Design View, you can see this SWF right there. Let's check this out and see what it looks like. Let's just go to File > Preview in Browser and go to Firefox. I'm first asked to save changes to my page. I'm going to click Save and what I get when I save this page, since there is SWF content on it, it's telling me that this SWF is also using these other two files.

It creates this Scripts folder and it puts that content in there, there is SWF and this JS file as well. So, when it comes time to upload this, I need to make sure I upload these items to my server. So just be mindful that it makes those files for me and sure enough, there is my animation. In fact you just had this sort of nice little butterfly that's animating there, but this is SWF and again you get the alternate text popping up as well.

But I'm not crazy about this blue. It kind of breaks the design. It's just a big blue box. This SWF actually has a transparent background, but I need to tell this webpage to display the background as transparent. So, let me close that browser and let me select this SWF and down here, for the properties of this SWF, I can change the Window Mode to Transparent.

With that changed to Transparent, I can save this page and I can preview it in the browser and you can see it makes the background transparent. It really integrates this design well with my page. So, that's looking really good. In fact again, I want to do that across the board for the About page. I want to go to Split View and make sure I'm dropping in this SWF just above this content div. With my cursor there, I can Insert > Media > SWF and locate that above.SWF created.

Click Choose. About Jane Doe. That's what this SWF says. It adds all of this code and again, I can go to do Design View and you can see it here. I can change the Window Mode to Transparent, save my file, preview it in a browser and you can see this animation now. It's beautiful, works out pretty well. You can see these little dots sort of pulsing as well. So, it works out well as far as livening up a page.

Portfolio again, it's going to be the same process of just below the Body tag, before the div id content, I'm going to insert an SWF and I'm going to locate the portfolio.SWF file. Select Choose, give it a title, Portfolio of Jane Doe, select OK and it writes all of that code. Now notice when I save this file, it doesn't ask me or tell me that it needs this other two files because those other two files you saw earlier are already there, but again, I need to select this and make sure that Window Mode is set to Transparent, save it, preview it in the browser and we can watch this animation, which cycles through images.

Okay, the last one is going to be the Contact.html. Again. Split View. I want to drop it right in here, Insert > Media > SWF Contact > Contact. Contact Jane Doe, just like that. For my last this SWF file, I'm going to change the Window Mode to Transparent, save my file and then preview it in a browser one last time.

And then there is that animation. So, again SWF content is a great way to liven up any site and really give it not only animation but this SWF file can have interactivity, whatever I want it to have. So, I encourage you to take advantage of Flash when it comes to creating a website because it really will elevate your design as well.

Find answers to the most frequently asked questions about Creating a First Web Site with Dreamweaver CS4 .


Expand all | Collapse all
please wait ...
Q: After creating the website as instructed in the tutorial, and uploading the site to the internet, the website does not seem to work for every browser. How can one make sure that the website will work for all browsers?
A: An important step when creating a website is to check for browser compatibility. To do so in Dreamweaver, go to Window > Results > Browser Compatibility. Click the Play icon in the left corner then go to Settings and target the browsers you¹re after. Then hit the Play button to run it and check the page that’s open. If there’s an issue, best-case scenario, it should show you what the issue is and link out to a solution. Worst case is that it’s a pretty unique issue, in which case further troubleshooting would be needed.

Q: The background image is tiling, instead of being one large image. How is this corrected in Dreamweaver?
A: This can be corrected by using a larger image, something around 1024x768 that will fill up most of the monitor space. The issue is that the background image is just too small. Note that tiling of the background image can be turned off in the CSS Panel, but that would only result in a single small image. So it’s better to just use a larger image for the background.
Q: When trying to import SWF content, I get a message: “This file is outside the root folder of site ‘xxxxx’ and may not be accessible when you publish the site.” What is causing this?
A: Make sure your SWF file (and all files you put on a page) are located in your local site. Basically make sure you set up a local site in the site panel. It will ask where to put your local site on your computer. Just make sure you SWF is in that folder and you won’t get that error.
 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating a First Web Site with Dreamweaver CS4.

Return to your organization's learning portal to continue training, or close this page.


OK

Upgrade to View Courses Offline

login

With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts.
lynda.com provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now
 

A trusted source for knowledge.

 

We provide training to more than 4 million people, and our members tell us that lynda.com helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.