onClipEvent and CPU usage

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

Hey Karen :slight_smile:
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:

Hi Pom!

Nice to see you. :slight_smile:

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

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

pom :phil:

Thanks Pom. :slight_smile: