-
Text not working with alpha changes
I have a movieclip with some text, it starts at 0% alpha and then I want to make a simple AS that will bing up the alpha to 100%, but the first problem that I have is that when I just test it, I have the whole movieclip set to 0% alpha, yet the text is shown at 100% alpha. The text parts are supposed to be buttons so I later changed them to button and set thier induvidual alpha to 0% but they still show when I test my fla.
Ive tried set them to random alphas like 35% but you can still see them clearly with 100% alpha, its very strange and I dont understand what the problem is. I also tried to then disable the buttons with actionscript but they are still at 100% alpha.
And what is wrong with this code?
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
test.addEventListener(
MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
new Tween(submenu_mc, "_alpha",Regular.easeOut,0,100,12,false);
}
);
Last edited by Zahmet; 07-17-2007 at 08:53 AM.
-
Senior Member
You have AS2 syntax. Change to:
new Tween(submenu_mc, "alpha",Regular.easeOut,0,1,12,false);
- The right of the People to create Flash movies shall not be infringed. -
-
Thanks alot
but you dont happen to have any clue about the alpha things?
-
Actionscript 3, postproduction
TextField alpha should only work for embeded fonts text (load fonts with libray or dynamically fonts loaded, check Adobe tutorial.).
-
Im only changing the alpha for the whole movieclip and the text is a part of that, ánd when I try to change the alpha for the text from the properties panel then it changes on the stage where im working, but it gets to 100% when I test it (ctrl+enter).
The font im useing is "Tahoma" but it doesnt matter if I change to something simple like "Times new roman"
-
Ive keept on testing turning the text into an graphic, set the "color" of the text to alpha0 etc. nothing seems to work. There must be some logical thing that Im doing wrong, can anyone think of it?
-
Amazed and Amused
For one thing, take away the underscore from in front of alpha. In AS3 they took away all the underscores from MovieClip properties.
-
cancerinform already said that, well it got it to work finaly, had to change the text to dynamic and embed it. Working now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|