Archive for the ‘Flash AS’ Category

This article explain you how to create an object which rotate around the center continiously. In this tutorial you will learn more about the center and math, sine/cos/degrees/radians. Here I am going to explain you with the action script:
First Create an object of any shape which you want to rotate around the circle. And [...]

1. Draw Animating Circle
var cnt:Number = -90; // from which degree
var radius:Number = 100;
this.createEmptyMovieClip(”circle”,this.getNextHighestDepth());
circle._x = 200;
circle._y = 200;
circle.lineStyle(1,0xFF0000,100);
xx = 100*Math.cos(-90*Math.PI/180);
yy = 100*Math.sin(-90*Math.PI/180);
circle.moveTo(xx,yy);
intervalId = setInterval(this, “executeCallback”, 5);

// function to darw a circele.
function executeCallback() {
xx = 100*Math.cos(cnt*Math.PI/180);
[...]


  • suba: $(this).addClass("active") and $(this).removeClass("hideme") does n't seem to be working in IE7, whe [...]
  • admin: @hadi: please check your code you may have deleted one "}" bracket. [...]
  • hadi: Hi, I get this error Parse error: syntax error, unexpected $end in C:\Users\acer\Desktop\xampp\h [...]
  • SF: High resolution zoom with image tiles: http://www.ajax-zoom.com [...]
  • Alonso: It seems that I didn't post my code properly sorry about that, that was not the problem however I wa [...]
Buy Stock Flash | Buy and Sell Royalty-Free Flash effects music and video files

Free web hostingWeb hosting
Display Pagerank