Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sat Nov 21, 2009 4:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ]  Bookmark and Share
Author Message
 Post subject: Using a button twice?
PostPosted: Tue Mar 17, 2009 2:51 am 
Offline

Joined: Tue Mar 17, 2009 2:46 am
Posts: 1
Hi, I need to make a super simple program for my speech class. How would i program a button so I can click it once, and hace a bunch of labels go from visible = false... to visible= true... then click the button again and have the button go back to visible = false...
so i want to click the button once. have the labels appear.. lick it again and have the labels disappear... does anyone know the code for that


Top
 Profile  
 
 Post subject: Re: Using a button twice?
PostPosted: Mon Jun 29, 2009 11:28 pm 
Offline

Joined: Mon Jun 29, 2009 11:18 pm
Posts: 2
Very easy. Just use this for the button_click thingy

Code:
if label1.visible = false Then
label1.visible = True
else If label1.visible = true Then
label1.visible = False
end if


Your saying:
If the labels are not visible then make them visible. If they are visible then make them not visible

_________________
Learning VB2008|Working on photoshopping better|
LaytProducts
Need Some Extra Cash
Free Web Hosting
Image
Click here to feed me a Rare Candy!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley