PDA

View Full Version : How to go back to main page??



hersheydesai
December 9th, 2009, 10:16 AM
Hello all.
Can someone help me out here...

I have a main swf file called index.swf and 3 games files called game1.swf game2.swf and game3.swf respectively.

The main.swf is done is AS2 while the games are in AS3.

I have 3 buttons on the main.swf,each will load the game out on a new layer...
this is the code I used...

btn1.onRelease = function(){
loadMovie("subcontent/game1.swf", 0)
btn1.enabled = false
}

But when I added a back button on the game1.swf using the script...
back_button.onRelease = function(){
loadMovie("index2.swf" , 0)
}
...
it didn't work. Apparently this code doesn't function in AS3.

Can someone help me out with this code?
All the games are in a subcontent folder.
Index file will call them out on a new layer...and the back button in those games must be able to go back to the index.swf.

Am really in a fix here...need to have this working by monday. Any help is deeply appreciated.


Also, I have no clue about actionscript 3. I haven't made these games... I just have to link them up to index and make them work.

hersheydesai
December 9th, 2009, 11:03 AM
am willing to send the fla files if necessary...

hersheydesai
December 9th, 2009, 03:22 PM
uh..anyone??? help?