Action Script 3.0 Code For Making A ball Movie Clip Object move along x-axis :
-------------------------------------------------------------------------------------------------------
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME,ballmove);
function ballmove(e:Event):void
{
ball_mc.x+=5;
}
-------------------------------------------------------------------------------------------------------
Put this above code in the scripting window(F9 Key) in flash and then press Ctrl+Enter to compile and execute the swf document.You will see the ball object moving along x-axis but it crosses the swf window and remains invisible.In the next tutorial, I will teach you how to stop the move the ball only in the specified window size.
nice tutorial.... waiting for the next one...
ReplyDeletecorel tutorial: http://www.entheosweb.com/tutorials/coreldraw/brochure_design.asp
ReplyDelete