# Currentframe

**URL:** <https://forum.kirupa.com/t/currentframe/6534>\
**Category:** Uncategorized\
**Created:** [October 9, 2002, 8:20pm UTC](https://forum.kirupa.com/t/currentframe/6534 "2002-10-09T20:20:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![eilsoe](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@eilsoe](https://forum.kirupa.com/u/eilsoe)\
**Post date:** [October 9, 2002, 8:20pm UTC](https://forum.kirupa.com/t/currentframe/6534/1 "2002-10-09T20:20:56Z")

</div>

Hey guys!

I’ve run into something here…

I have an object (MC), with this code:

_onClipEvent(load){  
\_currentframe=random(20 );  
}_

pretty simple right? Now why does it start on frame 1 anyway??

---

<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:** [October 9, 2002, 8:42pm UTC](https://forum.kirupa.com/t/currentframe/6534/2 "2002-10-09T20:42:36Z")

</div>

Shouldn’t it work?

It just won’t…

---

<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:** [October 9, 2002, 8:45pm UTC](https://forum.kirupa.com/t/currentframe/6534/3 "2002-10-09T20:45:39Z")

</div>

\_currentframe is a read-only property. You can’t set the current frame with it, you can just access it. Why don’t you use gotoAndPlay? 😛 [SIZE=1]I hope this is for the game…[/SIZE] =)

---

<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:** [October 9, 2002, 8:47pm UTC](https://forum.kirupa.com/t/currentframe/6534/4 "2002-10-09T20:47:17Z")

</div>

duuuuuhhh…

Gawd… Of course…

thanks Pom… my mind isn’t really working well today… :crazy:

---

<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:** [October 9, 2002, 9:14pm UTC](https://forum.kirupa.com/t/currentframe/6534/5 "2002-10-09T21:14:28Z")

</div>

This suits you better: :+)

---

<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:** [October 9, 2002, 9:18pm UTC](https://forum.kirupa.com/t/currentframe/6534/6 "2002-10-09T21:18:06Z")

</div>

oh yeah? Howcome? 🙂

---

<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:** [October 9, 2002, 9:22pm UTC](https://forum.kirupa.com/t/currentframe/6534/7 "2002-10-09T21:22:40Z")

</div>

Dunno. Just a feeling. That’s how I feel when my mind’s playing tricks with me… :+) :crazy: (-:

---

<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:** [October 9, 2002, 9:28pm UTC](https://forum.kirupa.com/t/currentframe/6534/8 "2002-10-09T21:28:06Z")

</div>

Hehe! 🙂  
Did ya hear? We’re gonna get a whole new section on [kirupa.com](http://kirupa.com) with photoshop tutes! 😛

And GUESS who’s gonna make some of’em! 🙂

---

<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:** [October 9, 2002, 9:33pm UTC](https://forum.kirupa.com/t/currentframe/6534/9 "2002-10-09T21:33:29Z")

</div>

Are we? No I didn’t hear about that. That’s freakin’ awesome man!! Get crazy, man :crazy: oups, I meant :+)
