# Tween Alpha !?

**URL:** <https://forum.kirupa.com/t/tween-alpha/264668>\
**Category:** flash\
**Created:** [June 28, 2008, 11:40am UTC](https://forum.kirupa.com/t/tween-alpha/264668 "2008-06-28T11:40:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oirartnoc](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@oirartnoc](https://forum.kirupa.com/u/oirartnoc)\
**Post date:** [June 28, 2008, 11:40am UTC](https://forum.kirupa.com/t/tween-alpha/264668/1 "2008-06-28T11:40:20Z")

</div>

\*\* function homeumMouseOverHandler(ev:MouseEvent):void{

```
var myTweenAlpha:Tween = new Tween(homeum, "alpha", Strong.easeInOut, 0, 1, 1, true); 

```

}

function homeumMouseOutHandler(ev:MouseEvent):void{

```
var myTweenAlpha:Tween = new Tween(homeum, "alpha", Strong.easeOut, 0, 1, 1, true); 

```

}\*\*

Why this code is not doing the tween alpha when i remove the mouse ?  
Can anyone help me?

---

<div class="post-metadata">

**Author:** ![oirartnoc](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@oirartnoc](https://forum.kirupa.com/u/oirartnoc)\
**Post date:** [June 28, 2008, 11:42am UTC](https://forum.kirupa.com/t/tween-alpha/264668/2 "2008-06-28T11:42:28Z")

</div>

My other question is:

I want to do a Intro with this function but without mouseEvent, just a simple movieClip that start when i enter at other page

function elastico2MouseOverHandler(ev:MouseEvent):void{  
var myTween2 = new Tween(elastico2, “scaleY”, Regular.easeOut, 0,1,0.5,true);  
}

how i do it ?

---

<div class="post-metadata">

**Author:** ![nortago](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nortago/32/1240_2.png) [@nortago](https://forum.kirupa.com/u/nortago)\
**Post date:** [June 28, 2008, 11:47am UTC](https://forum.kirupa.com/t/tween-alpha/264668/3 "2008-06-28T11:47:04Z")

</div>

I’ve not had much use with the in built Tween class… I’m a TweenLite kinda guy myself - but just looking at your code - the Tweens are both the same? - shouldn’t the RollOut tween be

var myTweenAlpha:Tween = new Tween(homeum, “alpha”, Strong.easeOut, 1, 0, 1, true);

??

As for the intro, I think what you’re looking for is

function elastico2MouseOverHandler(ev:Event = null):void{   
var myTween2 = new Tween(elastico2, “scaleY”, Regular.easeOut, 0,1,0.5,true);  
}

elastico2MouseOverHandler();

Hope this helps…

---

<div class="post-metadata">

**Author:** ![oirartnoc](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@oirartnoc](https://forum.kirupa.com/u/oirartnoc)\
**Post date:** [June 28, 2008, 11:57am UTC](https://forum.kirupa.com/t/tween-alpha/264668/4 "2008-06-28T11:57:39Z")

</div>

Thanks it works !  
just a simple thing, lol, i am a newbie in this.

---

<div class="post-metadata">

**Author:** ![oirartnoc](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@oirartnoc](https://forum.kirupa.com/u/oirartnoc)\
**Post date:** [June 28, 2008, 4:03pm UTC](https://forum.kirupa.com/t/tween-alpha/264668/5 "2008-06-28T16:03:10Z")

</div>

just one more thing, to change the color to something how i do ?  
i have tryed this but doesnt work.  
my\_mc.color = FFFFF ;

---

<div class="post-metadata">

**Author:** ![nortago](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nortago/32/1240_2.png) [@nortago](https://forum.kirupa.com/u/nortago)\
**Post date:** [June 28, 2008, 4:32pm UTC](https://forum.kirupa.com/t/tween-alpha/264668/6 "2008-06-28T16:32:34Z")

</div>

colour (sorry color) is usually in 0xFFFFFF format…  
If you’re doing a lot of Tween work - i’d seriously recommend you to get Greensocks TweenLite

[tweenlite.com](http://tweenlite.com)

Then you could use something like this

TweenLite.to(mc, 2, {alpha:1, tint:0x998855}):
