# onEnterFrame question

**URL:** <https://forum.kirupa.com/t/onenterframe-question/172318>\
**Category:** flash\
**Created:** [December 13, 2005, 8:43am UTC](https://forum.kirupa.com/t/onenterframe-question/172318 "2005-12-13T08:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kritikal](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kritikal/32/1699_2.png) [@kritikal](https://forum.kirupa.com/u/kritikal)\
**Post date:** [December 13, 2005, 8:43am UTC](https://forum.kirupa.com/t/onenterframe-question/172318/1 "2005-12-13T08:43:01Z")

</div>

Hey guys,

was just wondering if it’s possible to use more than one onEnterFrame event handler at the same time, something like

```auto

_root.container.onEnterFrame = function():Void {
if (_root.container.holder._width != 0) {                
                delete this.onEnterFrame;
                //whatever code goes here                
            }
        };
        _root.bkContainer.onEnterFrame = function():Void {            
            if (_root.bkContainer._width !=0) {
                delete this.onEnterFrame;    
                this._width = Stage.width;
                this._height = Stage.height;
            }
        };
        mvcPrivate.onEnterFrame = function():Void {
            if (this._width !=0) {
                delete this.onEnterFrame;    
                //whatever code goes here
            }
        };

```

well I tried that and it didn’t really work, it only seems to work for the 1st onEnterFrame but doesn’t work for the rest… is there a way I can make it work for all 3?
