| Racecarjoe 2007-07-31, 6:16 pm |
| I am totally new with flash. I am using the following tutorial which I believe
I followed correctly.
http://www.flash-game-design.com/fl...h-tutorial.html
I have edited the site just a bit adding my own graphics and colors. The
problem is that when you first view the site all the buttons stay in the up
position. Once you click each one once, they function properly. Here is the
script that I have.
stop()
content.gotoAndStop("home")
current = menu.home_button
setMove = true;
yMove = -10
menu.home_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("home")
current = this
}
}
menu.league_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("league")
current = this
}
}
menu.photos_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("photos")
current = this
}
}
menu.downloads_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("downloads")
current = this
}
}
menu.forum_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("forum")
current = this
}
}
this.onEnterFrame = function(){
if(setMove){
if(yMove < current._y){
current._y --
}else{
setMove = false
}
}
}
Also here is a link to the actual site that I have published.
http://67.175.252.196/New%20Site/Test%20Website.html
Any help would be greatly appreciated.
|