Oh k, the past like 4 questions that I’ve asked have gone totally unanswered so please somebody help me out.
I’ve got this nav bar type thing and when you click a grade level then the MC gets disabled and then it does a tween. That works fine but when the tween stops the button gets reset and is enabled again!!! I do not get this at all. CAN SOMEBODY PLEASE HELP ME?!?!
[AS]
obj.onRelease = function() {
if (_global.curGrdLevel != obj._name) {
if (_root._currentframe<5) {
_root.play();
}
obj.enabled = false;
}
[/AS]
Also, I have a stop frame on frame 95 inside my MC but it doesn’t stop and I can’t figure out why either. I’m also posting the FLA for this.
I can’t help you with the main problem but I thought I should point out that in the AS you posted above, there is a } missing. It may be that there is more to the function though (i.e. you only posted part of the function).
Should be:
[AS]obj.onRelease = function() {
if (_global.curGrdLevel != obj._name) {
if (_root._currentframe<5) {
_root.play();
}
obj.enabled = false;
}
}
[/AS]
I only posted a part of the function. It is a lot longer then that but somehow the tabs got messed up. At the end there is a }; becuase you also need a ; at the end of a function.
Good point :). Ok, what exactly is the purpose of the stop frame in your .fla - i.e. what do you want it to stop? (I’ve been looking at the .fla and I’m not sure which part of the menu you want to stop at frame 95.)
Right. I’m no AS guru but I thought it was only fair to try and help. I’m afraid that this is out of my depth but hopefully one of the resident gurus will take over :-.
That is strange - I have no idea why it isn’t working. When I shifted the box tween over by one frame and placed a blank keyframe with the stop action directly in front of it, it seemed to work for a few tries. It ended up not working in subsequent trials though :cyclops: