# X-men site

**URL:** <https://forum.kirupa.com/t/x-men-site/13948>\
**Category:** Uncategorized\
**Created:** [February 20, 2003, 5:43am UTC](https://forum.kirupa.com/t/x-men-site/13948 "2003-02-20T05:43:29Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 8:37pm UTC](https://forum.kirupa.com/t/x-men-site/13948/21 "2003-02-20T20:37:35Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*I just noticed that… and hey!!!

I am not as good at this stuff as people think I am ☹ I know bits and pieces of code, but putting it all together can sometimes be a problem for me. \*\*

… I just thought I might have seen something youve done before (all which impresses) that was similar. Maybe not. Perhaps in the future?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 8:58pm UTC](https://forum.kirupa.com/t/x-men-site/13948/22 "2003-02-20T20:58:29Z")

</div>

Now this is a neat effect 🙂

Wonder if I can find some place to use it, hehe… Would make a neat distraction some where on a web site.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 9:23pm UTC](https://forum.kirupa.com/t/x-men-site/13948/23 "2003-02-20T21:23:50Z")

</div>

> \*Originally posted by senocular \*  
> \*\*… I just thought I might have seen something youve done before (all which impresses) that was similar. Maybe not. Perhaps in the future? \*\*

Perhaps in the future… now that I know how to do it, I think I can set something up, I am already getting ideas 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 7:15am UTC](https://forum.kirupa.com/t/x-men-site/13948/24 "2003-02-21T07:15:29Z")

</div>

lostinbeta:

what do you mean???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 7:23am UTC](https://forum.kirupa.com/t/x-men-site/13948/25 "2003-02-21T07:23:17Z")

</div>

Senocular said that he thought he remembered me doing something like this before. Then he realized I didn’t and asked if perhaps I would create something like it in the future. And I said I might and I was getting ideas on what to do with it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 22, 2003, 3:04am UTC](https://forum.kirupa.com/t/x-men-site/13948/26 "2003-02-22T03:04:40Z")

</div>

Senocular, that’s a pretty cool effect! If you don’t mind, how would you add easing to the zooming? (I’ve been playing around with your code but I can’t figure it out.)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 22, 2003, 3:40am UTC](https://forum.kirupa.com/t/x-men-site/13948/27 "2003-02-22T03:40:01Z")

</div>

here ya go 😉

```auto

MovieClip.prototype.makeBox = function(r){ // draw a box
	var clip;
	with(clip = this.createEmptyMovieClip("box"+this.depth, this.depth++)){ // create new clip
		lineStyle(1, 0, 100); // draw the new clip
		moveTo(-r,-r);
		lineTo(r,-r);
		lineTo(r,r);
		lineTo(-r,r);
		lineTo(-r,-r);
	}
	return clip;
}
	
ref = 300; // perspective reference
origin = {x:200, y:200}; // origin of 3d view

for (i=0; i< 10; i++){
	var box = this.makeBox(50); // make box with radius of 50 (100x100)
	box.x = box.y = 0; // all positioned in center of x & y
	box.z = i*100; // space out along z depth
	box.onEnterFrame = function(){ // control its movement, position, scaling etc
		**var dir = Key.isDown(90) - Key.isDown(65); // movement direction in/out movement (a & z keys)
		this.zspeed = Math.min(Math.max(-10, this.zspeed+dir), 10); // prevent speed from going beyond -10 or 10
		this.z += this.zspeed *= .95; // decelerate 95% every frame, add to z position**
		this.x += (origin.x-this._parent._xmouse - this.x)/10; // control left/right movement w/ ease
		this.y += (origin.y-this._parent._ymouse - this.y)/10;
		var prop = ref/(ref+this.z); // proportion based on reference and z positioning
		if (this._visible = (prop < 4)){ // only show if proportion less than 4
			this._x = origin.x + this.x*prop; // position on screen
			this._y = origin.y + this.y*prop;
			this._xscale = this._yscale = this._alpha = 100*prop; // scale and adject alpha for depth
		}
	}
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 22, 2003, 3:43am UTC](https://forum.kirupa.com/t/x-men-site/13948/28 "2003-02-22T03:43:03Z")

</div>

Cool! Thanx! :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 3:11am UTC](https://forum.kirupa.com/t/x-men-site/13948/29 "2003-05-20T03:11:54Z")

</div>

fluid one or anyon else in this thread, if your willing to part with the fla for that file I would love to grab it. If not I understand and will proceed to spend the next three months translating what you guys wrote hehe.  
Andrew

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 4:07am UTC](https://forum.kirupa.com/t/x-men-site/13948/30 "2003-05-20T04:07:26Z")

</div>

zephn: What do you need a .fla file for? Its purely copy and paste. It uses the drawing API to create the shapes. A .fla file will not help you out any more than the code on the page. And it is advanced, so its hard to understand.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 8:28am UTC](https://forum.kirupa.com/t/x-men-site/13948/31 "2003-05-20T08:28:44Z")

</div>

a while back on [actionscript.org](http://actionscript.org) there was almost the _exact_ same navigation in a downloadable .fla. i just spent about ten minutes looking for it but i cant find it now. perhaps its still there under the “movies” section.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 9:34am UTC](https://forum.kirupa.com/t/x-men-site/13948/32 "2003-05-20T09:34:18Z")

</div>

Hi,  
That effect is part of the experiments on gravity of Levitated and all of you can find the source code for it in [www.levitated.net](http://www.levitated.net)

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 9:36am UTC](https://forum.kirupa.com/t/x-men-site/13948/33 "2003-05-20T09:36:54Z")

</div>

Nice one, Sen 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 11:09am UTC](https://forum.kirupa.com/t/x-men-site/13948/34 "2003-05-20T11:09:15Z")

</div>

true I did the copy and past and it worked with the boxes but I don’t know how to alter it to get the line effect that fluidone got with the buttons. I’d rather try and translate one that is further along the road of what i want as an effect.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 23, 2003, 12:40am UTC](https://forum.kirupa.com/t/x-men-site/13948/35 "2003-05-23T00:40:28Z")

</div>

WOW!!! How did you all who really knows what you are doing with actionscript mastered one? I’m going to programing school next year…

[Previous page](https://forum.kirupa.com/t/x-men-site/13948.md?page=1)
