Re: [Flashcoders] OOP Tutorial

2010-03-06 Thread Meinte van't Kruis
hmm, perhaps I was sounding a bit too snobbish. My point is really that,
espessially with
learning computer stuff, be it creative(photoshop etc.) or coding, alot of
resources
are available online, and I'm always surprised when people start about books
as soon
as there's some questions or tutorial requests, not trying to offend anyone
here, books are good
for alot of people, but to be fair, alot that is available in books is  at
least also available on the internet.

On Fri, Mar 5, 2010 at 10:33 PM, Paul Andrews  wrote:

> On 05/03/2010 18:04, Dave Watts wrote:
>
>> Guess it depends on the person, I have been a Flash developer for over 5
 years
 and have yet to open a book about it.


>>> Gosh. We can all learn something from a good book, no matter how
>>> accomplished we are.
>>>
>>> You might have learned something new or just plain faster.
>>>
>>>
>> Not to speak for Meinte, but different people learn things different
>> ways. Some people learn well by reading books, others don't. This has
>> nothing to do with how smart or accomplished we are or aren't.
>>
>>
>
> I like lynda.com but it doesn't mean I won't pick up a book too. Meinte
> might be surprised if he took a little time to pick up a book - it's a
> different perspective. I'm not suggesting that Meinte isn't a good developer
> because he hasn't picked up a book, but I think he has missed out by
> excluding that experience and it isn't a great idea to exclude a resource
> for five years for whatever reason. It's certainly a practice I'd discourage
> for anyone wanting to learn anything.
>
> My comment maybe is a bit "old school" in that I am totally surprised that
> someone would be learning something and apparently avoiding books. I guess
> it might be a phase of the digital revolution.
>
> Meinte - books are good. It makes me feel sad that you haven't picked one
> up.
>
> Paul
>
>
>
>  Dave Watts, CTO, Fig Leaf Software
>> http://www.figleaf.com/
>> http://training.figleaf.com/
>>
>> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
>> GSA Schedule, and provides the highest caliber vendor-authorized
>> instruction at our training centers, online, or onsite.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Meinte van't Kruis

Freelance Flash Platform Dev (mxml,actionscript,flex,air)

malatze
http://www.malatze.com/
http://www.linkedin.com/in/meinte
mei...@malatze.com
0617459744
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-06 Thread Mark Winterhalder
On Fri, Mar 5, 2010 at 4:47 PM, Susan Day  wrote:
> I've been googling as3 oop but the
> tutorials don't seem to address my needs. Can you help me understand what it
> is I'm looking to do so I can google up the appropriate tutorials?

Wikipedia is your friend for looking things up, and getting an
overview of what is out there:


Apart from books and websites, there's also another option: Google
'Open Course Ware' and have a look at iTunes U for video lectures or
podcasts. You probably won't find much that is AS3 specific, but e.g.
Java is very similar. For learning OOP concepts, the differences don't
matter.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Paul Andrews

On 05/03/2010 18:04, Dave Watts wrote:

Guess it depends on the person, I have been a Flash developer for over 5
years
and have yet to open a book about it.
   

Gosh. We can all learn something from a good book, no matter how
accomplished we are.

You might have learned something new or just plain faster.
 

Not to speak for Meinte, but different people learn things different
ways. Some people learn well by reading books, others don't. This has
nothing to do with how smart or accomplished we are or aren't.
   


I like lynda.com but it doesn't mean I won't pick up a book too. Meinte 
might be surprised if he took a little time to pick up a book - it's a 
different perspective. I'm not suggesting that Meinte isn't a good 
developer because he hasn't picked up a book, but I think he has missed 
out by excluding that experience and it isn't a great idea to exclude a 
resource for five years for whatever reason. It's certainly a practice 
I'd discourage for anyone wanting to learn anything.


My comment maybe is a bit "old school" in that I am totally surprised 
that someone would be learning something and apparently avoiding books. 
I guess it might be a phase of the digital revolution.


Meinte - books are good. It makes me feel sad that you haven't picked 
one up.


Paul



Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Dave Watts
>> Guess it depends on the person, I have been a Flash developer for over 5
>> years
>> and have yet to open a book about it.
>
> Gosh. We can all learn something from a good book, no matter how
> accomplished we are.
>
> You might have learned something new or just plain faster.

Not to speak for Meinte, but different people learn things different
ways. Some people learn well by reading books, others don't. This has
nothing to do with how smart or accomplished we are or aren't.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Susan Day
On Fri, Mar 5, 2010 at 12:41 PM, Benny  wrote:

> No need for inheritance then, just give your Star class the desired
> parameters in the constructor, e.g
>
> package
> {
>import flash.display.MovieClip;
>
>public class Star extends MovieClip
>{
>public function Star(lineColor:uint, fillColor:uint)
>{
>graphics.lineStyle(1, lineColor);
>graphics.beginFill(fillColor);
>graphics.moveTo(144, 277);
>graphics.lineTo(188, 184);
>graphics.lineTo(288, 170);
>graphics.lineTo(216, 98);
>graphics.lineTo(232, 0);
>graphics.lineTo(144, 47);
>graphics.lineTo(55, 1);
>graphics.lineTo(72, 100);
>graphics.lineTo(0, 170);
>graphics.lineTo(99, 184);
>graphics.endFill();
>}
>}
> }
>
> When you then instantiate your class you just pass on the desired
> parameters, like:
>
> import Star;
>
> var myStar:Star = new Star(0xFF, 0xFF);
> addChild(myStar);
>
> THAT'S what I was looking for! Thanks.
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Paul Andrews

On 05/03/2010 16:38, Meinte van't Kruis wrote:

Guess it depends on the person, I have been a Flash developer for over 5
years
and have yet to open a book about it.
   


Gosh. We can all learn something from a good book, no matter how 
accomplished we are.


You might have learned something new or just plain faster.


On Fri, Mar 5, 2010 at 5:22 PM, Karina Steffenswrote:

   

Hi Susan,

I wouldn't recommend relying just on online tutorials, or discussion posts
for a something as huge as learning AS3 OOP. The best thing would be to get
a book that covers the subject, such as Colin Moock's Essential
ActionScript
3.0 from O'Reilly, or any one of the other excellent books on the subject
(Rich Shupe's comes to mind, although I haven't read it myself I heard good
things about it).

To answer your question, you don't need to implement an interface to use
another class as an object, you'd just instantiate it and call its methods.
You would implement an interface if you wanted the class that contains the
object to "pretend" to be that object, in which case it would implement the
public methods and pass them along to its instance of the object. But
again,
a book would explain it much better than that...

Karina


 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
Sent: 05 March 2010 3:48
To: Flash Coders List
Subject: [Flashcoders] OOP Tutorial

Hi;
Now I would like to call my class Star from another class, but pass
different values to its variables. Do I need to implement the
inheriting
class as Star? I'm kinda lost here. I've been googling as3 oop but the
tutorials don't seem to address my needs. Can you help me understand
what it
is I'm looking to do so I can google up the appropriate tutorials?
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 



   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OOP Tutorial

2010-03-05 Thread Karina Steffens
I guess so. I'm not happy to delve into a new programming language before
I've read an entire book from cover to cover. Yes, even bricks :) I've got
all the Moock-books and some cook-books and a whole lot of other books...

> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> boun...@chattyfig.figleaf.com] On Behalf Of Meinte van't Kruis
> Sent: 05 March 2010 4:39
> To: Flash Coders List
> Subject: Re: [Flashcoders] OOP Tutorial
> 
> Guess it depends on the person, I have been a Flash developer for over
> 5
> years
> and have yet to open a book about it.
> 
> On Fri, Mar 5, 2010 at 5:22 PM, Karina Steffens  archaic.net>wrote:
> 
> > Hi Susan,
> >
> > I wouldn't recommend relying just on online tutorials, or discussion
> posts
> > for a something as huge as learning AS3 OOP. The best thing would be
> to get
> > a book that covers the subject, such as Colin Moock's Essential
> > ActionScript
> > 3.0 from O'Reilly, or any one of the other excellent books on the
> subject
> > (Rich Shupe's comes to mind, although I haven't read it myself I
> heard good
> > things about it).
> >
> > To answer your question, you don't need to implement an interface to
> use
> > another class as an object, you'd just instantiate it and call its
> methods.
> > You would implement an interface if you wanted the class that
> contains the
> > object to "pretend" to be that object, in which case it would
> implement the
> > public methods and pass them along to its instance of the object. But
> > again,
> > a book would explain it much better than that...
> >
> > Karina
> >
> >
> > > -Original Message-
> > > From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-
> > > boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
> > > Sent: 05 March 2010 3:48
> > > To: Flash Coders List
> > > Subject: [Flashcoders] OOP Tutorial
> > >
> > > Hi;
> > > Now I would like to call my class Star from another class, but pass
> > > different values to its variables. Do I need to implement the
> > > inheriting
> > > class as Star? I'm kinda lost here. I've been googling as3 oop but
> the
> > > tutorials don't seem to address my needs. Can you help me
> understand
> > > what it
> > > is I'm looking to do so I can google up the appropriate tutorials?
> > > TIA,
> > > Susan
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> 
> 
> 
> --
> Meinte van't Kruis
> 
> Freelance Flash Platform Dev (mxml,actionscript,flex,air)
> 
> malatze
> http://www.malatze.com/
> http://www.linkedin.com/in/meinte
> mei...@malatze.com
> 0617459744
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OOP Tutorial

2010-03-05 Thread Benny
No need for inheritance then, just give your Star class the desired
parameters in the constructor, e.g

package
{
import flash.display.MovieClip;

public class Star extends MovieClip
{
public function Star(lineColor:uint, fillColor:uint)
{
graphics.lineStyle(1, lineColor);
graphics.beginFill(fillColor);
graphics.moveTo(144, 277);
graphics.lineTo(188, 184);
graphics.lineTo(288, 170);
graphics.lineTo(216, 98);
graphics.lineTo(232, 0);
graphics.lineTo(144, 47);
graphics.lineTo(55, 1);
graphics.lineTo(72, 100);
graphics.lineTo(0, 170);
graphics.lineTo(99, 184);
graphics.endFill();
}
}
}

When you then instantiate your class you just pass on the desired
parameters, like:

import Star;

var myStar:Star = new Star(0xFF, 0xFF);
addChild(myStar);

- Benny


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Meinte van't Kruis
Guess it depends on the person, I have been a Flash developer for over 5
years
and have yet to open a book about it.

On Fri, Mar 5, 2010 at 5:22 PM, Karina Steffens wrote:

> Hi Susan,
>
> I wouldn't recommend relying just on online tutorials, or discussion posts
> for a something as huge as learning AS3 OOP. The best thing would be to get
> a book that covers the subject, such as Colin Moock's Essential
> ActionScript
> 3.0 from O'Reilly, or any one of the other excellent books on the subject
> (Rich Shupe's comes to mind, although I haven't read it myself I heard good
> things about it).
>
> To answer your question, you don't need to implement an interface to use
> another class as an object, you'd just instantiate it and call its methods.
> You would implement an interface if you wanted the class that contains the
> object to "pretend" to be that object, in which case it would implement the
> public methods and pass them along to its instance of the object. But
> again,
> a book would explain it much better than that...
>
> Karina
>
>
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> > boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
> > Sent: 05 March 2010 3:48
> > To: Flash Coders List
> > Subject: [Flashcoders] OOP Tutorial
> >
> > Hi;
> > Now I would like to call my class Star from another class, but pass
> > different values to its variables. Do I need to implement the
> > inheriting
> > class as Star? I'm kinda lost here. I've been googling as3 oop but the
> > tutorials don't seem to address my needs. Can you help me understand
> > what it
> > is I'm looking to do so I can google up the appropriate tutorials?
> > TIA,
> > Susan
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Meinte van't Kruis

Freelance Flash Platform Dev (mxml,actionscript,flex,air)

malatze
http://www.malatze.com/
http://www.linkedin.com/in/meinte
mei...@malatze.com
0617459744
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Valentin Schmidt
Susan Day wrote:
> Hi;
> Now I would like to call my class Star from another class, but pass
> different values to its variables. Do I need to implement the inheriting
> class as Star? I'm kinda lost here. I've been googling as3 oop but the
> tutorials don't seem to address my needs. Can you help me understand what it
> is I'm looking to do so I can google up the appropriate tutorials?

omit "as3" in your google search, your questions are not AS3 related at
all, but rather related to general OOP concepts.

as usual a good place to start:
http://en.wikipedia.org/wiki/Object-oriented_programming

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OOP Tutorial

2010-03-05 Thread Karina Steffens
Hi Susan,

I wouldn't recommend relying just on online tutorials, or discussion posts
for a something as huge as learning AS3 OOP. The best thing would be to get
a book that covers the subject, such as Colin Moock's Essential ActionScript
3.0 from O'Reilly, or any one of the other excellent books on the subject
(Rich Shupe's comes to mind, although I haven't read it myself I heard good
things about it).

To answer your question, you don't need to implement an interface to use
another class as an object, you'd just instantiate it and call its methods.
You would implement an interface if you wanted the class that contains the
object to "pretend" to be that object, in which case it would implement the
public methods and pass them along to its instance of the object. But again,
a book would explain it much better than that...

Karina


> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
> Sent: 05 March 2010 3:48
> To: Flash Coders List
> Subject: [Flashcoders] OOP Tutorial
> 
> Hi;
> Now I would like to call my class Star from another class, but pass
> different values to its variables. Do I need to implement the
> inheriting
> class as Star? I'm kinda lost here. I've been googling as3 oop but the
> tutorials don't seem to address my needs. Can you help me understand
> what it
> is I'm looking to do so I can google up the appropriate tutorials?
> TIA,
> Susan
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders