A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: I Need Your Help in making a button invisible/visible

  1. #1
    Registered User
    Join Date
    Oct 2016
    Posts
    3

    I Need Your Help in making a button invisible/visible

    Childsplay, I know. But I'm new to Macromedia Flash 8 and I just can't solve it. I've been googling around and have yet to find an aswer. Please help.
    myButton is my Button's instance name

    This is my code in the button I want to make invisible
    on (release){
    trace("The code went here 2");
    _root.myButton._visible = false;
    trace("The code went here 3");

    stop();
    }

    I can also put the code in the frame's actionscript if that's all it takes:
    stop();
    trace("This code went here 1");

  2. #2
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86
    Man, first of all. Draw your button. Convert the button in Clip, after open the actions. Add this code:

    Code:
    on (press)
    {
    	this._visible = false;
            
            // change "bla bla bla" to text of you want
    	trace("Bla Bla Bla");
    }
    test and see if this is what you want. PS.: I think stop() is only to put in main frames o.O

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