# Classes + color matrix

**URL:** <https://forum.kirupa.com/t/classes-color-matrix/273349>\
**Category:** flash\
**Created:** [October 14, 2008, 6:27pm UTC](https://forum.kirupa.com/t/classes-color-matrix/273349 "2008-10-14T18:27:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [October 14, 2008, 6:27pm UTC](https://forum.kirupa.com/t/classes-color-matrix/273349/1 "2008-10-14T18:27:36Z")

</div>

Any advice on classes? I think I’m coming round to understanding maybe.

Classes are basically functions outside of the fla.

So say at present I have a page, MC which acts like a class, I attach it 5 times, pass variables, it runs and populates itself.

…

So if I wanted to convert it to a class? I stick the code in the class, then call the class, like attaching the MC.

But how/where would the variables go which are now in the class? Do they get imported to the targetMC?

IE

I call the page class in a for loop, it creates an MC, adds variables, populates with with MCs, and loads in XML, images.

Right/Wrong?

//////

I tried color matrixing some clips to b/w, its works, but I am zooming in and out in a 3d environment,

when they get past the camera/ window depth, the processor goes nuts and the clips flip between b/w and colour

if I cache the MCs as bitmaps would this solve the problem?

:panda: Confuszed [panda.com](http://panda.com)
