# Tween Magnify AS3 HELP

**URL:** <https://forum.kirupa.com/t/tween-magnify-as3-help/314812>\
**Category:** flash\
**Created:** [October 9, 2010, 11:11am UTC](https://forum.kirupa.com/t/tween-magnify-as3-help/314812 "2010-10-09T11:11:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duchman](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@duchman](https://forum.kirupa.com/u/duchman)\
**Post date:** [October 9, 2010, 11:11am UTC](https://forum.kirupa.com/t/tween-magnify-as3-help/314812/1 "2010-10-09T11:11:56Z")

</div>

Hello,  
I made this ball tweening around scene on button click.

```auto
import com.greensock.*; 
import com.greensock.easing.*;
stop();
but.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent)
{ anim();
}function anim():void{
TweenMax.fromTo(mala, 4, {x:400, y:150, scaleX:2, scaleY:2},{bezierThrough:[{x:340, y:160},{x:285, y:185}], 
             orientToBezier:false, scaleX:3, scaleY:3, 
              ease:Elastic.easeOut});
}

```

I would like it to magnify certain bckground stuf when it crosses over them.  
Found this tutorial on magnify on

> **[Create an Impressive Magnifying Effect with ActionScript 3.0](https://code.tutsplus.com/tutorials/create-an-impressive-magnifying-effect-with-actionscript-30--active-354)**
>
> Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Activetuts+. This tutorial was first published in April, 2009.
> In this tutorial we'll create a...

  
Just how to make it to do the same, but with listening to my ball tween, not cursor movements?  
Thanks.
