# Hey kirupa! Reg. AS tricks!

**URL:** <https://forum.kirupa.com/t/hey-kirupa-reg-as-tricks/1073>\
**Category:** Uncategorized\
**Created:** [August 7, 2002, 9:26pm UTC](https://forum.kirupa.com/t/hey-kirupa-reg-as-tricks/1073 "2002-08-07T21:26:17Z")\
**Posts on this page:** 3\
**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:** [August 7, 2002, 9:26pm UTC](https://forum.kirupa.com/t/hey-kirupa-reg-as-tricks/1073/1 "2002-08-07T21:26:17Z")

</div>

Hey!

Ilyaslamasse agreed with me on the fact, that (probably) not many flash users know how to use the % operator…

Maybe you could throw this in your AS tricks…?

_(any integer with a “%2” attached can destinguish odd numbers from even numbers…_

Say i have the # 45… 45%2 = 1 = (odd number)

and # 46… 46%2 = 0 = (even number)

then just throw in an “if” statement to tell the 1 and 0 apart…! 🙂

(the odd/even trick was just 1 idea…)

---

<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:** [August 7, 2002, 11:29pm UTC](https://forum.kirupa.com/t/hey-kirupa-reg-as-tricks/1073/2 "2002-08-07T23:29:35Z")

</div>

Hey eilsoe,  
I’ll add that in tomorrow. Yeah, that sounds eerily similar to the Mod operator in C++ or VB.

Cheers!  
Kirupa :rambo:

---

<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:** [August 8, 2002, 7:53am UTC](https://forum.kirupa.com/t/hey-kirupa-reg-as-tricks/1073/3 "2002-08-08T07:53:35Z")

</div>

Good idea yes, but maybe you should talk about the % operator a little bit more generally too. For instance, Supra used it in his gallery code brilliantly. Just an idea.

pom :asian:
