Inserting SWF content
Video: Inserting SWF contentAnother 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.
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.
- 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
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 .
Here are the FAQs that matched your search "" :
- 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.
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.