# What is wrong with this segment of code?

**URL:** <https://forum.kirupa.com/t/what-is-wrong-with-this-segment-of-code/182472>\
**Category:** flash\
**Created:** [March 18, 2006, 5:07pm UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-segment-of-code/182472 "2006-03-18T17:07:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermet](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@Hermet](https://forum.kirupa.com/u/Hermet)\
**Post date:** [March 18, 2006, 5:07pm UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-segment-of-code/182472/1 "2006-03-18T17:07:29Z")

</div>

What is wrong with this segment of code:

on (rollOver) {  
for (;; ) {  
on (rollOut) {break;}  
scrollingPane\_txt.scroll += 1;  
}  
}

---

<div class="post-metadata">

**Author:** ![Hermet](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@Hermet](https://forum.kirupa.com/u/Hermet)\
**Post date:** [March 19, 2006, 8:22am UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-segment-of-code/182472/2 "2006-03-19T08:22:16Z")

</div>

Amazing!!! It works perfectly. Thanks a million 🙂

---

<div class="post-metadata">

**Author:** ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)\
**Post date:** [March 19, 2006, 11:27am UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-segment-of-code/182472/3 "2006-03-19T11:27:46Z")

</div>

np
