I got a problem with AS 2.0 I want to have a page with links to levels. I place buttons on screen in a cycle, but can’t make each button to link to different level.
I do it that way.
var number = number of levels;
for(var i=1;i<=number;i++){ var b = button creation code; bb.onRelease = function(){ gotoLevel(i); } }
but that’s not working. Dam Flash uses last value of i, instead of value iat the moment of function creation.