# Sprite.alpha problems

**URL:** <https://forum.kirupa.com/t/sprite-alpha-problems/261373>\
**Category:** flash\
**Created:** [May 27, 2008, 2:10am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373 "2008-05-27T02:10:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 27, 2008, 2:10am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/1 "2008-05-27T02:10:20Z")

</div>

Hello

I have a sprite that contains a graphic and a text field object. When I set the alpha of this sprite to 0 only the graphic becomes transparent but the text field doesn’t any clue why this is happening and what is the solution to this problem?

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 27, 2008, 4:42am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/2 "2008-05-27T04:42:48Z")

</div>

if you are not trying to fade the textfield, you could set it’s visible property to false.  
i think you need to embed the font or something to enable transparency…

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 27, 2008, 7:48am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/3 "2008-05-27T07:48:05Z")

</div>

^i tried setting embedFonts to true once, and the fonts arent rendered… is there something else that should be done?

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [May 27, 2008, 8:12am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/4 "2008-05-27T08:12:11Z")

</div>

This is simply fade effect fluent appearance.  
The Font to embed not it is necessary.  
Close all white square and change his alpha.

```auto

import fl.transitions.*;
import fl.transitions.easing.*;

var i:int=0;
var j:int=0;
var f_tween = new Tween(f_mc, "rotation", None.easeOut, 0, 360, 1, true); 		
f_tween.looping=true;
//white_rect
var white_rect_tween = new Tween(white_rect, "alpha", None.easeOut, 1, 0, 5, true); 		
f_tween.looping=true;

white_rect_tween.addEventListener(TweenEvent.MOTION_FINISH, function(TweenEvent){
white_rect_tween.yoyo();
j++;
 if (j%2==0)
 {
  if (i==0) 
  {i=1;my_text.text="THIS MEGA GOOD";}
  else
  {i=0;my_text.text="This is simply fade effect fluent appearance.
"+
  "The Font to embed not it is necessary.
"+
  "Close all white square and change his alpha!";
  }
 }
});

```

example to look  
[http://murmadillo.tut.su/fla/fade.swf](http://murmadillo.tut.su/fla/fade.swf)  
[http://murmadillo.tut.su/fla/fade.zip](http://murmadillo.tut.su/fla/fade.zip)

---

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 27, 2008, 7:29pm UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/5 "2008-05-27T19:29:18Z")

</div>

Hi yea thanks all for the responses and tried embedding the fonts but as John said that dont rendered anymore. any suggestions.

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 28, 2008, 12:40am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/6 "2008-05-28T00:40:11Z")

</div>

i did a bit of reading, and you don’t just setEmbed = true. I think you really need to embed the font, like amarghosh said using [embed] tags, or you could do it through the Library panel of Flash CS3.

---

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 28, 2008, 1:01am UTC](https://forum.kirupa.com/t/sprite-alpha-problems/261373/7 "2008-05-28T01:01:59Z")

</div>

Hi I have embed the fonts using libray symbol but as I posted in another thread after embedding the font my text now appears blured and not as crisp as before and this is really annoying. Any help will be well appreciated.

Thanks
