AS2 Floating Effect


/ Published in: ActionScript
Save to your folder(s)

simple as2 floating effect..


Copy this code and paste it in your HTML
  1. mc.onEnterFrame = function()
  2. {
  3. var currentDate:Date = new Date();
  4. mc._y = 100 + (Math.cos(currentDate.getTime() * 0.002) * 25);
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.