Tutorial 1 : Making a ball move in FLASH using Action Script 3.0


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.

2 comments:

  1. nice tutorial.... waiting for the next one...

    ReplyDelete
  2. corel tutorial: http://www.entheosweb.com/tutorials/coreldraw/brochure_design.asp

    ReplyDelete