# Pass a tween to a loader

**URL:** <https://forum.kirupa.com/t/pass-a-tween-to-a-loader/285969>\
**Category:** flash\
**Created:** [April 8, 2009, 11:10am UTC](https://forum.kirupa.com/t/pass-a-tween-to-a-loader/285969 "2009-04-08T11:10:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djburner](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@djburner](https://forum.kirupa.com/u/djburner)\
**Post date:** [April 8, 2009, 11:10am UTC](https://forum.kirupa.com/t/pass-a-tween-to-a-loader/285969/1 "2009-04-08T11:10:14Z")

</div>

Hi guys, I’ve got a problem loading a Swf with a particular tween. I’ve got a jukebox in an external Swf, I’ve called a Loader and then add a child with a function, but I don’t want that that swf just appears, I want a smooth alpha effect but I cannot figure it out how to do it. Here’s my code and any help will be much appreciated.

jukebox\_btn.addEventListener(MouseEvent.CLICK, onJukebox);  
var jukebox:Loader = new Loader()

function onJukebox(e:MouseEvent){  
addChild (jukebox)

//THIS IS WHAT IM NOT KNOW HOW TO DO IT RIGHT.  
**[COLOR=Black]  
jukebox[/COLOR].addTween(jukebox, {alpha:1, time:1, transition:“easeInSine”});**

```
jukebox.x = 440;
jukebox.y = 678;

var request:URLRequest = new URLRequest("jukebox.swf");
jukebox.load(request)

stop()

```

}

Tnxs to anybody that could give me some income!
