A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] _visible toggle from different levels of MCs?

  1. #1
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392

    [F8] _visible toggle from different levels of MCs?

    Okay what am I doing wrong? I have a menu of sorts and in it are several different MCs. I have a larger section to the right where all MCs are on stage. ALL MCs have default _visible = false; No problem, they don't appear when tested.

    Now, I have a button, when clicked another row of buttons appears, and when one of those is clicked it SHOULD make _visible = true; but it does not.

    For a visual:

    main stage >> button1 >> MC's to show

    button1 >> button2

    So if I have on main timeline: _root.mc_to_show._visible = false; and I test it, the mc_to_show does not appear. Good!

    If on button1 I put: on (release) { _root.mc_to_show._visible = true;} and test, the mc_to_show appears. Good!

    If, however, on button 2 (which, remember is inside button1) I put the on(release) code, the mc_to_show does NOT appear. Bad!

    I know it has something to do with levels and whatnot, but I can't find the right combination to make it work...

    Any ideas?

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  2. #2
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392
    Nevermind. I went a different route and am now using attachMC for most of the clips.



    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

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