dcsimg
A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: addEventListener

  1. #21
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    Quote Originally Posted by cresquin
    Well, for very small projects/animations I'll stipulate that code on the timeline is ok, but the new best practice is to use AS3 as OOP and separate your code out into reusable chunks (classes). Then import the code you need as you need it.
    True but that mostly applies ( 80% of the cases ) to applications. Because when it gets to web design and site creation, although it would be nice to create a web page to be as OOP as possible, but that's not the case. That's why most developers and designers prefer having everything on a single layer and multiple frames. Building a web page with OOP on your mind is a total pain in the ass and almost suicide.

    Just my 2 cents.



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


  2. #22
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Location
    Los Angeles, CA
    Posts
    685
    My last 4 websites and my last 10 web banners have been 100% OOP. It allows me to reuse code from each so I don't have to recreate a lot of functionality. The only thing I don't use OOP for is creating quick prototypes and timeline animations, but even then I write my code so it can be easily classified and reused.

    I have maintained (and built, for that matter) flash sites that were created with standard code-on-the-timeline, and keeping all the scope straight is a PITA. "Why isn't this functions calling that variable?!?!".

    Since discovering Class based objects, my coding has become leaner meaner and much easier to read.

  3. #23
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    ^ Well, cool. I guess it's up to whatever work for you. It would really be great to develop full OOP web sites, just that one needs a nice library to get started. And since most of the people don't have tons of classes that are easy to use/reuse results into old methods. I started building some classes a while ago too, process kinda slow but it's worth the effort.



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


  4. #24
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Location
    Los Angeles, CA
    Posts
    685
    you just need to build what you need as you need it. You can do it PC, come over to the OOP side...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center