I have this code in an mc.
//////
function musikstil(a,b){
a.onRollOver = function(){
a.gotoAndStop("over");
}
a.onRollOut = function(){
a.gotoAndStop(1);
}
a.onRelease = function(){
b.gotoAndStop(b._currentframe + 10);
if(b._currentframe == 60){
b.gotoAndStop(1);
}
trace(_global.valA);
}
}
/////
musikstil(stil1.val,stil1);
I want to change the value of _global.valA in the different frames in b, like putting "_global.valA = 1" in frame 30 but the trace only seems to remember the value I had put in the startframe 1.
What am I missing?
/Mattias




Reply With Quote