PDA

View Full Version : Help with Practical example of a simple OOP app (files attached)



phunkadelik
October 3rd, 2007, 08:25 PM
Hi everybody!

I have tried put together a simple oop application, that maybe could help many to understand how objects can interact with each other in the display list, if it would actually work.

I have attached the classes+fla, it's a really simple app that have 2 color samples that should pass their color value to the "applyColor" method of another movie clip on the stage.

My problem though is that I can't make the colorSamples to access the "applyColor" method of the other movieclip.

Can somebody be of any help ?

Thanks! A lot!

Files here (http://www.neubyte.com/noob/public/flash/stuffs/TheColorApp.zip)

phunkadelik
October 4th, 2007, 07:03 PM
No one? come on !!!

I'll pay a couple of beers to the one who makes this blob change color when you click on a sample (in strict mode).

hakukaji
October 5th, 2007, 09:08 AM
I was just messing around with it, and to be honest it's kind of all over the place, and very tightly coupled.

phunkadelik
October 5th, 2007, 10:15 PM
double post

phunkadelik
October 5th, 2007, 10:22 PM
I was just messing around with it, and to be honest it's kind of all over the place, and very tightly coupled.

thanks for trying, I think I see what you mean by tightly coupled, is that because the color sample has to call directly the "changeColor" method of the blob object ?

any advice on making it loosely? how would you have done it?

should I make the blob listen and react to whatever event the sample is dipatching instead? how do I do that?

thanks man