Flash Tutorial - Parralax Scrolling AS3 CS5

Channel:
Subscribers:
1,800
Published on ● Video Link: https://www.youtube.com/watch?v=BzPRryBjZo4



Category:
Tutorial
Duration: 7:17
8,166 views
27


A tutorial on how to create a Parralax Scrolling effect using Flash
i'm happy to answer any questions you have on it.

Here is the code used:
package
{
import flash.display.MovieClip;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;

public class ParralexTest extends MovieClip
{
public function ParralexTest()
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
}

function onKeyDown(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.LEFT)
{
foreGround.x += 10;
middleGround.x += 5;
backGround.x += 3;
}
if (event.keyCode == Keyboard.RIGHT)
{
foreGround.x -= 10;
middleGround.x -= 5;
backGround.x -= 3;
}
}
}
}







Tags:
flash
actionscript
games
create
coding
programming
as3
cs5
parralax scrolling
parralax
scrolling
3d