all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

question for Actionscript / Java programmers!


question for Actionscript / Java programmers! shottogan
3/27/2006 11:15:09 PM
flash actionscript:
hey. recently i have learned java programming and the powerful object-oriented
things that can be done in it. i was an actionscript programmer first, and
never used such techniques. now looking at actionscript i've found that one
could most definently define their own classes and replicate object-oriented
programming in actionscript. but is this worthwhile? or does flash multi-thread
much better than java and thus it's not necessary to have collections of
objects get visited by visitors and observables notify its observers that it
changed? thanks,
Re: question for Actionscript / Java programmers! shottogan
3/27/2006 11:31:13 PM
Re: question for Actionscript / Java programmers! shottogan
3/28/2006 12:00:00 AM
cmon, someone has to know this stuff.
Re: question for Actionscript / Java programmers! LuigiL
3/28/2006 12:00:00 AM
That would depend on the project, situation and personal preference. In large
scale apps when working with multiple developers... classes would be the way to
go. My personal preference is classes. But I don't see a lot of classes when
working as a freelance coder. Deadlines and reusing old projects influence the
way agencies want/need to work. Still a whole lot of inefficient code out
there...
Personally, I use classes whenever possible. I have a class lib for a lot of
'actions': loading assets (jpg, swf, xml...), slideshows, presentations and so
on. And a complete framework using several design patterns to quickly build
complete websites. And then there is MM saying that AS2 should be programmed in
OOP.

Nope. No overloading in AS2. Every method must have a unique name.
AddThis Social Bookmark Button