Jump to content
xisto Community

flash4satheesh

Members
  • Content Count

    17
  • Joined

  • Last visited

Posts posted by flash4satheesh


  1. 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

  2. Digital Time

    1.Create a Text Field and Create set them instance name = time.
    2.Select the first Frame.
    3.Press F9 and Copy Code Below and paste it.

    _root.onEnterFrame = function() {	var time:Date = new Date();	hour = (time.getHours()<=12) ? time.getHours() : (time.getHours()-12);	hour = (hour<10) ? ["0"+hour] : hour;	second = time.getSeconds();	second = (second<10) ? ["0"+second] : second;	Minutes = time.getMinutes();	Minutes = (Minutes<10) ? ["0"+Minutes] : Minutes;	_root.time.text = [hour+"."+Minutes+"."+second];};

×
×
  • 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.