Soccer 2008 Olympics News
Soccer 2008 Olympics News
Group Standings
http://footy.webnode.com/soccer-olympics-2008-group-standings/
2008-08-06 05:26 2008 Olympics Soccer Schedule Olympic Socce Schedule Date/Time Olympics Event 2008 Aug 6 5:00 AM ET ...
—————
2008-07-17 14:34 2008 Olympics Pollution Danger Beijing Is Beijing Pollution a Danger to athletes' health? The air is often thick with pollution in Beijing, a city of 11 million. When there is no rain or wind, ozone and fine dust accumulate, often to a rate that is two or three times the...
—————
2008-07-02 22:37 CHN host nation NED the winner of UEFA U-21 Championship 2007 SRB the runner-up of UEFA U-21 Championship 2007 BEL the fourth of UEFA...
—————
2008-07-02 18:33 Group A Team Pld W D L GF GA GD Pts Côte d'Ivoire 0 0 0 0 0 0 ...
code snip
this.onEnterFrame = function() {// creating the date object and pulling out the current minutes and hours clockDate = new Date(); minutes = clockDate.getMinutes(); hours = clockDate.getHours(); alarmScreen.text = hours+":"+minutes;};
function getdistance(x, y, x1, y1) { var run, rise; run = x1-x; rise = y1-y; return (_root.hyp(run, rise));}function hyp(a, b) { return (Math.sqrt(a*a+b*b));}MovieClip.prototype.reset = function() { //specify the width and height of the movie width = 300; height = 200; //------------------- var dist, norm; this.x = this._x; this.y = this._y; this.speed = Math.random()/2; this.targx = Math.random()*width; this.targy = Math.random()*height; dist = _root.getdistance(this.x, this.y, this.targx, this.targy); norm = this.speed/dist; this.diffx = (this.targx-this.x)*norm; this.diffy = (this.targy-this.y)*norm; this._x = Math.round(Math.random()*width); this._y = Math.round(Math.random()*height); this._xscale = this._yscale=temp; //setting initiaion position //cx = this._x; //cy = this._y; //this.speed = Math.random()/200;}
MovieClip.prototype.move = function() { if (_root.getdistance(this.x, this.y, this.targx, this.targy)>this.speed) { this.x += this.diffx; this.y += this.diffy; } else { this.x = this.targx; this.y = this.targy; if (!this.t) { this.t = getTimer(); } if (getTimer()-this.t>1000) { this.reset(); this.t = 0; } } this._x = this.x; this._y = this.y;};
No comments:
Post a Comment