# onClipEvent and CPU usage

**URL:** <https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613>\
**Category:** flash\
**Created:** [February 2, 2003, 5:06pm UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613 "2003-02-02T17:06:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarenInPA](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@KarenInPA](https://forum.kirupa.com/u/KarenInPA)\
**Post date:** [February 2, 2003, 5:06pm UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613/1 "2003-02-02T17:06:25Z")

</div>

Hello all,

I am thinking to use about 7 “controlling” movie clips throughout a movie (each in an imported swf). These movie clips need to continuously check on the status of a chosen language variable, located in the root, and on a change implement some actions.

If this was MX, I’d use listeners for this to detect a change. But in Flash 5, I think I need the onClipEvent method. My question is this: How draining on the CPU will this be? Since there will be about 7 of these clips continuously running, I’m afraid of this issue.

Can anyone comment? I’m open to any and all advice/suggestions.

Thanks!  
Karen

---

<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:** [February 2, 2003, 6:29pm UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613/2 "2003-02-02T18:29:46Z")

</div>

Hey Karen 🙂  
If you run 7 enterFrames that do nothing but test a variable, I don’t think that it will really slow down your movie.  
But could you tell me how your status variable changes exactly?

pom :phil:

---

<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:** [February 2, 2003, 6:48pm UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613/3 "2003-02-02T18:48:06Z")

</div>

Hi Pom!

Nice to see you. 🙂

The status variable is controlled by language buttons at the top of one of the imported movies (i.e. english, french, spanish, etc.) On release, a variable holding the user’s preferred language changes to reflect the new choice.

The 7 imported movies are stacked imported sections of the site (only one visible at any given time). The onEnterFrames would do more than just check the root variable, they would also do some simple logic to determine if the chosen language is actually available for that section and update the display accordingly.

I’m thinking it shouldn’t be too bad on the processor, but it doesn’t seem very elegant to me.

Your thoughts?

-Karen

---

<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:** [February 2, 2003, 9:01pm UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613/4 "2003-02-02T21:01:52Z")

</div>

Sorry, I don’t see anything simpler if you really have to check all the time :-\ Maybe someone else will have an idea 🙂

pom :phil:

---

<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:** [February 3, 2003, 6:07am UTC](https://forum.kirupa.com/t/onclipevent-and-cpu-usage/12613/5 "2003-02-03T06:07:48Z")

</div>

Thanks Pom. 🙂
