You are on page 1of 2

LAB 8

BEFORE

The static of eye.

The position of eye


change by follow the
The
direction of cursor.
AFTER
SOURCE CODE:

Action Layer:

startDrag("/GerakMata",true,30,30,350,350);

stop();

Gerak Mata Layer:

x=getProperty("/GerakMata",_x);

y=getProperty("/GerakMata",_y);

xkiri=164-x;

ykirikanan=141-y;

xkanan=306-x;

setProperty("/MataKiri",_x,164-(xkiri/5));

setProperty("/MataKiri",_x,141-(ykirikanan/5));

setProperty("/MataKanan",_x,306-(xkanan/5));

setProperty("/MataKanan",_y,141-(ykirikanan/5));

CONCLUSION:

By the of this lab, I know how to make the direction of eye by follow the cursor by
insert the given coding in labsheets. In the given coding, we should set the property
of mata kiri and mata kanan and give the value to drag the gerak mata layer.