A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: [RESOLVED] AS2 button scope help needed MC inside MC

Threaded View

  1. #1
    Senior Member
    Join Date
    Mar 2008
    Posts
    168

    resolved [RESOLVED] AS2 button scope help needed MC inside MC

    I have a Movieclip on the main timeline called "map_mc" as you might guess inside this movieclip is a map of the US and each state is a button.
    Also in "map_mc" is a movieclip called "A_fg_allstates" with 50 labeled frames one for each state ie. MD, MO, OH, IL, CA etc.

    When you click on the state or button on the map in "map_mc" I need to advance to a labeled frame in "A_fg_allstates" such as Texas Ohio, Ilinois, Maryland etc.

    I cannot seem to get the scope right, can anyone help?

    Here is the code I have on the button now:
    Code:
    on (release) {
    	_root.gotoAndPlay(3);
    	_root.state_no=18;
    	A_fg_allstates.gotoAndStop("Texas");
    Last edited by ADVaughn; 11-29-2012 at 01:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center