32
1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 repared by Patrick Tsang 26/09/03

1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

Embed Size (px)

Citation preview

Page 1: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

1

INE 1020 Introduction to Internet Engineering

Tutorial 4 All about Lab 3

Prepared by Patrick Tsang 26/09/03

Page 2: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

2

Overview

Lab 3 Information How to do image maps More on HTML Macromedia Flash tutorial

Page 3: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

3

Lab 3

Deadline: 23:59:59 on 10th October Email submission including:

1. The URL of your webpage containing the image map

2. The URL of the page containing the frame-by-frame animation

3. The tweened animation executable as an attachment

4. Answers to the questions

Page 4: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

4

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

Page 5: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

5

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 diff

erent pages You’ll need “Image Map”

Page 6: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

6

Image Map

Page 7: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

7

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>

Page 8: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

8

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.ht

m"><area shape="circle" coords="124,58,8" alt="Venus"href="venus.htm">

</map>

Page 9: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

9

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>

Page 10: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

10

Page 11: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

11

More on HTML -- “Target”

Target & “A” Tag<a href=“page.htm” target=“______”>link</a>

1. “_blank” -- New browser window2. “_parent” -- Parent frame3. “_self” -- The frame itself4. “_top” -- Top level frame5. “[framename]” -- Specified frame

Page 12: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

12

Macromedia Flash

A Macromedia Product Small file size, high quality animation Produce interactive, animated movies Interactive (web) applications stunning graphics and multimedia effect

s www.macromedia.com

Page 13: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

13

Page 14: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

14

Timeline, where you arrange your movie

Timeline, where you arrange your movie

Drawing area, where you display your movie

Drawing area, where you display your movie

Page 15: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

15

Assign actions to each frame to control the flow

Assign actions to each frame to control the flow

Page 16: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

16

Many actions to satisfy your need

Many actions to satisfy your need

Page 17: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

17

Symbol is like a character in a film, instances can be generated from a character

Symbol is like a character in a film, instances can be generated from a character

Page 18: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

18

Different types of symbol have their own capabilities

Different types of symbol have their own capabilities

Page 19: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

19

Each instance can have their own actions

Each instance can have their own actions

Page 20: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

20

play() and stop() control the start/stop

play() and stop() control the start/stop

Page 21: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

21

By using goto() you can ask the movie to jump to a specific frame

By using goto() you can ask the movie to jump to a specific frame

Page 22: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

22

.fla is the source file

You’ll need to export it to .swf for viewing

.fla is the source file

You’ll need to export it to .swf for viewing

Page 23: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

23

How to do tweening?How to do tweening?

Page 24: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

24

Create a symbol in the library, put an instance of it on a keyframe as a starting point

Create a symbol in the library, put an instance of it on a keyframe as a starting point

Page 25: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

25

Here we create a Graphic symbol

Here we create a Graphic symbol

Page 26: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

26

Now in another timeslot, insert a keyframe to indicate the end of the tween

Now in another timeslot, insert a keyframe to indicate the end of the tween

Page 27: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

27

In this ending frame, modify the instance a bit, like dragging it to another position

In this ending frame, modify the instance a bit, like dragging it to another position

Page 28: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

28

Go back to the starting frame, select “Motion” tweening

Go back to the starting frame, select “Motion” tweening

Page 29: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

29

You should see an arrow from start to end, indicating the whole time interval of the tween

You should see an arrow from start to end, indicating the whole time interval of the tween

Page 30: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

30

Before you can view your work outside Flash, you need to publish it

Before you can view your work outside Flash, you need to publish it

Page 31: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

31

Depending on what you want,

you can just generate a .swf, or together with a HTML file.

You can also generate a .exe file

Depending on what you want,

you can just generate a .swf, or together with a HTML file.

You can also generate a .exe file

Page 32: 1 INE 1020 Introduction to Internet Engineering Tutorial 4 All about Lab 3 Prepared by Patrick Tsang 26/09/03

32

You should be able to find them here

You should be able to find them here