Parallax Scrolling
You can easily achieve parallax scrolling in Flash CS4. Using the vCam AS3, apply different Z positions to your movieclips. Then tween the camera and publish your movie. How easy is that?
Here is a test I ran (Flash Player 10 Required):
This movie requires Flash Player 9
Artwork by Tim Allen 10 comments
10 Comments so far
Leave a reply

Could you do this in CS3? It seems silly that we’d need to limit it to CS4. I know CS4 has new identifiers, which you probably use, but why not add that dynamically through the scripting? I see a lot of components add extra parameters to objects. A ‘z’ depth could potentially be added to CS3 through a component, correct?
Back to your work, I love it. In order to accomplish such effects, I usually move objects manually. This could save a lot of time.
It certainly could be done in CS3. I’ll have to run some tests when I get some time. Thanks for the post.
I think i’ve seen this somewhere before…but it’s not bad at all
I realize it’s only a test, but the parallax seems off. The very foreground should be moving much more quickly than the furthest background, which should hardly be moving at all.
Thanks for your comment. I wasn’t going for perfection. All you have to do to adjust the speed is decrease the Z depth of the foreground.
Hi, nice job on the VCam. I’m developing a game and I’m trying to use it as a camera. I’m not sure it’s possible because of the overhead. It made the game run too slowly. My question is: do I have to use tweens to move the camera or can I just move the movie clip through its x and y?
You can position it through it’s x and y property.
for some reason this isn’t working when loaded as an external flash.
I am trying to do parallax on my index layer of a gaia site, and the vcam scrolls fine (using greensock tweening) but it is not producing the parallax effect. If i move the graphics around (not the camera) the the parallax effect works.
It’s strange because i believe i am doing the exact same thing as in your demo, anyone have any experience integrating this into gaia? or loading it as an external swf?
tnx
hi uhmm I have flash8 and is wondering if this could be done in flash ActionScript2. If so are you working on one? If your working on one can you post it in the text box above so no one will post a question similar to mine.
It can’t be done in ActionScript 2 using this method because the Z axis was not introduced until AS3. You can fake it though.