Okay so I'm teaching myself Flash and timeline control is cake but actionscript is another story. I'm starting to understand it as I give myself more and more challenges.
I created a website using bits of Flash, HTML & Javascript. Now the more I look at Flash content the more I figure I can redue some of the ings I created into complete Flash content.
Here is my problem, I'm trying to recreate a scrolling effect using actionscript. Currently I have buttons set up on a nav bar with individual instance names. I want to use them to scroll a movieclip to a particular location on the stage XY locations. I have the action script working ok but they just jump to the location instead of scrolling to them on click. This is my code on the action layer for each button. Moviclip instance name is "desk"
home.onPress = function() {
desk._x = 0;
desk._y = 0;
}
directions.onPress = function() {
desk._x = -950;
desk._y = 0;
}
calendar.onPress = function() {
desk._x = -950;
desk._y = -782;
}
Press.onPress = function() {
desk._x = 0;
desk._y = -782;
}
plays.onPress = function() {
desk._x = -1900;
desk._y = 0;
}
tickets.onPress = function() {
desk._x = -1900;
desk._y = -782;
}
company.onPress = function() {
desk._x = 0;
desk._y = -1465;
}
contact.onPress = function() {
desk._x = -1900;
desk._y = -1465;
}
dine.onPress = function() {
desk._x = -950;
desk._y = -1465;
}
Hope someone can help. ![]()
Aqua-Soft Forums