I think I'm doing it right as I have some references from this forum. My question is (not only for me but for some co-colleagues and I also think it can help other users). I have this original frame, imagine something as a map, and then I press a button that goes to another frame (a room, for example). When I get back from that room to my map I want that exact button I used to be disabled so I can't play on that room again.
I've tried some based on this kind of script:
myBtn.onRelease = function() {
this.enabled = false;
}
and this...
btn.enabled = false;
btn.on(MouseEvent.CLICK, hideObject);
myClip.mouseEnabled = false;
myClip.mouseChildren = false;
And some other scripts I've lost track!
But I think it has something about mouse events, disable or visible?
I must admit I'm noob now. I've tried a lot of things but I can't find the right answer that works!
Please tell me if this was answered before because I can't find it anywhere.
Thank you! I can't thank you enough!
As requested, I currently have this: actions on frame label "f1"
this.f1library_btn.on ("click", function() {
root.gotoAndStop("f1r4");
});
It works nice! And then, on frame label "f1r4" I have:
this.f1back_btn.on ("click", function() {
root.gotoAndStop("f1");
});
You interact with some content on frame label f1r4. Nice flow. When I click on this button /f1back_btn, I come back to "f1" where I want to disable the the button "f1library_btn" so I can't go to frame label "f1r4" more than once.
At this point, I feel like you are mostly doing work for me (which is not what I mean), but as I said, I just really need an explanation on how to make it work!
Thank you!