I have a flash file containing 9 scenes.
I thought that it would be a good idea to place all
code in an actionscript (.as) file.
//include "main_as.as ";
On one scene I have an array of buttons
This works fine as is.
If I add two more buttons to a second scene
btn9, btn10 and add them to my .as file
The animations work on the buttons in the first scene, but not the second.
If I try to include the .as file in the second scene also
//include "main_as.as ";
I receive lots of duplicate function errors.
I thought that it would be a good idea to place all
code in an actionscript (.as) file.
//include "main_as.as ";
On one scene I have an array of buttons
Code:
var myArray:Array = [btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8];
If I add two more buttons to a second scene
btn9, btn10 and add them to my .as file
Code:
var myArray:Array = [btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn10];
If I try to include the .as file in the second scene also
//include "main_as.as ";
I receive lots of duplicate function errors.