Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.
Your file was successfully uploaded.