# AS3 - What is needed to make this return true?

**URL:** <https://forum.kirupa.com/t/as3-what-is-needed-to-make-this-return-true/210127>\
**Category:** flash\
**Created:** [December 15, 2006, 6:36am UTC](https://forum.kirupa.com/t/as3-what-is-needed-to-make-this-return-true/210127 "2006-12-15T06:36:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fingers](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fingers](https://forum.kirupa.com/u/Fingers)\
**Post date:** [December 15, 2006, 6:36am UTC](https://forum.kirupa.com/t/as3-what-is-needed-to-make-this-return-true/210127/1 "2006-12-15T06:36:41Z")

</div>

I thought that when an object is passed as the first parameter with apply, that object then becomes ‘this’ within the function to which it is applied. How should my code read in order to get this==objectA to return true instead of false?

```auto

package {
    import flash.display.Sprite;

    public class ApplyExample extends Sprite{
        
        private var objectA:Object = new Object();
            
        public function ApplyExample(){
            var arr:Array = new Array(1,2,3)
            func1.apply(objectA, arr)
        }
        
        public function func1(...rest):void{
            trace("this == objectA? " + this==objectA);
        }
    }
}

```

Fingers:)
