A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: learning OOP, where to start?

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    learning OOP, where to start?

    i now mostly understand the syntax of actionscript, and understand the idea of oop languages, but i seem to program very messy. i dont use encapsulation (i dont even really know how and when to use it, and even what it exactly is).
    i dont use any design patterns that i didnt make up myself (and thus are very bad). i'm right now reading the OOP article (and all the oop design patterns) on wikipedia, but i don't really get it. where should i look for something like a tutorial for oop techniques?

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    5
    ActionScript 3.0 Design Patterns is a nice one on Design patterns. But to really get a grip of OOP, i would highly recommend trying out a beginner level book on Java. Or you can check out the videos from Stanford .(lectures y Mehran Sahami)

  3. #3
    Senior Member
    Join Date
    Mar 2005
    Posts
    206
    Essential Actionscript 3.0 has a pretty good primer on OOP

  4. #4
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    I'd say a combo of the two books mentioned is a great resource. EAS3 will expand your understanding of flash while design patterns will strengthen your understanding of OOP.

    The AS3 Cookbook is a nice quick reference for specific tasks.

  5. #5
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    thanks alot. i'm reading actionscript design patterns now.

    is there possibly a book about programming AI in actionscript? i want to create a space scrolling shooter, with simple AI. they should have a goal and fly towards it and fire, thats all. but i dont know how to do that.

  6. #6
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    I don't know of any book specially on AI in AS but you could try this book: http://www.amazon.com/ActionScript-3...4414413&sr=8-1 and after that, you can start surfing the net for articles on AI. AI is essentially language independent since the idea behind it is always the same, only the implementation in different due to the different programming languages that implement it.



    | 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. |


  7. #7
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    i already got that book. i have been surfing for ai articles all day and a bit yesterday. cant't find anything really good. the ai books that i can find all seem very complicated. isn't there something for beginners AI (no matter the language then)

  8. #8
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    I don't know of any easy books... AI is essentially: applying algorithms.
    I'm currently studying AI at University too and sadly, I can't point you in a way... It's seems complicated only at first look, once you understand the idea behind it then everything will become clear. Just don't give up, you can do it.



    | 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. |


  9. #9
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    I doubt you'll find much help in actual AI texts about the simple behavior you want to implement. There's no AI in there. They just need to figure out the direction to the goal and move that way. Unless you were including pathfinding, in which case you should look up graphs and a*.

    I did create the beginnings of an AS3 AI library, but never did anything useful with it. You're free to use it if you can find a use. I was going to use it to evolve auto-generated enemies in a top-down shooter so that they evolve to be most effective against the particular player playing.

    http://code.google.com/p/as3learning/

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