7



CAS 175
Intro to Flash - Useful Tips

Vector vs. Bitmap (Raster)

The following links provide a list of file formats (file extensions) for vector and bitmap images:

Vector File Formats

Bitmap File Formats

 

Banner Ad Samples

Here are some interesting sample banner ads for you to consider if you need some creative inspiration for the banner ad you create in Project 3:

HeyBannerBanner.Com

 

Instructions for Inserting Flash into a Web Page

To insert a Flash animation file (.swf) into a Web page you must add a section of HTML to the body tag of the Web page. The following is the minimum code you should use:

<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="100%" height="100%">
</embed>
</object>

Unfortunately, the minimum code will not be sufficient if the user of the Web page doesn't have the Flash plug-in installed in her or his Web browser. In that case, it's best to use code that's generated by Flash.

To generate the code with Flash, chose File -> Publish

This will create a simple Web page that includes the appropriate script and noscript tags required to display your Flash animation in most Web browsers. It will also insert HTML that causes your Web browser to prompt you if you would like to install the free Flash player if it isn't currently used in your browser.

Then you should copy the section of HTML produced by Flash from the object opening to closing tag only, and paste this into the body section of your Web page. This can also be inserted in a table cell or a div in the body section.

 

Instructions for Uploading Files to Student Web Server

Using My Computer/Windows Explorer

To upload files to the Student Web Server (SWS) you can use the following address in My Computer (Windows only) or any browser that allows FTP:

ftp://sws.pcc.edu/student/CAS175_gkerr_13986/

The easiest way to use the above address is to copy and paste it into the browser address bar.

This address will take you directly to the folder for the CAS 111D class you are enrolled in this quarter.

You will then be required to put in your Login Name and Password to be able to place files in your private folder. You will not have to log in to place files in the shared folder.

Once you can see your current folders on the SWS, you can use Windows Explorer to drag and drop new or updated Web page files into your folders on the SWS.

After you have placed your Web page files on the SWS, you can view them in a Web browser by going to this address first:

http://www.sws.pcc.edu/student/CAS175_gkerr_13986/

 

Instructions for Using Actionscript 3.0 to Create Links

This is the Actionscript 3.0 code required to link to another Web page from a button with an instance name of button1_btn:

var button1_url:URLRequest = new URLRequest("http://www.pcc.edu");

function button1(event:MouseEvent):void
{
navigateToURL(button1_url, "_blank");
}
button1_btn.addEventListener(MouseEvent.CLICK, button1);

 

This is the code required to make a contact button (instance name is contact_btn) that can prepare an e-mail message:

var contact_req:URLRequest = new URLRequest("mailto:your.name@pcc.edu");

function contact(event:MouseEvent):void
{
navigateToURL(contact_req, "_blank")
}
contact_btn.addEventListener(MouseEvent.CLICK, contact);

 

You can combine the functions of the link and contact buttons into like code types, like this:

var button1_url:URLRequest = new URLRequest("http://www.pcc.edu");
var contact_req:URLRequest = new URLRequest("mailto:your.name@pcc.edu");

function button1(event:MouseEvent):void
{
navigateToURL(button1_url, "_blank");
}
function contact(event:MouseEvent):void
{
navigateToURL(contact_req, "_blank")
}
button1_btn.addEventListener(MouseEvent.CLICK, button1);
contact_btn.addEventListener(MouseEvent.CLICK, contact);

 

 

 

Back to CAS 175 Course Information

Return to Greg Kerr's Homepage

For more information contact the instructor, Greg Kerr , at

Copyright © 2007-01-21
Greg Kerr