<%@LANGUAGE="VBSCRIPT" %> <% Response.CacheControl = "no-cache" %>
Lab 7 (Due 11:00 PM Friday)

Materials to turn in on the server

  • In your Lab07 folder:
    • Lab07part1.php
    • Lab07part1.fla
    • Lab07part1.swf

Expand/Collapse Section ImageWebsite Basics

Description: Students will build on the foundations of a constructing a simple Flash web site from the previous lab. By following the directions below...students should be able to integrate programmatic tweens, optimization, and basic XML.

 

Expand/Collapse Section ImageExercise Specifications - Part 1

  1. Programmatic Tweens
    Programmed tweens are excellent not only for saving on file size, but also for handling all sorts of dynamic interactions where a reaction to an event may require an item on the screen to move in a number of unspecified directions.

    These next steps will only cover a very basic use of tweens. Keep in mind that if you move on to advanced actionscripting, it may be helpful to look into more advanced methods of tweening, as Adobe's own tweening engine is quite slow

    • Open up your lab 6 file (or you can use this solution file) and name it Lab07part1.fla
    • Clear all the frames after the first on the button layers
    • On frame 1 of the actions layer, add this code

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 

Expand/Collapse Section ImageExercise Specifications - Part 2

  1. Optimization
    Assuming your graphics have been optimized following the material covered in lecture, and that you are loading in external swfs in logical places, optimization is a simple matter of tweaking final export settings on the file. These next steps will show you how to optimized our current file

    Some ways to cut down on other size problems are detailed in the lecture material. Pay attention to the settings applied to your images and sounds - these can have a huge effect on the final size of your file, and can usually be tweaked to smaller sizes without a huge loss in quality
     
    • Click file -> publish settings
    • In the window that pops up, click 'flash'
    • Under options, check 'Omit trace actions'. This will speed up any flash file that is tracing out information in large amounts.
    • Also click 'Protect from import' and specify a password beneath the options list.
    • Finally click 'generate size report'.
    • Publish the movie.
    • You will be presented with output detailing the size output on different frames. Pay special attention to where there are especially large numbers - these are the ones you will want to double-check and try to pair down the data contained in the frame

 

Expand/Collapse Section ImageExercise Specifications - Part 3

  1. XML
    XML is a great way to pass data into flash. Thankfully, getting it into flash is just as easy as loading in an external file ( although some extra parsing is needed ), so here is an example of how to load in some XML info for your about page.
     
    • Download info.xml to the same folder as your lab 7 folder.
    • Open it up and change some of the values within the tags, so you understand the structure of the XML file.
    • Return to your lab 7 file.
    • Select the actions on the first frame of the page1 section.
    • Replace the code currently there with this.

Grading

This Lab 10 pts
Total Possible 10 pts