Ilyas

Recycling…

[swf=“http://membres.lycos.fr/museebranly/explode.swf height=60”][/swf]

Even more recycling…

[swf=“http://membres.lycos.fr/museebranly/kir_footer_05.swf height=60”][/swf]

MuHaAHaHAHaHAaa!! I’ll win this! :evil: (evil credits go to Zemax)

[swf=“http://membres.lycos.fr/museebranly/kir_footer_09.swf height=60 width=300”][/swf]

In case you’re interested:

cellSize=3;
radius=10;
damp=.85;
dampR=.8;
numLetter=0;
letterSpacing=40;
shift = .5;

letterP=new Array(
				  [1,1,1,1,1,0],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1],
				  [1,1,1,1,1,0],
				  [1,1,0,0,0,0],
				  [1,1,0,0,0,0]);
letterO=new Array(
				  [0,1,1,1,1,0],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1],
				  [0,1,1,1,1,0]);
letterM=new Array(
				  [1,1,0,0,0,1],
				  [1,1,1,0,1,1],
				  [1,1,0,1,0,1],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1],
				  [1,1,0,0,0,1]);

function containerRollOVer(){
	delete this.onRollOver;
	for (var clip in this) this[clip].explode();
}

function displayCell(letter){
	var num=1,i,j,mc;
	clip=this.createEmptyMovieClip("container"+numLetter,numLetter++);
	clip._x=30+numLetter*letterSpacing;
	clip._y=20;
	clip.createEmptyMovieClip("cell",0)._visible = 0;
	clip.cell.lineStyle(cellSize,0xcccccc,100);
	clip.cell.lineTo(.15,.45);
	for (j=0;j<letter.length;j++){
		for (i=0;i<letter[0].length;i++){
			if (letter[j]*==1){
				mc=clip.cell.duplicateMovieClip("cell"+num,num);
				mc.i=i;
				mc.j=j;
				mc._x=i*(cellSize+shift);
				mc._y=j*(cellSize+shift);
				num++;
			}
		}
	}
	clip.cell.removeMovieClip();
	this.clip.onRollOver=containerRollOver;
}

MovieClip.prototype.explode=function(){
	this.vx=(Math.random()-.5)*2*radius;
	this.vy=(Math.random()-.5)*2*radius;
	this.onEnterFrame=function(){
		this.resizeCell();
		this._x+=this.vx;
		this._y+=this.vy;
		this.vx*=damp;
		this.vy*=damp;
		if (Math.abs(this.vx)+Math.abs(this.vy) < .08)
			this.onEnterFrame=spinningAround;
	}
}

function spinningAround(){
	var diffx=this._x-this.i*(cellSize+shift);
	var diffy=this._y-this.j*(cellSize+shift);
	this.resizeCell();
	this.vx-=diffx/7;
	this.vy-=diffy/7;
	this.vx*=dampR;
	this.vy*=dampR;
	this._x+=this.vx;
	this._y+=this.vy;
	if (Math.abs(this.vx)+Math.abs(this.vy) < .01){
		this._x=this.i*(cellSize+shift);
		this._y=this.j*(cellSize+shift);
		delete this.onEnterFrame;
		this._parent.onRollOver=containerRollOver;
	}
}

MovieClip.prototype.resizeCell=function(){
	var diffx=this._x-this.i*cellSize;
	var diffy=this._y-this.j*cellSize;
	var dist=diffx*diffx+diffy*diffy;
	this._xscale=this._yscale=this._alpha=(10000-dist)/100;
// you can try that instead:
//	this._xscale=this._yscale=this._alpha=(1000-dist)/10; 
}

displayCell(letterP);
displayCell(letterO);
displayCell(letterM);

pom :slight_smile:

whoa!!

that’s trippy! :A+:

Hehe… that looks quite familiar Ilyas =)

*Originally posted by lostinbeta *
**Hehe… that looks quite familiar Ilyas =) **

heh I was gonna say that then reference ^

yeah… your entry should be disqualified :stuck_out_tongue:

… unless obtained through osmoses

Why should it be disqualified?? Ilyas created that effect a long time ago when we were trying to figure out how to do it off of orisinal.com :stuck_out_tongue: The coding is all his :slight_smile:

Hey, I told you I was recycling… :beam:

lol :stuck_out_tongue:

wish i was that good at scripting, m only good wid animation n music :frowning:
great one ilyaslamasse, wish i cud understnd a word of wat was in tht code hehehe

aww. now i really want to learn action script@!

hi pom! your’s great! nice and smooth!

very nice and clean scripting!

as i have said, im just telling the truth… you are really great!
just browsing your codes gives me some “headache” tho it was laid plain and clean… maybe i need some more “exploits” to fathom those. :stuck_out_tongue: (no kidding :))

keep up the great exploit! :thumb:

The last one is inspired by a file by Rolf Ruiz from Alesys.net :slight_smile:

i love the last one!

I loved both of them, Its awsome, im using the same effects on my site. (cough cough :P)

lol they are great. :slight_smile:

This is not fair! I don’t stand a chance!

SSSSSSSSSIIIIIIIIIIICCCCCCCCCCCKKKKKKKKKKK. Awesome. They are both great. :A+:

:stunned: :angry:
NoT fAiR :frowning:
heheheh

it looks nice man, can u plz send me the source plz:trout:
hehhee, great 1 dude.

Sorry for the delay :slight_smile:

All you need is a symbol called “pom” on the scene and this code on the first frame of the movie (and a high frame rate):

// Inspired by Rolf Ruiz from Alesys.net
nClips = 10;
Mouse.hide();
pom._visible = 0 ;
this.onEnterFrame = function(){
	rota = 20*Math.sin(t+=.2)*Math.cos(b+=.05);
	for (var i = 0; i < nClips; i++){
		var clip = pom.duplicateMovieClip("pom"+i,i);
		var dx = _xmouse - pos.x;
		var dy = _ymouse - pos.y;
		clip._x = pos.x + dx*i/10;
		clip._y = pos.y + dy*i/10;
		clip._rotation = i/nClips*rota;
		clip._alpha = i/(nClips)*100;
		updateAfterEvent();
	}
	pos = {x:_xmouse,y:_ymouse};
}

pom :phil: