Hi,
I'm trying to get a button located in a MC (which is manually dropped on the main stage) to enable a button located on the main stage thats not in that MC.
Here is the code I have on the actions layer of the main swf:
q1_mc.true_btn.onRelease = function() {
?frwd_btn.enabled=true;
}
q1_mc is a quiz question that contains the true_btn
I want the frwd_btn which is outside of the mc and on the main stage to be enabled when they click true or answer the question in the quiz.
I have tried using _parent and _root for the frwd_btn but can't seem to get it to work.
I hope this makes sense.
I know it has to be something I'm just over looking.
Thanks,
Adam
Probably something simple I'm over...That code would be correct for targeting the the frwd_btn from that code's timeline as long as that's the timeline fwrd_btn lives on.?And if q1_mc also lives on that timeline, that code is also correct in that respect.?A couple thing to be mindful of... make sure your instance name s are correct for all parties involves.... make sure that the objects that that code is working for exist when it does--if something lives down a timeline somewhere, that code isn't seeing it, and vice versa.
Probably something simple I'm over...Ok yeah I looked back in the code and figured out I have some other code for the true_btn in the q1_mc.
Thanks! Been a long day.
You're welcome
No comments:
Post a Comment