View Full Version: AS2 Crash Course!

lassie >>Discussions >>AS2 Crash Course!


<< Prev | Next >>

fatbuoy1- 01-08-2008

But if theres no error report when the right function isnt called, doesnt that make debugging harder? Edit: Actually dont answer that, im sure smarter people than me would have noticed that if it was the case!

bigmac- 01-08-2008

I see where you're coming from... yes and no. There is EXTREMELY picky error reporting when a function is called improperly. If the method isn't called correctly, you know about it. If the method just doesn't ever get called, it's pretty easy to deduce because you never get the outcome of the function (which we assume there must be an outcome, otherwise, why were you calling it). And if a method isn't called, it's pretty easy to deduce that you need to check the listener. The advantage of the listener system is that it reduces dependencies. Dependency is evil within programming. Lets say that you have Object A which relies on Object B to provide a service. Should B ever change, you risk that breaking A. Broadcasters and listeners aim to reduce the hard links of objects talking back and forth. It makes each object more independent. The idea is that if I were to remove the custom cursor object from the Lassie engine, the rest of the engine would keep on happily plugging away without it since nothing else relied on it.

fatbuoy1- 01-12-2008

Well, I handed this in yesterday. Surprisingly it turned out near enough the way I wanted it to, even with time constraints! Thanks again for all your help Greg, literally couldn't have done it without you! I've got a few weeks off now, so may try looking at AS3... Anyways, the final site is here if you're interested. :D

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.