A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] [F8] Button inside MC problem (So new! So clueless!)

  1. #1
    Hopefully not THAT incompetent
    Join Date
    Jun 2006
    Location
    Vancouver, BC, Canada
    Posts
    13

    [RESOLVED] [F8] Button inside MC problem (So new! So clueless!)

    Hey! This is probably a really simple problem.

    I have a button inside a movieclip that needs to control something outside the movie clip and I have no clue how to make it work..

    This is what I've got...

    btn_red.onRelease = function (){
    setProperty("red", _visible, true);
    }

    "btn_red" is inside an MC called "all" and both "all" and "red" are in the main stage area.

    I have no clue what I need to add to fix this. Please help!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    where red is the instance name of the movieclip try -

    btn_red.onRelease = function (){
    _root.red._visible = true;
    }

  3. #3
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    try something like this

    Code:
    // code on the main time line
    all.btn_red.onRelease = function(){
        this._visible = true;
    }

  4. #4
    Hopefully not THAT incompetent
    Join Date
    Jun 2006
    Location
    Vancouver, BC, Canada
    Posts
    13
    Yay it works! Thanks to both of you!!

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