A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: setting visibilty for a mc inside an mc

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Uk
    Posts
    7

    setting visibilty for a mc inside an mc

    Hello,

    I am having trouble with the file attached.
    I am trying to have a dragable movie clip that has an invisible mc inside it (so that it is moved with the main mc).
    I then want a button on the maintime line to turn on the mc so that it is visible. Do I need to work in levels? Is that why it is not talking to the mc inside the mc?

    on (press) {
    _root.test._alpha = 0;
    }
    Attached Files Attached Files

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You have to target the timeline your MC is on.

    on (press) {
    myMainMC.myMCinside._alpha = 0;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Look at your code again. That is setting the alpah to 0. Try:

    on (press) {
    _root.test._alpha = 100;
    }

  4. #4
    Junior Member
    Join Date
    Oct 2002
    Location
    Uk
    Posts
    7
    Thank you!
    I always seem to make things more complicated that they need be.

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