# Scripts for frames

**URL:** <https://forum.kirupa.com/t/scripts-for-frames/26918>\
**Category:** Uncategorized\
**Created:** [July 28, 2003, 7:18am UTC](https://forum.kirupa.com/t/scripts-for-frames/26918 "2003-07-28T07:18:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saint\_cleve](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@saint\_cleve](https://forum.kirupa.com/u/saint_cleve)\
**Post date:** [July 28, 2003, 7:18am UTC](https://forum.kirupa.com/t/scripts-for-frames/26918/1 "2003-07-28T07:18:39Z")

</div>

i was wondering if there was a script that will get the frame number and display it on my movie??? i have 337 frames, and i am looking for an easier way than keyframing the number…if anyone knows…please share your knowledge with me!!!thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 7:31am UTC](https://forum.kirupa.com/t/scripts-for-frames/26918/2 "2003-07-28T07:31:32Z")

</div>

Place on your main timeline[AS]this.onEnterFrame = function(){  
myTextField.text = \_currentframe;  
}[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 9:10am UTC](https://forum.kirupa.com/t/scripts-for-frames/26918/3 "2003-07-28T09:10:27Z")

</div>

hey that is pretty kool, im gonna use that… it will add a bit more interest and business to some of my flash’s

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 7:52pm UTC](https://forum.kirupa.com/t/scripts-for-frames/26918/4 "2003-07-28T19:52:37Z")

</div>

im not exactly sure how to get that to work???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 9:29pm UTC](https://forum.kirupa.com/t/scripts-for-frames/26918/5 "2003-07-28T21:29:51Z")

</div>

Make a textfield with an instance name of myTextField and paste that code on your first frame.
