A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Not Solved Variables and MCs

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

    resolved [RESOLVED] Not Solved Variables and MCs

    I have built a monster...

    On the maintime line I have a movie clip "map_mc" inside it I declare a variable "index_a" and have a series of buttons that populate that variable. This is working fine.

    In "map_mc" I also have a movie clip "allstates" and inside that I have another movieclip "onestate" in this movieclip I have a series of buttons that I also need to update the variable in the root movie clip "map_mc" as above.

    I have tried;
    on (release) {
    _root.map_mc.index_a="value";
    }

    But when I run a trace I get undefined, sure hope someone can straigten this out for me, I have a problem when it comes to scope issues.

  2. #2
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    Tried;
    on (release) {
    _parent._parent.index_a="value";
    }

  3. #3
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    Hold on that works I think

  4. #4
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    That was it,

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