# Robert Penners programming FMX book

**URL:** <https://forum.kirupa.com/t/robert-penners-programming-fmx-book/34818>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 6:55pm UTC](https://forum.kirupa.com/t/robert-penners-programming-fmx-book/34818 "2003-11-06T18:55:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![APDesign](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@APDesign](https://forum.kirupa.com/u/APDesign)\
**Post date:** [November 6, 2003, 6:55pm UTC](https://forum.kirupa.com/t/robert-penners-programming-fmx-book/34818/1 "2003-11-06T18:55:28Z")

</div>

Hey, I just picked up this book because of all the great stuff I’ve heard about it, and I was wondering if there is anything in here that would be considered “bad practice” now with Flash MX 2004 being out. In chapter 2 it goes over a lot of Object Oriented programming techniques which include things like **constructor** and his custom ways of finding the **constructor** , as well as the use of **proto** instead of new. Also his extend(); function

```auto

Function.prototype.extend(superclass){
this.prototype. __proto__ = superclass.prototype;
this.prototype. __constructor__ = superclass;
}

```

and superCon(); funciton

```auto

Child.prototype.superCon = function(){
  arguments .caller.prototype. __proto__.constructor.apply(this,arguments);
}

```

were two that worried me a little as far as “am I learning outdated stuff that will just confuse me when it no longer works” (which I hate being victim to)

Any comments or suggestions as far as what to ignore/do “better” would be appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2003, 6:59pm UTC](https://forum.kirupa.com/t/robert-penners-programming-fmx-book/34818/2 "2003-11-06T18:59:36Z")

</div>

perhaps better in FMX2004 forums, but never mind 🙂

**proto** should definitely not be used in FMX2004. I think you weren’t even supposed to use it in MX - it was only there to work around a ‘quirk’ in the way FMX handles OOP.

I can’t provide any more info, as I’m terrible at OOP. I’m sure Sen will see this though 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 7, 2003, 5:18am UTC](https://forum.kirupa.com/t/robert-penners-programming-fmx-book/34818/3 "2003-11-07T05:18:59Z")

</div>

Well, thanks for the **proto** confirmation anyway, I was pretty sure that was a no no =D.
