# What is wrong with this!

**URL:** <https://forum.kirupa.com/t/what-is-wrong-with-this/195882>\
**Category:** Uncategorized\
**Created:** [August 3, 2006, 7:49pm UTC](https://forum.kirupa.com/t/what-is-wrong-with-this/195882 "2006-08-03T19:49:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax17](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gregmax17/32/2243_2.png) [@gregmax17](https://forum.kirupa.com/u/gregmax17)\
**Post date:** [August 3, 2006, 7:49pm UTC](https://forum.kirupa.com/t/what-is-wrong-with-this/195882/1 "2006-08-03T19:49:57Z")

</div>

I have used this script so many times, but it isn’t working, why? I am simply loading the swf file before it plays. This is the script:

onClipEvent(load) {  
totalframes = \_totalframes;  
}  
onClipEvent(enterFrame) {

```
if(_framesloaded == totalframes) {
    nextScene();
    trace('this');
}

```

}

It will trace ‘this’ repeatingly, but it will not go to the next scene!!! What is wrong with this? Also, I am exporting this as Flash Player 5.

please help me, thanks.
