Sorry, I'm something of a newbie
I have a three scene game, and it has two problems.
When you click on one button it goes to one instance of a hexgame. When you win it returns to the three button screen (via a stats screen)
I want it so that the button that you have already clicked on (and won the corresponding game) changes colour, so you know which button you have already pressed.
I have already tried using a string variable with
button1.onRelease = function(){
buttonname = "1pressed";
gotoAndPlay("Hexgame", 1);}
button2.onRelease = function(){
buttonname = "2pressed";
gotoAndPlay("Hexgame", 1);}
on the button scene, and
if(buttonname == "1pressed"){
hexname = "game1";
_root.row = 12;
_root.col = 10;}
if(buttonname == "2pressed"){
hexname = "game2";
_root.row = 6;
_root.col = 5;}
within the game to modify the difficulty. and then finally
sure1.onRelease = function() {
if(hexname == "game1"){
_root.button1.gotoAndPlay(9);}
if(hexname == "game2"){
_root.button2.gotoAndPlay(9);}
gotoAndPlay("USmap", 1)}
which should change the colour of the original button, right? It didn't work usng only the buttonname string either.
My second problem is that when you attempt the game with a second button, after already winning once - the hexgame button that should appear upon victory never shows up. I have no idea why.
annoyingly, the file is slightly larger than FlashAdvisor will allow, so I have hosted the .zip and .fla at
http://www.filefactory.com/file/comp...a0d8c/aga0d85/
and the .swf at
http://www.megaswf.com/view/334021ec...afc1e99fb.html
Could someone please help me with these problems.
The file is CS3 with AS2.
Thankyou!!!!!!!!!!!




Bookmarks