320 likes | 494 Views
INE 1020 Introduction to Internet Engineering. Tutorial 4 All about Lab 3. Prepared by Patrick Tsang 26/09/03. Overview. Lab 3 Information How to do image maps More on HTML Macromedia Flash tutorial. Lab 3. Deadline: 23:59:59 on 10th October Email submission including:
E N D
INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03
Overview • Lab 3 Information • How to do image maps • More on HTML • Macromedia Flash tutorial
Lab 3 • Deadline: 23:59:59 on 10th October • Email submission including: • The URL of your webpage containing the image map • The URL of the page containing the frame-by-frame animation • The tweened animation executable as an attachment • Answers to the questions
Lab 3 • Entitle your email with “[INE 1810][Lab 3][<8-digit student id>]” • Work that can not be accessed: Zero mark • You are allowed to submit TWICE only, third and onwards submission will be ignored • Grading – refer to lab menu
Image Map • You have an image on a page • What does this HTML code mean? • <a href=“page.htm”><img src=“image.gif”></a> • What if: • Clicking on different region brings you to different pages • You’ll need “Image Map”
Image Map <html> <body> <p>Click on one of the planets to watch it closer:</p> <img src="/images/planets.gif" width="145" height="126" usemap="#planetmap"> <map id="planetmap" name="planetmap"> … … </map> <p><b>Note:</b> We use both an <b>id</b> and a <b>name</b> attribute in the map tag because some versions of Netscape don't understand the id attribute.</p> </body> </html>
Image Map <map id="planetmap" name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun“ href="sun.htm"> <area shape="circle" coords="90,58,3" alt="Mercury“ href="mercur.htm"> <area shape="circle" coords="124,58,8" alt="Venus"href="venus.htm"> </map>
More on HTML -- “Target” • Target & Frame <html> <frameset cols="120,*"> <frame src="tryhtml_contents.htm"> <frame src="tryhtml_frame_a.htm" name="showframe"> </frameset> </html>
More on HTML -- “Target” • Target & “A” Tag <a href=“page.htm” target=“______”>link</a> • “_blank” -- New browser window • “_parent” -- Parent frame • “_self” -- The frame itself • “_top” -- Top level frame • “[framename]” -- Specified frame
Macromedia Flash • A Macromedia Product • Small file size, high quality animation • Produce interactive, animated movies • Interactive (web) applications • stunning graphics and multimedia effects • www.macromedia.com
Timeline, where you arrange your movie Drawing area, where you display your movie
Symbol is like a character in a film, instances can be generated from a character
By using goto() you can ask the movie to jump to a specific frame
.fla is the source file You’ll need to export it to .swf for viewing
Create a symbol in the library, put an instance of it on a keyframe as a starting point
Now in another timeslot, insert a keyframe to indicate the end of the tween
In this ending frame, modify the instance a bit, like dragging it to another position
You should see an arrow from start to end, indicating the whole time interval of the tween
Before you can view your work outside Flash, you need to publish it
Depending on what you want, you can just generate a .swf, or together with a HTML file. You can also generate a .exe file