PDA

View Full Version : Post Your Clipboard, 2



nobody
April 21st, 2003, 09:39 PM
I saw a thread about this a while back and I thought it was a pretty cool idea, so why not do it again

Post Your Clipboard:

karins not speshil but everyone else is speshil so that makes her speshil to be not speshil or something cool like that.

lol, my friends profile..

nobody
April 21st, 2003, 10:17 PM
rain._visible = false;
amountOfRain = 100
moveMe = function () {
this._x += this.dx;
this._y -= this.dy;
this._alpha -= 2;
if (this._y>400) {
this.dx = Math.random()*3;
this.dy = Math.random()*-8-4;
this._alpha = 100;
this._x = Math.random()*550;
this._y = 0;
}
if (this._x>550) {
this.dx = Math.random()*3;
this.dy = Math.random()*-8-4;
this._alpha = 100;
this._x = Math.random()*550;
this._y = 0;
}
};
for (i=0; i<amountOfRain; i++) {
nm = "rain" add i;
rain.duplicateMovieClip(nm, i);
scale = Math.random()*80+50;
_root[nm]._xscale = scale;
_root[nm]._yscale = scale;
_root[nm].dx = Math.random()*3;
_root[nm].dy = Math.random()*-8-4;
_root[nm].onEnterFrame = moveMe;
_root[nm]._x = Math.random()*550;
_root[nm]._y = Math.random()*-400;
}

decided to do it again cuz no one else has

lostinbeta
April 21st, 2003, 10:19 PM
//prototype to draw the square objects
MovieClip.prototype.drawSquare = function(r, x, y) {
this.lineStyle(.25, 0x000000, 50);
this.beginFill(0xE6E6E6, 50);
this.moveTo(-r, -r);
this.lineTo(r, -r);
this.lineTo(r, r);
this.lineTo(-r, r);
this.lineTo(-r, -r);
this.endFill();
this._x = x;
this._y = y;
};
//prototype to draw the line for the slider
MovieClip.prototype.drawSliderLine = function() {
this.lineStyle(1, 0x000000, 50);
this.moveTo(0, 0);
this.lineTo(100, 0);
};
//prototype to draw circles
MovieClip.prototype.drawCircle = function(x, y, r, lineThickness, RGB, alpha, xpos, ypos) {
var c1 = r*(Math.SQRT2-1);
var c2 = r*Math.SQRT2/2;
this.lineStyle(lineThickness, RGB[0], alpha[0]);
this.beginFill(RGB[1], alpha[1]);
this.moveTo(x+r, y);
this.curveTo(x+r, y+c1, x+c2, y+c2);
this.curveTo(x+c1, y+r, x, y+r);
this.curveTo(x-c1, y+r, x-c2, y+c2);
this.curveTo(x-r, y+c1, x-r, y);
this.curveTo(x-r, y-c1, x-c2, y-c2);
this.curveTo(x-c1, y-r, x, y-r);
this.curveTo(x+c1, y-r, x+c2, y-c2);
this.curveTo(x+r, y-c1, x+r, y);
this.endFill();
this._x = xpos;
this._y = ypos;
};
//prototype to create the slider bars
MovieClip.prototype.createSlider = function(x, y, startPos, effectVar) {
this.createEmptyMovieClip("sliderLine", 1).drawSliderLine();
this.createEmptyMovieClip("slider", 2).drawSquare(5, startPos, 0);
this.slider.onPress = function() {
this.startDrag(true, 0, 0, 100, 0);
this.onMouseMove = function() {
this._parent.sliderLabel.text = this._parent._parent[effectVar]=Math.round(this._x);
this._parent.sliderLabel.setTextFormat(myFormat);
};
};
this.slider.onRelease = this.slider.onReleaseOutside=stopDrag;
this.createTextField("sliderLabel", 3, 110, -8, 100, 16);
this.sliderLabel.text = startPos;
this.sliderLabel.selectable = false;
this.sliderLabel.setTextFormat(myFormat);
this._x = x;
this._y = y;
};
//prototype for motion
MovieClip.prototype.jumper = function() {
this.startX = this._x;
this.startY = this._y;
this._xscale = this._yscale=this._alpha=15;
this.onMouseMove = function() {
if (this._parent.hitBlock.hitTest(this._parent._xmous e, this._parent._ymouse, true)) {
this._x = this.startX;
this._y = this.startY;
this.dx = this._x-this._parent._xmouse;
this.dy = this._y-this._parent._ymouse;
this.hyp = Math.sqrt(this.dx*this.dx+this.dy*this.dy);
if (this.hyp<affectArea) {
this.strength = Math.pow((affectArea-this.hyp)/affectArea, 3);
this._x += pushDist*this.strength*this.dx/this.hyp;
this._y += pushDist*this.strength*this.dy/this.hyp;
this._xscale = this._yscale=this._alpha=15+100*this.strength;
} else {
this._xscale = this._yscale=this._alpha=15;
}
} else {
this._x += (this.startX-this._x)/5;
this._y += (this.startY-this._y)/5;
this._xscale = this._yscale=this._alpha += (15-this._xscale)/5;
}
};
};
//textbox formatting
myFormat=new TextFormat(), myFormat.font="Verdana", myFormat.size=10;
//declare variables
var maxClips = 95, affectArea = 50, pushDist = 25;
//create all the clips
this.createEmptyMovieClip("hitBlock", -10).drawSquare(99, 100, 100);
this.createEmptyMovieClip("slider1", -100).createSlider(55, 220, affectArea, "affectArea");
this.createEmptyMovieClip("slider2", -99).createSlider(55, 240, pushDist, "pushDist");
this.createEmptyMovieClip("circle", -7).drawCircle(0, 0, 20, 5, [0x000000, 0xFFFFFF], [100, 0], 10, 10);
//create the slider labels
this.createTextField("slider1Label", -1000, 10, slider1._y-18, 500, 16);
slider1Label.text="Affected Area", slider1Label.selectable=false, slider1Label.setTextFormat(myFormat);
this.createTextField("slider2Label", -2000, 10, slider2._y-18, 500, 16);
slider2Label.text="Push Distance", slider2Label.selectable=false, slider2Label.setTextFormat(myFormat);
//make the original clip disappear
circle._visible = false;
//for loop for duplicating clips
for (var i = 0; i<maxClips; i++) {
mc = circle.duplicateMovieClip("circle"+i, i);
mc.createEmptyMovieClip("center", 1).drawCircle(0, 0, 10, 0, [0x000000, 0x666666], [0, 100], 0, 0);
mc._x = (i*20)+20;
while (mc._x>=200) {
mc._x -= 190;
mc._y += 20;
}
mc.jumper();
}






















Im always caught with AS :-\ Man I am lame :(

nobody
April 21st, 2003, 10:20 PM
Your not lame
your a genius
lol, at least thats your own as
i dont know where mine came from

and off to bed i go>>>

lava
April 21st, 2003, 10:22 PM
http://www.pacdesco.com/corpflash/pdcc.html

Lynx
April 22nd, 2003, 08:14 AM
My clipboard:

http://www.e-zine.lt/freelancer.php
hehe, it's not an adversiment :)

Alex
April 22nd, 2003, 08:52 AM
i dont have anything in my clipboard. :(

redViper
April 22nd, 2003, 08:54 AM
http://www.photoshopcontest.com/

:P

andr.in
April 22nd, 2003, 09:17 AM
my clipboard:
dam nothing on it.. again :(

Soul
April 22nd, 2003, 10:00 AM
My clipboard...


Couples Ranking: 21 out of 1499


Man thats from ages ago! lol. Yay me and my couples partner are 21st most popular :beam:

- Soul :s: