��÷� image skew ���� script action
1.��� import �Ҿ����� �ҡ��鹤������͡ �� f8 ���͡�� movie clip
2.double click ��� mc �����������͡ �� f8 ���͡�� movie clip
3.��� scene1 ������ script action �ç movie clip �ѧ��ҹ��ҧ
4.ctrl+enter
:: Thanks..... Ivan Dembicki, 2001, [email protected], Moscow, Russia
onClipEvent (load) {
xscale = _xscale;
function skew () {
rad = Math.PI/180;
for (obj in this) {
if (typeof (this[obj]) == "movieclip") {
this[obj]._rotation = -45;
}
}
ang_x = _root.skew_x=Number(_root.skew_x);
ang_y++;
_rotation = (ang_x+ang_y)/2+45;
rang_x = ang_x*rad;
rang_y = ang_y*rad;
sin45 = Math.sin(45*rad);
_xscale = xscale*(Math.cos(rang_x)+Math.sin(rang_y))/Math.sin(((ang_x+ang_y)/2+45)*rad)*sin45;
_yscale = xscale*(Math.sin(rang_x)+Math.cos(rang_y))/Math.sin(((ang_x+ang_y)/2+45)*rad)*sin45; }
}
onClipEvent (enterFrame) {
skew();
}


Hosted by www.Geocities.ws

1