Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing frame within movie clip

Status
Not open for further replies.

tester321

Programmer
Mar 13, 2007
150
CA
Hi this is the set i have for my issue, thanks.

[1]i have a MC on the main stage called "rado2" with instance of rad2, in rad2 i have three frames, first frame with label "radAA2"

[2]I have another MC on the main stage called rado1 with instance "rad1" in rad1 i have three frames, first frame withlabel "radAA1"

What i di was create radio buttons, casue i didn't want the size of the component, so i used three frames within a movie clip and created a button in the frames with mimics the radio being selected or not. What i'm trying to do is from the third fram of [1] have some code to set [2] to the first frame, so its unselected.

This is what i have:
_root.radi2=1; // i set values in the frame where radio is selected or not, if equal to 1 then it is selected, so below i'm checking if the radio is selected and if so unselect it, by going to frame1 or "radAA", it not working though?

if (_root.radi1==1){
_root.radi1=0;
_root.rado1.rad1.gotoAndStop("radAA");
}
stop();

any thoughts as to why its not working? I've tried various paths. What is the syntax to reach instantiate a frame within a MC? Thanks!
 
Thanks for the reply, i8 just changed things so that both radios where in teh same MC, same MC with frames for both radios, all is well, thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top