Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Inserting SWF content

From: Creating a First Web Site with Dreamweaver CS4

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.

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.

Show transcript

This video is part of

Image for Creating a First Web Site with Dreamweaver CS4
Creating a First Web Site with Dreamweaver CS4

32 video lessons · 51517 viewers

Paul Trani
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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

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
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?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

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:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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.