Perspective in Flash
I demonstration of how actionscript can be used to simulate perspective.<br />Ibad
| Author URL | minimalfonts.googlepag... | |||
| Listing URL | none | |||
| Downloads | 2643 | Views | 16965 | |
| ibadmd | ||||
|
User ratings for Perspective in Flash. |
||||
More listings by ibadmd
WriteOn text... |
Easing Scrol... |
XML Drop Dow... |
Alpha Glow E... |
Visual Time ... |
Collapsible ... |
Comments
You need to LOGIN to post a comment.
I, I'm running it i Flash Player 9, it's very easy to do, some changes in code:
_root.centrey = 800;
_root.centrex = 400;
_root.onEnterFrame = function() {
valeur_a = (_root._ymouse-_root.centrey)*0.5;
valeur_b = valeur_b+valeur_a;
valeur_b = valeur_b*0.8;
_root.nuves.peli_nuves.block1._y = (_root._ymouse-_root.centrey)*0.1;
_root.nuves.peli_nuves.block2._y = (_root._ymouse-_root.centrey)*0.2;
_root.nuves.peli_nuves.block3._y = (_root._ymouse-_root.centrey)*0.3;
_root.nuves.peli_nuves.block4._y = (_root._ymouse-_root.centrey)*0.4;
_root.nuves.peli_nuves.block5._y = (_root._ymouse-_root.centrey)*0.5;
_root.nuves.peli_nuves.block1._x = (_root._xmouse-_root.centrex)*0.12;
_root.nuves.peli_nuves.block2._x = (_root._xmouse-_root.centrex)*0.14;
_root.nuves.peli_nuves.block3._x = (_root._xmouse-_root.centrex)*0.16;
_root.nuves.peli_nuves.block4._x = (_root._xmouse-_root.centrex)*0.18;
_root.nuves.peli_nuves.block5._x = (_root._xmouse-_root.centrex)*0.2;
};




