PDA

View Full Version : Setting Dynamic Text _alpha???


dataOne
04-17-2003, 04:32 PM
Ok, this seems very simple but it is driving me crazy.
I want to set the opacity of a "dynamic" text box via action script.
The text box, movie clips and action script described below are all on level0.

I have tried:
MyTextBox._alpha = 30;

Result:
No change in the opacity.

I put the text box in a movie clip:
MyMovieClip.MyTextBox._alpha = 30;

Result:
No change in the opacity.

And I even tried setting the movie's alpha hoping this would effect the text box.

MyMovieClip._alpha = 30;

Result:
No change in the opacity of the dynamic text. The opacity of all other objects in the movie is effected.

Running a trace on any of the above returns each objects opacity as set by my script but there is no visible change.

Any ideas / suggestions would be very much appreciated.

Warrior
04-17-2003, 09:40 PM
I tried what you wanted and I must say, I found it hard to get it working. So I tried this,Clip._visible = false; and it worked. I will try to find a solution for it.

Does anyone know how to make a Dynamic TextBox _alpha Channel?

dataOne
04-17-2003, 09:52 PM
Hey Warrior,

I believe nobody responded to my post because the answer has already been provided in another post (see the link below).

The key is embeding the font characters. Once I embeded the font characters I was able to control the alpha of my movie clip & the dynamic text it contains.

Solution (http://www.actionscript.org/forums/showthread.php3?s=&threadid=15051&highlight=dynamic+text+alpha)

Warrior
04-17-2003, 10:31 PM
How rude of me, I didn't welcome you to the forums :eek: Welcome to ActionScript.org (http://www.actionscript.org)

Do you know why the fonts have to be embeded?

dataOne
04-18-2003, 03:37 AM
Thank You.

I dont know reason why it works. I was just very happy to find a solution.

CyanBlue
04-18-2003, 03:40 AM
Howdy and Welcome... ;)

Hey, dataOne... Glad that you have found out the solution by searching the forum... I don't think that you haven't got any answer because the answer has been provided already... It will be more likely you have posted the question in an idle time when there wasn't many people around...

When I read the question that goes with text field and changing something, _alpha for example, or text now showing correctly, that embedding font is the first thing I have in my mind...

Why??? Because Flash needs to know what font to use to create the animation for it, in this case _alpha change or what font to use to render out the special effect... Static text embeds font automatically, but dynamic and input texts needs to be specified by the author so that Flash can recognize what font to use...

Does this answer your question, Warrior??? Appreciate your help on the forum, Warrior... ;)

Warrior
04-19-2003, 05:44 PM
Thank you CyanBlue,
That cleared up a problem. I just try and help as much as I can on the forums and I would like help my self. Mother Thersa said "You have to give to receive". ActionScript.org (http://www.actionscript.org) is way better then UltraShock because it does not take a loooooooooong time to load the pages and it is a proffesional place for a flash community. I hate UltraShock, they think they know everything :rolleyes: This place is cool :cool:

Thanks for you're help CyanBlue :D