& AS 3: Anyone have a script for that pseudo 3D effect? Objects moving @ diff. speed?

Kind of like saintsandsoldiers.com (when you click enter). Ive seen it done so many times, cant find the name of the effect though.

It’s called parallax. It just involves having the foreground move faster than the background.

Yeah, Ive been programming in Flash for 6 years and I dont know what a class is. Bro, I cant program for my life no matter how hard I try lol. I need help!

Problem is I have about 5 objects I need to scroll differently, and in a contained area (not the whole stage). Tough stuff.

It’s going to be a lot easier in Flash Player 10, if that makes you feel any better. [ot]And yes, I’m always watching your threads.[/ot]

Yeah, whenever that comes out :sure:.

You mean something like this (shameless self-plug) ?

or this (more plugging):

http://www.shootingfootage.net/wg.html

If so, I could help you with some code hints. Both are done in AS2.

[QUOTE=0L4F;2353908]You mean something like this (shameless self-plug) ?

or this (more plugging):

http://www.shootingfootage.net/wg.html

If so, I could help you with some code hints. Both are done in AS2.[/QUOTE]Yeah! You got exactly what I mean. I’d actually like to learn how to put the effect in a contained area (through a mask or something) inside an swf, and how to allow only X movement or Y movement (and of course how to activate both).

I’d love to learn how to program that, problem is Im the worst programmer on the planet. Recently, I lost 2 weeks on a website because I couldn’t figure out how to load simple XML text, perform a parallax scenery and how to make a reel of photos slide left/right on button presses.

PS. Oh and I just lost two days cause I couldn’t program a simple navigation. I’m on craigslist right now looking for flash programmers lol.

Like this? (plug plug)

Good tutorial-
http://imm.sheridanc.on.ca/imm2003/zhanghai/perspective-tutorial/tutorial1.shtml

Reef- nice work.

Yeah, nice site lol. How do you get the effect to work full screen? Or is that just a really big swf?

And more importantly, how can I contain the effect in a certain area?

put a mask over it? :stuck_out_tongue:

No, that’ll hide the view to an area. It won’t contain the code within the area.

The bounding box of the mouse is originally the stage, I need to change it to a specific area.

My site works by scaling to fit the window and some smoke and mirrors. What you’re basically doing with this is moving some MCs at various ratios to the cursor movement, via figuring out the cursor position in ratio to the stage. In that tut, it’s dividing by the stage height/width, but you could set the relative cursor bounding box to anything. Play with replacing all the stage.widths, ects with constants and you’ll see what I mean.
(I think that makes sense) :stuck_out_tongue:

Would you mind giving me a sample .fla with some rectangles (to represent objects) that I can study? Thanks.