# Flash giving me an error for no reason?

**URL:** <https://forum.kirupa.com/t/flash-giving-me-an-error-for-no-reason/193890>\
**Category:** Uncategorized\
**Created:** [July 19, 2006, 2:06am UTC](https://forum.kirupa.com/t/flash-giving-me-an-error-for-no-reason/193890 "2006-07-19T02:06:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indiasfinest](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@indiasfinest](https://forum.kirupa.com/u/indiasfinest)\
**Post date:** [July 19, 2006, 2:06am UTC](https://forum.kirupa.com/t/flash-giving-me-an-error-for-no-reason/193890/1 "2006-07-19T02:06:55Z")

</div>

so i used this code:

```php

onClipEvent (load) {
    adding = false
    subtracting = true
}

onClipEvent (enterFrame) {
    if (_alpha <= 25){
        adding = true
        subtracting = false
    }
    if (_alpha >=65) {
        adding = false
        subtracting = true
    }
    if (adding){_alpha ++}
    if (subtracting){_alpha --}
}

```

and flash keeps telling me that the “onClipEvent (enterFrame)” function is only available to movie clips. the problem is that what i applied this code to IS a movie clip, what gives?  
PS: i converted a button to a movie clip. (from the common libraries)  
thanks for the help
