/ Published in: ActionScript
simple as2 floating effect..
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mc.onEnterFrame = function() { var currentDate:Date = new Date(); mc._y = 100 + (Math.cos(currentDate.getTime() * 0.002) * 25); }