# OOP components

**URL:** <https://forum.kirupa.com/t/oop-components/5847>\
**Category:** flash\
**Created:** [September 23, 2002, 11:31pm UTC](https://forum.kirupa.com/t/oop-components/5847 "2002-09-23T23:31:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediachickie](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mediachickie](https://forum.kirupa.com/u/mediachickie)\
**Post date:** [September 23, 2002, 11:31pm UTC](https://forum.kirupa.com/t/oop-components/5847/1 "2002-09-23T23:31:21Z")

</div>

OOP - components –

well i have been doing the tutorials from MM on components.

I am kinda familiar with the idea of components seeing that I come from Director - where behaviours ruled the roost…

So after checking out how to build components - i am a little lost. Some code I have seen looks like a jazzed up extension prototype- some is hardcore OOP.

Does anyone have any examples -tutorials - insight - want to guide me through making one ( something simple like a preloader or whatever) ?? I say guide only because I really do want to learn it rather than have it done for me…🙂

---

<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:** [September 24, 2002, 7:21am UTC](https://forum.kirupa.com/t/oop-components/5847/2 "2002-09-24T07:21:48Z")

</div>

The reference tutorial is [this one](http://www.flashcomponents.net/tutorials/triangle/triangle.html) but you can read all of them, it’s interesting. Actually, the whole site is interesting…

Also, I have another great tutorial, but in French, unfortunately… Tell me if you want it anyway.

pom :asian:

---

<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:** [September 24, 2002, 1:50pm UTC](https://forum.kirupa.com/t/oop-components/5847/3 "2002-09-24T13:50:16Z")

</div>

I have done that tutorial - its on MM –

would love the french one- i should know enough french to manage 😉

---

<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:** [September 24, 2002, 5:11pm UTC](https://forum.kirupa.com/t/oop-components/5847/4 "2002-09-24T17:11:01Z")

</div>

> \*Originally posted by mediachickie \*  
> \*\*would love the french one- i should know enough french to manage 😉 \*\*  
> Tu parles français???

OK, it’s [there](http://www.flashxpress.net/index.php?f_composant&r_flash/f_composant/co_crea/comporte).

pom :asian:

---

<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:** [September 24, 2002, 5:21pm UTC](https://forum.kirupa.com/t/oop-components/5847/5 "2002-09-24T17:21:08Z")

</div>

oui - je parle le francais un petit peu…  
pardon my grammer

---

<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:** [September 25, 2002, 4:56am UTC](https://forum.kirupa.com/t/oop-components/5847/6 "2002-09-25T04:56:23Z")

</div>

heh ily-

the tutorial is pretty dead on… easy to understand and all of that. Of course, my french is a little on the sucky side… but the AS is all english. I understood more french than I thought I would have… thanks!

Have you built components - ? Gone the oop route?

I have a couple of ideas on what I want to build component wise -but am having a hard time moving from the smartclip mindshift to OOP- I get the OOP bit - but its the putting it into practice bit…

any ideas on where to start … how to start?

I get the whole inheritance bit. It the getters and setters and methods I think that Kinda screw me up… :(…  
Is the point of having getters and setters to encapsulate the code - and not have the props accessed directly but rather through methods?

any insight at all would be appreciated. I read the kickass Robin D’s tutorial - but still…got a bit of a thick head I am afraid …

---

<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:** [September 25, 2002, 5:18am UTC](https://forum.kirupa.com/t/oop-components/5847/7 "2002-09-25T05:18:58Z")

</div>

I haven’t really tried to build a component seriously yet ☹ But I guess I’ll have to do it sooner or later… I’m a bit scared, to be honnest. 🙂  
And about the OO approch, yeah, I think you have to practice and get used to it. But Robin D’s tutorial is for Flash 5. If you want something more Flash MX oriented, I think you’ll find it at [quantumwave](http://www.quantumwave.com/flash/).

Good luck!

pom :asian:

---

<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:** [September 25, 2002, 11:26am UTC](https://forum.kirupa.com/t/oop-components/5847/8 "2002-09-25T11:26:37Z")

</div>

yeah I hear ya- its fro flash 5 but a lot of the prinicples don’t change I suppose.

Maybe you and I should challenge each other to make a component… that way we both do one and learn… but it would have to be something super easy- cos I am just not there yet…

thanks for the dave yang suggestion…

---

<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:** [September 25, 2002, 2:50pm UTC](https://forum.kirupa.com/t/oop-components/5847/9 "2002-09-25T14:50:02Z")

</div>

Sounds like a good idea 🙂  
What kind of component should we do?

pom 😛

---

<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:** [September 25, 2002, 2:52pm UTC](https://forum.kirupa.com/t/oop-components/5847/10 "2002-09-25T14:52:02Z")

</div>

something TRES easy…

something I can wrap my head around.  
something that we can extend later.

anyone have any ideas?

---

<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:** [September 26, 2002, 7:37am UTC](https://forum.kirupa.com/t/oop-components/5847/11 "2002-09-26T07:37:56Z")

</div>

How about a component that you drag and drop on an object to make it draggable? Easy enough I think.

pom :asian:

---

<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:** [September 26, 2002, 6:44pm UTC](https://forum.kirupa.com/t/oop-components/5847/12 "2002-09-26T18:44:03Z")

</div>

alrighty - now i just have to wrap my head around coding it in an OOP way - rather than the usual. Good idea!

---

<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:** [September 28, 2002, 11:35pm UTC](https://forum.kirupa.com/t/oop-components/5847/13 "2002-09-28T23:35:13Z")

</div>

Héhé, I finished mine… Did you?

pom 😛

---

<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:** [September 29, 2002, 1:44pm UTC](https://forum.kirupa.com/t/oop-components/5847/14 "2002-09-29T13:44:55Z")

</div>

you’re way ahead of me - i started and then got stuck. Will post something tomorrow!!🙂
