# Make the code shorter?

**URL:** <https://forum.kirupa.com/t/make-the-code-shorter/52873>\
**Category:** Uncategorized\
**Created:** [May 28, 2004, 6:05am UTC](https://forum.kirupa.com/t/make-the-code-shorter/52873 "2004-05-28T06:05:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helga](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@helga](https://forum.kirupa.com/u/helga)\
**Post date:** [May 28, 2004, 6:05am UTC](https://forum.kirupa.com/t/make-the-code-shorter/52873/1 "2004-05-28T06:05:09Z")

</div>

Hello everyone^^  
It’s my first post here, and my english is not very good, so I’m a bit stressed ^^. I hope I post in the good section.

Well. It’s not really about a problem that I ask, it’s just that I ask me some questions about how to mak some actionscripts shorter and more smart maybe.

I wonder if tere is a way to write shorter:

```auto
Mc.onRollOver = function() {
blahblahblah...}
Mc.onRollOut = function() {
nanananananana....}
titleMc.onPress = function() {
lalalalalalalala....}

```

btw: I discovered a few time ago,

```auto
that if(....){
blahblahblah...}

```

could be written a shorter way, but I can’t find the syntax no more 😉

Hope you can help me growing as a lil coder… ^^

_~H~_
