# Dynamic text box shows \_level0.page\_text

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-shows--level0-page-text/236773>\
**Category:** flash\
**Created:** [August 23, 2007, 3:48pm UTC](https://forum.kirupa.com/t/dynamic-text-box-shows--level0-page-text/236773 "2007-08-23T15:48:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aigarinsh](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@aigarinsh](https://forum.kirupa.com/u/aigarinsh)\
**Post date:** [August 23, 2007, 3:48pm UTC](https://forum.kirupa.com/t/dynamic-text-box-shows--level0-page-text/236773/1 "2007-08-23T15:48:40Z")

</div>

Can anybody tell me what could be wrong and why do I get this. I have a dynamic text box with instance name and Var set to page\_text. Then I have this code:

```auto
this.onEnterFrame = function(){
    page_text = "page " + current_page + "/" + total_pages;
}

```

Before I get current\_page and total\_pages. If there are more pages, everything works fine and it shows like “page 1/5”, but if I have only one page, it shows “\_level0.page\_text” instead of “page 1/1”. current\_page and total\_pages trace correctly. Any ideas?
