Jump to content
xisto Community
Sign in to follow this  
flash4satheesh

Move The Movie Clip In Flash Use the arrow key to move the Movie Clip.

Recommended Posts

Movie Clip

1.Create a Movie Clip and draw a Rectangle or your design in the Movie Clip.
2.Come Back to Scene 1.
3.Select the Movie Clip and set them instance name = movie.
4.Select the first Frame.
5.Press F9 and Copy Code Below and paste it.

setInterval(function () {	if (Key.isDown(Key.RIGHT)) {		setDirection(0);		_root.movie._x += 3;	}	if (Key.isDown(Key.LEFT)) {		setDirection(1);		_root.movie._x -= 3;	}	if (Key.isDown(Key.DOWN)) {		_root.movie._y += 3;	}	if (Key.isDown(Key.UP)) {		_root.movie._y -= 3;	}	updateAfterEvent();}, 10);

Demo:http://forums.xisto.com/no_longer_exists/404.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.