Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alpha by actionscript

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
I want to put an invisable button over an image. I can do this by setting the alpha to 0. I would like to do this with actionscript in order to keep my filesize down.

i used

setproperty(instancename._alpha = 0)

but it didn't work. Is it because it is a button ?

thanx in advance

 
on frame 1 put:

button._visable = 0; Regards
David Byng
bd_logo.gif

davidbyng@hotmail.com
 
setProperty("test", _alpha, "30");

Or...

test._alpha = 30;


Or, simply just put some shape in the "hit" state of the button (nothing in the other states), no point in playing with it's alpha! The hit state is not visible. Regards,

oldman3.gif
 
"test" being the instance name of course! Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top