You mean like
button.onRelease = function() { trace("hello from " + this);
obviously not in AS3, you would have to write few more lines...
I guess it's okay as long as it works and does what you want along with
the hope that you can easily fix it when it breaks in the latest browser
6 months down the line :)
Questions is/are:
Are you writing code you want to re-use?
Are you wanting to decouple stuff?
Are you wanting to make stuff easy to fix?
Are you just chucking something together?
There are loads of arguments for and against I guess, it's just what you
are happy working with and what suits the job.
Glen
Anthony Pace wrote:
JS style Function scope instead of classical oop.
Steven Sacks wrote:
AS3 is based entirely on closures. Not sure what you mean by it being
an option.
Anthony Pace wrote:
I was wondering if anyone here uses closures in AS3? I like them a
ton; yet, I am wondering if they are ever used in a real world
development projects in AS3?
Can you see an excuse for using them? I know it does make
somethings easier to port to and from JS if coded right.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders