# Flash crashes

**URL:** <https://forum.kirupa.com/t/flash-crashes/280448>\
**Category:** flash\
**Created:** [January 27, 2009, 7:12pm UTC](https://forum.kirupa.com/t/flash-crashes/280448 "2009-01-27T19:12:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![altedious](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@altedious](https://forum.kirupa.com/u/altedious)\
**Post date:** [January 27, 2009, 7:12pm UTC](https://forum.kirupa.com/t/flash-crashes/280448/1 "2009-01-27T19:12:19Z")

</div>

i am experiencing this automatic flash crash:

if i run this code on frame 1 everything is ok(this is a simple function that scale a clip):

```auto
function one(){
    clip.scaleX+=.01
    clip.scaleY+=.01
    var _timer=setTimeout(one,1)
    trace(_timer)
    if (_timer==135){
        clearTimeout(_timer)
    }
    
}
one()

```

if i make a keyframe at frame 15 for example and cut and paste this code , flash will crash, anyone have an idea why?
