# Problem migrating onClipEnter frame and angle property in as 3.0

**URL:** <https://forum.kirupa.com/t/problem-migrating-onclipenter-frame-and-angle-property-in-as-3-0/256554>\
**Category:** flash\
**Created:** [April 4, 2008, 12:47am UTC](https://forum.kirupa.com/t/problem-migrating-onclipenter-frame-and-angle-property-in-as-3-0/256554 "2008-04-04T00:47:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clem\_c\_rock](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@clem\_c\_rock](https://forum.kirupa.com/u/clem_c_rock)\
**Post date:** [April 4, 2008, 12:47am UTC](https://forum.kirupa.com/t/problem-migrating-onclipenter-frame-and-angle-property-in-as-3-0/256554/1 "2008-04-04T00:47:01Z")

</div>

Hello,  
I’m trying to migrate a simple actionscript 2.0 app to 3.0 and I’m having some problems finding equivelents of the onEnterFrame methods and the angle property in as 3.0.

In this section, I need to have the t movieClip variable onEnterFrame method call the mover function:

```auto

for(var i:Number = 0; i < numberOfItems; i++)
{
    var t = attachMovie("icon", "icon"+i, i+1);
    t.angle = i * ((Math.PI*2)/numberOfItems);
    t.onEnterFrame = mover;
}        

```

In this section, I need to find an as 3.0 equivelent to the this.angle property:

```auto

function mover()
{
    this._x = Math.cos(this.angle) * radiusX + centerX;
       this._y = Math.sin(this.angle) * radiusY + centerY;
    var s:Number = this._y/(centerX + radiusY);
    trace(" **** angle: " + this.angle);
    
    this._xscale = this._yscale = s * 100;
    this.angle += this._parent.speed;
    trace( "this: " + this);
    
    this.swapDepths(Math.round(this._xscale) + 100);
}

```

Any ideas?

Thanks,  
Eric
