dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: this should be simple but...

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Location
    London, UK
    Posts
    14
    I'm having problems changing the visibility of an MC via a button within another MC - should be simple but it just doesn't work.

    The set up:
    one layer with 'menu' MC, within which a button sets the visibility of another 'one frame' MC on the main timeline:

    on (release) {
    _root.play();
    setProperty ("_root.green", _alpha, 100);
    }

    The MC 'green' is masked by another layer, but only flashes on when the main timeline plays.

    I must be missing something really basic - I tried setting up the MC green with frame labels (visible, invisible etc) and telling it to jump to the 'visible' frame, but that had the same result.

    Any ideas? Help would be much appreciated.

  2. #2
    Member
    Join Date
    Feb 2001
    Posts
    82

    probably like this

    you can try it like this

    on (release) {
    setProperty ("_root.green", _visible, "0");
    }
    hope it helps


  3. #3
    Junior Member
    Join Date
    Feb 2001
    Location
    London, UK
    Posts
    14
    Nope, no difference I'm afraid.

    Any other ideas?

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Posts
    168
    how about changing the visibility of the mask layer?

    db

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Location
    London, UK
    Posts
    14

    I know why - now how to get around it?

    I've figured out why it's not working - keyframes on the mask layer resets the movie effected by the mask.

    I've just got to figure out a way around this, as the project I'm working on depends on a complex, changing mask using multiple keyframes.

    If anyone has any ideas....would be much appreciated.

    jrb

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