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.
Ok, now we know how to make the character move. But we dont want it to move out of the screen, do we? No! Lets give the character this code:
onClipEvent(enterFrame) {
if (_y>550) {
_y=550;
}
if (_y<0) {
_y=0;
}
if (_x>400) {
_x=400;
}
if (_x<0) {
_x=0;
}
}
Kay, now your character shouldn't be albe to move outside the window!
But, what if you want to make the character move to another place when it walks over a hotspot? No problem! Just go to the next page!