Monday, 16 November 2009

actionscript for making a image or object scale in size, by showing size resaults

Making It Work...
Copy the ActionScript below.

ball.onpress=function()
{ball.startDrag(false,5,186,150,186);d=1;};

ball.onrelease=function()
{stopDrag();d=0;};

onmousemove=function()
{if ((_ymouse>212) || (_ymouse<184))
{stopDrag();d=0;}
else{
if (d==1){
disp=ball._x;
block._width=disp;
block._height=disp;}

}};

No comments: