# Problem with classes and loadMovie

**URL:** https://forum.kirupa.com/t/problem-with-classes-and-loadmovie/194185
**Category:** Uncategorized
**Created:** [July 21, 2006, 4:43am UTC](https://forum.kirupa.com/t/problem-with-classes-and-loadmovie/194185 "2006-07-21T04:43:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![angaturama](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@angaturama](https://forum.kirupa.com/u/angaturama)
#### Post date: [July 21, 2006, 4:43am UTC](https://forum.kirupa.com/t/problem-with-classes-and-loadmovie/194185/1 "2006-07-21T04:43:36Z")

</div>

i got this code, and i have no problem loading the picture, but if i run the onEnterFrame, after loading the movie stops???, could someone explain me, how can i prevent this, to don’t stop the onEnterFrame.

thanks in advance

```auto
   public function MovieClipUtils (path:String) {
       lMovie(path);
    }
    
    public static function lMovie (path) {
       var m_empty:MovieClip = _root.createEmptyMovieClip ("m_empty", 100);
       m_empty._x = 100;
       m_empty._y = 100;
       m_empty.loadMovie(path);
       
        m_empty.onEnterFrame=function(){
           
           trace("something")
           
           }
       
    }
}

```
