classes used in oop are generally separate .as files (in flash) that are templates that create custom objects which interact with each other (it is possible to program oop as a single file using as1-style prototype chains but these are outdated and frankly painful)
a class would consist of properties (or variables in procedural parlence) which allow the class/object to store data and / or methods (or functions) which allow the class/object to execute functionality what you've described is more a procedural style of coding where the whole program exists in a single block of code with all of it's variables and functions in one place. This isn't oop (object oriented programming). http://en.wikipedia.org/wiki/Object-oriented_programming http://en.wikipedia.org/wiki/Procedural_programming hope this helps ax On Wed, Dec 9, 2009 at 3:50 PM, beno - <flashmeb...@gmail.com> wrote: > On Wed, Dec 9, 2009 at 11:27 AM, Matt S. <mattsp...@gmail.com> wrote: > > > On Wed, Dec 9, 2009 at 10:20 AM, beno - <flashmeb...@gmail.com> wrote: > > >> You are correct. I don't fully understand classes, although I doubt > I'm > > far > > > from it. I will google what you have suggested. Thank you! > > > > > > > Didnt you say: "I have many years working with python"? Were you able > > to do that without touching oop or classes, "beno"? > > > > I'm ashamed to admit it, yes. I might very well be working in classes and > what I'm doing in python could very well be oop, but I've never studied it > as such and I obviously need to. I write all sorts of things like: > > def whatever(var, var2): > stuff here > > and call that from other functions. If that's classes and oop, then I've > been all over that for years. I dunno <:-} > > We're OT again <caution> > beno > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders