# Text.caption = +1 on enterframe

**URL:** <https://forum.kirupa.com/t/text-caption-1-on-enterframe/210349>\
**Category:** Uncategorized\
**Created:** [December 18, 2006, 2:05am UTC](https://forum.kirupa.com/t/text-caption-1-on-enterframe/210349 "2006-12-18T02:05:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimebagplan](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Dimebagplan](https://forum.kirupa.com/u/Dimebagplan)\
**Post date:** [December 18, 2006, 2:05am UTC](https://forum.kirupa.com/t/text-caption-1-on-enterframe/210349/1 "2006-12-18T02:05:15Z")

</div>

Hi all !  
I have a dynamic text on my scene. this text is inside a MC.

inside my text MC i have add an action script layer with this code.

this.onEnterFrame = function () {  
text.caption +=1  
}

but, it doesnt work of course 😃

i would like when i launch my project, on enterframe, the caption of my text = +1.  
i am really lost !!  
Thanks for any help !  
Bye.
