Button hide on release

  • syoung08
  • Born
  • Born
  • syoung08
  • Posts: 1

Post 3+ Months Ago

I have 8 buttons that I'm trying to get to hide when they are clicked but I'm not sure how to.

What steps would I have to take in order to make a button vanish when its clicked??

Thanks in advance!!!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Since actionscript on button symbols in Flash aren't object oriented (whereis if you put actions on a movieclip symbol the code is for that object) you will need to do this...

1) Give your button symbol an instance name (can do Flash MX and up... found in properties panel)

2) Apply these actions to the button symbol.
Code: [ Select ]
on (press){
buttonInstanceName._visible = false;
}
  1. on (press){
  2. buttonInstanceName._visible = false;
  3. }


Where you would obviously have to change buttonInstanceName to the instance name you gave the button symbol.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 46 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.