<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Make your own reusable classes using Flash and AS3]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Sat, 21 Nov 2009 17:13:14 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment7757</link><description><![CDATA[Seems like there is an error in the tutorial.   On page 3 when you mention the code "should" complete without errors the following error msg is encountered:
1120: Access of undefined property myClip.<br/><br/>
(Comment posted by Eric at 10:52 am, Mon 26th Nov 2007)]]></description><author>no@spam.com (Eric)</author><pubDate><![CDATA[Mon, 26 Nov 2007 10:52:43 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment7757</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment7777</link><description><![CDATA[I also wrote:
"In the fla file, create a MovieClip symbol. Give it an instance name of “myClip” and change the code to the following:"

Creating the MovieClip, and giving it an instance name of "myClip" (in the fla) is up to you, and if you do it will run without errors. <br/><br/>
(Comment posted by  at 8:39 pm, Mon 26th Nov 2007)]]></description><author>no@spam.com ()</author><pubDate><![CDATA[Mon, 26 Nov 2007 20:39:54 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment7777</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9086</link><description><![CDATA[I've converted my shape to a movie clip symbol, named it myClip in the .fla, and it still gives me the 1120 error. It shows the movie, but won't give me the output that we wanted.  Is this a harmless error?<br/><br/>
(Comment posted by joe at 6:46 pm, Thu 24th Jan 2008)]]></description><author>no@spam.com (joe)</author><pubDate><![CDATA[Thu, 24 Jan 2008 18:46:37 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9086</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9220</link><description><![CDATA[Drop a square convert to movieclip
in lower left corner
make sure instance name is same as movie clip name i.e myClip<br/><br/>
(Comment posted by  at 1:11 pm, Thu 31st Jan 2008)]]></description><author>no@spam.com ()</author><pubDate><![CDATA[Thu, 31 Jan 2008 13:11:41 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9220</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9460</link><description><![CDATA[The reason people are having problems with this tutorial is this: 

var clipDragger:ClipDragger = new ClipDragger(myClip);

The variable name should be different than the class name, since if you capitalize both by accident you will get this error.

To fix:

var myClipDragger:ClipDragger = new ClipDragger(myClip);
<br/><br/>
(Comment posted by Alek Mlynek at 4:16 pm, Tue 12th Feb 2008)]]></description><author>no@spam.com (Alek Mlynek)</author><pubDate><![CDATA[Tue, 12 Feb 2008 16:16:52 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment9460</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment11485</link><description><![CDATA[Be sure to give your movie clip the INSTANCE NAME of "myClip"... that'll take care of that 1120 error.<br/><br/>
(Comment posted by Rob at 8:59 pm, Sat 17th May 2008)]]></description><author>no@spam.com (Rob)</author><pubDate><![CDATA[Sat, 17 May 2008 20:59:46 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment11485</guid></item><item><title><![CDATA[Comment #7]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment11985</link><description><![CDATA[Great tutorial.

Is it possible to do this without having to create a new Object for every clip?

//something like this
//import and create an object

import com.mysite.mouse.ClipDragger;
var dragIt:ClipDragger = new ClipDragger();

// and then later assign it to any clip
dragIt(myClip);
dragIt(myClip2);
//etc..

Or how could I do this without having to create a new object each time you want to make something draggable?

Thanks<br/><br/>
(Comment posted by fs_tigre at 1:05 pm, Tue 16th Sep 2008)]]></description><author>no@spam.com (fs_tigre)</author><pubDate><![CDATA[Tue, 16 Sep 2008 13:05:34 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment11985</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12270</link><description><![CDATA[Wow, I have been struggling with as3 for a long time. all the resources I could find were always way to complex for someone like me, just trying to make the transition. Thanks for a great tutorial. Your style, and flow is great!<br/><br/>
(Comment posted by Nick Barfuss at 11:54 pm, Thu 13th Nov 2008)]]></description><author>no@spam.com (Nick Barfuss)</author><pubDate><![CDATA[Thu, 13 Nov 2008 23:54:49 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12270</guid></item><item><title><![CDATA[Comment #9]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12285</link><description><![CDATA[I feel like I should be paying you for this.
I have been studying ActionScript 3.0 for a few weeks now and just couldn't wrap my head fully around the "class" thing.
This explains it extremely well including the actual code to integrate the class with the movie.
Which elsewhere on the web, is the most under explained portion.
Not to mention you threw in a few common errors to give people the experience of actually how to deal with it.
Very well assembled tutorial, thank you immensely for taking the time to write it.<br/><br/>
(Comment posted by lunarteq at 8:23 pm, Tue 18th Nov 2008)]]></description><author>no@spam.com (lunarteq)</author><pubDate><![CDATA[Tue, 18 Nov 2008 20:23:00 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12285</guid></item><item><title><![CDATA[Comment #10]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12315</link><description><![CDATA[I must say that this is the best tutorial of classes in AS 3.0 i have read. You should not excuse yourself (in the text) for making it to easy, cause that's what's needed. Most tutorials focus of making the writer shine instead of explaining the subject in an easy manner. I myself is a multimedia producer and teacher in Sweden and is always looking for well explained material. This is absolutely a top ten. Keep up the good work. 
Best regards
/Harry<br/><br/>
(Comment posted by Harry Jäderström at 4:11 pm, Mon 24th Nov 2008)]]></description><author>no@spam.com (Harry Jäderström)</author><pubDate><![CDATA[Mon, 24 Nov 2008 16:11:07 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12315</guid></item><item><title><![CDATA[Comment #11]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12401</link><description><![CDATA[Thanks for this great tutorial.  It was exactly what I needed to finally understand working with external classes on mc's .... I LOVE AS3<br/><br/>
(Comment posted by Josh at 9:28 pm, Thu 11th Dec 2008)]]></description><author>no@spam.com (Josh)</author><pubDate><![CDATA[Thu, 11 Dec 2008 21:28:28 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12401</guid></item><item><title><![CDATA[Comment #12]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12546</link><description><![CDATA[I agree, best as3 classes tutorial I've seen so far, many thanks!<br/><br/>
(Comment posted by Juan at 4:21 am, Fri 23rd Jan 2009)]]></description><author>no@spam.com (Juan)</author><pubDate><![CDATA[Fri, 23 Jan 2009 04:21:08 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12546</guid></item><item><title><![CDATA[Comment #13]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12580</link><description><![CDATA[Great stuu. thanks for the tutorial it has given me a good start on the path of claa usage in as3<br/><br/>
(Comment posted by sam at 9:27 am, Sat 31st Jan 2009)]]></description><author>no@spam.com (sam)</author><pubDate><![CDATA[Sat, 31 Jan 2009 09:27:39 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12580</guid></item><item><title><![CDATA[Comment #14]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12664</link><description><![CDATA[Thanks for this great tutorial. Its a great help to me.<br/><br/>
(Comment posted by Mike at 3:06 am, Thu 19th Feb 2009)]]></description><author>no@spam.com (Mike)</author><pubDate><![CDATA[Thu, 19 Feb 2009 03:06:57 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12664</guid></item><item><title><![CDATA[Comment #15]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12766</link><description><![CDATA[Awesome, thank you for your help! You are truly a blessing for those who want to learn AS 3.0!

More power! KUDOS for a great man like you! :D<br/><br/>
(Comment posted by Roger at 3:37 am, Wed 18th Mar 2009)]]></description><author>no@spam.com (Roger)</author><pubDate><![CDATA[Wed, 18 Mar 2009 03:37:35 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12766</guid></item><item><title><![CDATA[Comment #16]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12918</link><description><![CDATA[Great tutorial.  As others mentioned Your teaching technique is first-rate.  For someone new to AS3 it is imperative to understand clearly the fundamentals and you did an excellent job of providing them.  I think you may have missed your calling as you seem to have a natural understanding of clear teaching principals.  Thanks for the great tutorial and please keep up the good work.<br/><br/>
(Comment posted by Jim at 1:22 pm, Sat 25th Apr 2009)]]></description><author>no@spam.com (Jim)</author><pubDate><![CDATA[Sat, 25 Apr 2009 13:22:40 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12918</guid></item><item><title><![CDATA[Comment #17]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12961</link><description><![CDATA[The best tutorial on how to import multiple classes and actually use them, not just trace something! I know, tracing can be very helpfull (in case of emergency) and I'm getting good at that :-)<br/><br/>
(Comment posted by Wiki Bean at 12:15 pm, Mon 4th May 2009)]]></description><author>no@spam.com (Wiki Bean)</author><pubDate><![CDATA[Mon, 04 May 2009 12:15:40 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12961</guid></item><item><title><![CDATA[Comment #18]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12978</link><description><![CDATA[Im somewhat puzzled by your use of oop. I'd expect the class you made to be an inherintance of a movieclip holding a bitmap ... But instead you create objects that sort-of "bind" a movieclip to some functions. All explained very clear but I think a little wrong in architectural sense. Im no real programmer myself and my remark is not ment to be judgemental. But I think this tutorial sets people on the wrong foot. ... You let people still create their flash object with an own made instance name and then bind the class funtions to yet another variable name. Just let your class be the created movieclip and put it on screen with addChild ... Dont you agree?<br/><br/>
(Comment posted by Joeri at 4:57 pm, Wed 6th May 2009)]]></description><author>no@spam.com (Joeri)</author><pubDate><![CDATA[Wed, 06 May 2009 16:57:57 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12978</guid></item><item><title><![CDATA[Comment #19 (Reply to Comment #18)]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13177</link><description><![CDATA[Joeri,

Well, with this tutorial, I wasn't pretending to be teaching OOP, just the basics of how classes work with flash. What you are talking about is the difference between inheritance and composition. The classes in the tutorial use composition, that is, each class "has a" MovieClip instance as a property. In contrast, if inheritance is used instead, each class needs to extend the MovieClip class, and each class "is a" MovieClip.

I made this clear in a follow-up tutorial, "AS3 Classes using inheritance" where I explain the other technique (as it applies to MovieClips anyway). Both techniques are valid. The reason I did it this way was on purpose, really. By doing this, I could take someone from the starting point of what they already knew (assuming they formerly programmed solely on the timeline) into new territory (class programming). Also, I wanted to make it clear that the concept of an object need not be something visible on the screen, it can also be a behavior or something.

I've also admitted elsewhere that I was fairly new to AS3 classes myself when I wrote this, I don't have an OOP background, but having (at the time of writing, anyway) only recently "got it" myself re: the whole classes / packages / classpath thing, I saw the opportunity to write a tutorial that put it all together in a way that I wish I had seen it presented myself, and thereby help a lot of other people "get it" too.

I appreciated your comment, and I have been meaning to respond, and I'm sorry I took so long to do so.<br/><br/>
(Comment posted by Jody Hall at 10:11 pm, Mon 29th Jun 2009)]]></description><author>no@spam.com (Jody Hall)</author><pubDate><![CDATA[Mon, 29 Jun 2009 22:11:11 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13177</guid></item><item><title><![CDATA[Comment #20]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12994</link><description><![CDATA["Besides, if you’ve never programmed with classes before, this should all be starting to make sense to you, possibly for the first time ever."

Dear Jody,

This could not be more true.... with your tutorial, I have made a huge step in my programming path. A very big thank you to you.

Alix<br/><br/>
(Comment posted by Alix at 10:07 am, Tue 12th May 2009)]]></description><author>no@spam.com (Alix)</author><pubDate><![CDATA[Tue, 12 May 2009 10:07:14 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment12994</guid></item><item><title><![CDATA[Comment #21]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13089</link><description><![CDATA[Thank you,  THANK YOU,     T H A N K Y O U !!!

maybe now I can progress, I think the next step would be inheritance and extending classes that already exists.<br/><br/>
(Comment posted by spiralvista at 9:15 pm, Mon 8th Jun 2009)]]></description><author>no@spam.com (spiralvista)</author><pubDate><![CDATA[Mon, 08 Jun 2009 21:15:36 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13089</guid></item><item><title><![CDATA[Comment #22]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13176</link><description><![CDATA[Merci Jody, 
I have been struggling with the class stuff for some days and now i totally get it! How wonderful, tremble Parallax and others flartoolkit classes, i'm coming.
Thanks again, really great tutorial.<br/><br/>
(Comment posted by Olivier at 9:36 pm, Mon 29th Jun 2009)]]></description><author>no@spam.com (Olivier)</author><pubDate><![CDATA[Mon, 29 Jun 2009 21:36:08 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13176</guid></item><item><title><![CDATA[Comment #23]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13214</link><description><![CDATA[great tutorial.
really helpful.
thanks.<br/><br/>
(Comment posted by David at 9:32 am, Fri 10th Jul 2009)]]></description><author>no@spam.com (David)</author><pubDate><![CDATA[Fri, 10 Jul 2009 09:32:15 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13214</guid></item><item><title><![CDATA[Comment #24]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13313</link><description><![CDATA[Great introduction to creating your first Class, nice and simple to understand. Just run through it and didn't see any errors, so i guess any problems have been fixed.

Right... onto the next :D<br/><br/>
(Comment posted by redPanda at 3:18 am, Wed 5th Aug 2009)]]></description><author>no@spam.com (redPanda)</author><pubDate><![CDATA[Wed, 05 Aug 2009 03:18:17 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13313</guid></item><item><title><![CDATA[Comment #25]]></title><link>http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13493</link><description><![CDATA[Hey Jordy Thank You so much for this you helps me to reach another level!!! Thank you for be a great Teacher!!!<br/><br/>
(Comment posted by Harmonique at 8:12 pm, Fri 25th Sep 2009)]]></description><author>no@spam.com (Harmonique)</author><pubDate><![CDATA[Fri, 25 Sep 2009 20:12:30 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using-Flash-and-AS3/Page1.html#Comment13493</guid></item></channel></rss>