it's more of a taste thing i guess, and this question kinda revolves around
'oop vs procedural' etc.
These discussions have been 'waged' alot of times, and often result in
language religion wars ;)
Personally, if code is readable and makes sense, it's allright by me.
Meinte
On 9/11/06, Adrian Ionut Beschea <[EMAIL PROTECTED]> wrote:
Hello,
I've just had a debate with a colleague of mine about the some of the as
2.0 best practice.
We both like to separate design from code, but we have slightly different
ways of doing it.
This is what he does :
He leaves design elements on stage and includes and external .as file to
handle the logic.
#include 'script.as'
I like to think in terms of oop.
So instead of including a script, I write something use:
SampleClass.main(this)
main is something like this :
public static function main(target_mc:MovieClip) {
instance = new SampleClass(target_mc);
}
What do you guys think ? Which method is more of your taste and why ?
---------------------------------
How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
rates.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com