Is there anyway you can have multiple scripts in once action script layer. The reason I ask is that I have multiple buttons, and rather than creating five different action layers, I would rather reduce the layer count and place this in a single action script layer, for example - I am using the following for my buttons :
[AS]
buttonOne.onRollOver = function(){
OK1 = true;
}
buttonOne.onRollOut = function(){
OK1 = false;
}
effectOne.onEnterFrame = function() {
if (OK1) {
effectOne.nextFrame();
} else {
effectOne.prevFrame();
}
};
[/AS]
I would then need to create a second layer for the second button, adjusting the code slightly to suit the buttons etc, is there a method of doing this?, and you cannot simply copy the code after, as this causes problems
please
if you know let me know
thanks