PDA

View Full Version : OOP components



mediachickie
September 23rd, 2002, 07:31 PM
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...:)

pom
September 24th, 2002, 03:21 AM
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:

mediachickie
September 24th, 2002, 09:50 AM
I have done that tutorial - its on MM --

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

pom
September 24th, 2002, 01:11 PM
Originally posted by mediachickie
would love the french one- i should know enough french to manage ;) http://www.kirupa.com/forums/smileys_files/confused.gif 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:

mediachickie
September 24th, 2002, 01:21 PM
oui - je parle le francais un petit peu...
pardon my grammer

mediachickie
September 25th, 2002, 12:56 AM
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 ....

pom
September 25th, 2002, 01:18 AM
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:

mediachickie
September 25th, 2002, 07:26 AM
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...

pom
September 25th, 2002, 10:50 AM
Sounds like a good idea :)
What kind of component should we do?

pom :P

mediachickie
September 25th, 2002, 10:52 AM
something TRES easy....


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

anyone have any ideas?

pom
September 26th, 2002, 03:37 AM
How about a component that you drag and drop on an object to make it draggable? Easy enough I think.

pom :asian:

mediachickie
September 26th, 2002, 02:44 PM
alrighty - now i just have to wrap my head around coding it in an OOP way - rather than the usual. Good idea!

pom
September 28th, 2002, 07:35 PM
Héhé, I finished mine... Did you?

pom :P

mediachickie
September 29th, 2002, 09:44 AM
you're way ahead of me - i started and then got stuck. Will post something tomorrow!!:)