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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alpha tween

Status
Not open for further replies.

angy

Technical User
Mar 24, 2003
12
US
Hi,

Whenever I want to make something semi transparant, I adjust the alpha.

In order for the alpha option to be available, I have to attach a motion tween onto the object.

Is this the correct way to adjust the transparency? if so...why do i have to attach a motion tween every time.
 
you don't..just convert any object to a symbol and you can then create effects..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
you can also set the alpha of a solid fill and/or stroke by going into the mixer panel and setting the alpha to a percentage of 0 to 100.

You must do this at the non-symbol level... once it is a symbol you either use the tweening or convert you symbol to a mc if it isn't already and set it dynamically by using a setProperty action. Ya' Gotta Love It!

 
here is an example of the action script on frame 1 setting my Circle movie clip to 50% alpha. I named the circle "circle_in" in the instance panel:

setProperty ("_root.circle_in", _alpha, "50");
Ya' Gotta Love It!

 
_root.circle_in._alpha = 50;

Would work fine also.

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top