Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
Now go back onto the main stage. You should have you guy in the center. Select him and hit F9 to open the actions pannel of your character MC. Now put the following code into the pannel:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe != 6) {
gotoAndStop(6);
}
} else if (Key.isDown(Key.RIGHT)) {
if (_currentframe != 8) {
gotoAndStop(8);
}
} else {
if (_currentframe == 6) {
gotoAndStop(5);
}
if (_currentframe == 8) {
gotoAndStop(7);
}
}
if (Key.isDown(Key.UP)) {
if (_currentframe != 2) {
gotoAndStop(2);
}
} else if (Key.isDown(Key.DOWN)) {
if (_currentframe != 4) {
gotoAndStop(4);
}
} else {
if (_currentframe == 2) {
gotoAndStop(1);
}
if (_currentframe == 4) {
gotoAndStop(3);
}
}
}