# Question On Coding "Style" \[FMX\]

**URL:** <https://forum.kirupa.com/t/question-on-coding-style-fmx/94961>\
**Category:** Uncategorized\
**Created:** [November 18, 2003, 10:13pm UTC](https://forum.kirupa.com/t/question-on-coding-style-fmx/94961 "2003-11-18T22:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)\
**Post date:** [November 18, 2003, 10:13pm UTC](https://forum.kirupa.com/t/question-on-coding-style-fmx/94961/1 "2003-11-18T22:13:22Z")

</div>

This is essentially a question for FMX but all flash applys really.

I have applied some code to a movie clip symbol, and used:

[AS]onClipEvent (enterFrame) { Do This a}[/AS]

then

[AS]onClipEvent (enterFrame) { Do This b}[/AS]

And used OnClipEvent (enterFrame) about 5 times in total - I did this so that it is easy to remove one of these commands if I want.

Obviously, I could include all of my OnClipEvent (enterFrame) actions into 1 OnClipEvent (enterFrame) separated by colons, like this:

[AS]onClipEvent (enterFrame) {  
Do This a;  
Do This b;  
}  
[/AS]

I am wondering if by using it 5 separate times I am causing flash to slow down a significant amount, or even at all.

Please let me know,  
thx.
