Cartoon Channel Super Genius
Shiva Flash Game
Super Genius Blidget
Sunday, July 27, 2008
NHL Hockey shop
greatest hockey player Buffalo Sabres Ryan Miller Chicago Blackhawks Colorado Avalanche Joe Sakic New York Rangers Wayne Gretzky Ottawa Senators Ray Emery Philadelphia Flyers Simone Gagne CCM Darcy Tucker Replica Classic Zack Parise Legends Series Figure Cam Neely Jaromir Jagr Home Guy LaFleur Edmonton Oilers Road Detroit Red Wings Original Six Hockeytown Jordan Stall Mug Lamp Glass Stainless Steel Macho Sheldon Souray Boston Bruins New Jersey Devils NHL Anaheim Ducks Chris Chelios Pavel Bure Jason Blake Rick Nash Dominik Hasek John LeClair Joe Thorton San Jose Sharks Ron Francis Jeremy Roenick Jocelyn Thibault Jewelry 10k Gold Pendant Los Angeles Kings Team Canada Brian Leetch Series Martin Brodeur Purse license plates Atlanta Thrashers RBK Composite Stick Sale KOHO Carolina Hurricanes Columbus Blue Jackets Ko Florida Panthers Nashville Predators New York Islanders Phoenix Coyotes Vancouver Canucks Washington Capitals International Mike Bossy Team USA Tour Elbow Pads Junior Ice Easton Stealth S1 U-shaped Mission Fuel 75 Mylec Ice Pro Mission Intake Helmet Inline Street Goalie Bag Junior Roller Comp 100 Autographed Hockey Stick Montreal Canadiens 50 goal season hat tricks 100 goals Reebok Hockey clear acrylic HOF 91 Gordie Howe signed Mr. Hockey Model Stick Goaltender Set Franklin SX Roller sports products Nike Minnesota Wild Jersey Authentic RBK EDGE sticks helmets Pads Collectibles Pittsburgh Pengiuns Al Arbour eyeglasses holofoil Photo Bobby Orr McFarlane The Goal mesh lining Dri-FIT Junior Bauer 4500 Helmet Cage Combo Mask Combo H-90C Skates Lake Placid Boys Adjustable edge-hardened hockey adjustable Girls edge-hardened blade Pants Supreme 10 Youth Senior defenseman
Subscribe to:
Post Comments (Atom)
flash 8 random movement animation
About Me
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;};
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