<?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: AS 3.0 Coming From 2.0 - Article 1]]></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>Sun, 22 Nov 2009 22:25:57 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6683</link><description><![CDATA[damn good tutorial for the beginners like me...
thanks a lot.. waiting for your article-2...
thank you very much 
<br/><br/>
(Comment posted by Bhavik at 9:32 am, Thu 11th Oct 2007)]]></description><author>no@spam.com (Bhavik)</author><pubDate><![CDATA[Thu, 11 Oct 2007 09:32:49 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6683</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6689</link><description><![CDATA[as simple as this seems, none of my 3.0 books are telling me this basic stuff! This makes so much more sense. Thank you! Got any more articles?<br/><br/>
(Comment posted by Shannon at 2:45 pm, Thu 11th Oct 2007)]]></description><author>no@spam.com (Shannon)</author><pubDate><![CDATA[Thu, 11 Oct 2007 14:45:31 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6689</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6690</link><description><![CDATA[Hi Bryan-

Thanks for the info.  2 questions:

1. In lesson 1, would "var myParent = parent;" need to exist in the movie clip you want to reference as parent?  I don't see how this could work otherwise.
2. In lesson 3, wouldn't the compiler turn values of 0-100 into decimals (or hex or binary) anyway?  If so, how are we gaining speed in the program by forcing decimals values on the user?


André<br/><br/>
(Comment posted by andre@ampmusic.com at 5:45 pm, Thu 11th Oct 2007)]]></description><author>no@spam.com (andre@ampmusic.com)</author><pubDate><![CDATA[Thu, 11 Oct 2007 17:45:41 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6690</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6703</link><description><![CDATA[For those of us trying to transition to "the beast", articles like this are nice plain English companions to the help flie and any books we pick up.  Thanks.<br/><br/>
(Comment posted by Gwemps at 7:36 am, Fri 12th Oct 2007)]]></description><author>no@spam.com (Gwemps)</author><pubDate><![CDATA[Fri, 12 Oct 2007 07:36:56 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6703</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6765</link><description><![CDATA[this is the most coherent and simplest tutorial about as3 I have seen, helped a lot to make me jump the hurdle<br/><br/>
(Comment posted by jp at 8:49 am, Mon 15th Oct 2007)]]></description><author>no@spam.com (jp)</author><pubDate><![CDATA[Mon, 15 Oct 2007 08:49:15 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6765</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6903</link><description><![CDATA[This article is pretty good for the user of AS 2.0. It is very helpful who want to switch in AS 3.0. Thanks to Bryan Grezeszak.<br/><br/>
(Comment posted by Ravinder Kumar at 10:43 pm, Fri 19th Oct 2007)]]></description><author>no@spam.com (Ravinder Kumar)</author><pubDate><![CDATA[Fri, 19 Oct 2007 22:43:01 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment6903</guid></item><item><title><![CDATA[Comment #7]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment7390</link><description><![CDATA[nice tuturial, 
just what I needed to get started with AS 3.0, 
so 5* from me!<br/><br/>
(Comment posted by erik at 8:13 am, Thu 8th Nov 2007)]]></description><author>no@spam.com (erik)</author><pubDate><![CDATA[Thu, 08 Nov 2007 08:13:18 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment7390</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment7533</link><description><![CDATA[Nice tutorial. Thanks for pointing out the basics to get people started.<br/><br/>
(Comment posted by erik o at 10:34 am, Thu 15th Nov 2007)]]></description><author>no@spam.com (erik o)</author><pubDate><![CDATA[Thu, 15 Nov 2007 10:34:59 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment7533</guid></item><item><title><![CDATA[Comment #9]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment8762</link><description><![CDATA[Hi Bryan,
Question:
If -->

myButton1.addEventListener(MouseEvent.CLICK, myFunction);
myButton2.addEventListener(MouseEvent.CLICK, myFunction);

function myFunction(evt:MouseEvent) {
// how do I detect which if button1 or button2 has been click without resorting to create 2 separate functions?
}

Previously, this would be easily solved with a simple -->
    myButton.onRelease = function() {
        myFunction(this._name);
    }
._name or .name doesn't work here...please advise.<br/><br/>
(Comment posted by cookiebunnie at 9:31 pm, Wed 9th Jan 2008)]]></description><author>no@spam.com (cookiebunnie)</author><pubDate><![CDATA[Wed, 09 Jan 2008 21:31:42 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment8762</guid></item><item><title><![CDATA[Comment #10]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9133</link><description><![CDATA[myFunction(this._name)

AS3:
evt.target.name<br/><br/>
(Comment posted by kennywii at 2:06 am, Sun 27th Jan 2008)]]></description><author>no@spam.com (kennywii)</author><pubDate><![CDATA[Sun, 27 Jan 2008 02:06:26 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9133</guid></item><item><title><![CDATA[Comment #11]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9261</link><description><![CDATA[I apologize to those that have asked me questions here, I incorrectly assumed that I would get notifications via e-mail, so was unaware of them. There are plenty of questions, so I will address each with a seperate comment, giving myself the already averaged rating so as to not boost my own score falsely!<br/><br/>
(Comment posted by Bryan at 4:33 pm, Sat 2nd Feb 2008)]]></description><author>no@spam.com (Bryan)</author><pubDate><![CDATA[Sat, 02 Feb 2008 16:33:53 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9261</guid></item><item><title><![CDATA[Comment #12]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9262</link><description><![CDATA[-@andre@ampmusic.com
question1: yes, you would be inside the movie clip. Sorry if I didn't specify, the idea is to illustrate how to accomplish a very common task in 2.0, which is to call movie clip functions of the parent. In reality, what it is doing is creating an untyped var that is the parent, since parent itself is DisplayObject not MovieClip. Since this tutorial is for beginners, I did not explain that, but a more efficent way would be (parent as MovieClip).functionName();

question2: Yes it could be done in the compiler. However, the gain in speed is actually accomplished in your own code usually. In most dynamic formulas, you will end up with a value between 0 and 1, meaning you would then have to * that value by 100, adding a calculation in your own code. Again, this is mostly noticeable in advanced script, so I did not go in to too much detail, but good job noticing these things! Keeps questioning, it keeps people honest!<br/><br/>
(Comment posted by Bryan Grezeszak at 4:43 pm, Sat 2nd Feb 2008)]]></description><author>no@spam.com (Bryan Grezeszak)</author><pubDate><![CDATA[Sat, 02 Feb 2008 16:43:04 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9262</guid></item><item><title><![CDATA[Comment #13]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9263</link><description><![CDATA[-@cookiebunnie
Remember how I said there was an object (I called it event) that gets passed to to function that gets called with a listener? That object holds a bunch of information, including the object that was doing the listening, as well as the object that dispatched the event. Now, for simple purposes, these are usually the same object, so the safest way for a beginners would be to use event.currentTarget, in your example it would be evt.currentTarget. That will be the object that you added the listener to, that caught the event. The best way to use that would be to declare a variable like this: var myObj = event.currentTarget;
This will make your variable untyped, which is slower, but you won't have to deal with converting it to the correct class, and since your learning, that's best.<br/><br/>
(Comment posted by Bryan Grezeszak at 4:54 pm, Sat 2nd Feb 2008)]]></description><author>no@spam.com (Bryan Grezeszak)</author><pubDate><![CDATA[Sat, 02 Feb 2008 16:54:24 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment9263</guid></item><item><title><![CDATA[Comment #14]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11676</link><description><![CDATA[Don’t we need to import the mouse class at the beginning? Something like this?


import flash.events.MouseEvent;

function ClickHandlerFunction(event) {
	doSomething();
}
myButton.addEventListener(MouseEvent.CLICK, ClickHandlerFunction);
<br/><br/>
(Comment posted by Carlos at 8:29 am, Tue 27th May 2008)]]></description><author>no@spam.com (Carlos)</author><pubDate><![CDATA[Tue, 27 May 2008 08:29:07 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11676</guid></item><item><title><![CDATA[Comment #15]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11777</link><description><![CDATA[This tutorial helps me understand better why certain things are done certain ways in Actionscript 3.0.  Eg. super basic things like assigning a type to a variable, it's all in the name of SPEED, shedding the excess fats! Great stuff, thanks for this tutorial.<br/><br/>
(Comment posted by Ben at 12:05 am, Wed 6th Aug 2008)]]></description><author>no@spam.com (Ben)</author><pubDate><![CDATA[Wed, 06 Aug 2008 00:05:48 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11777</guid></item><item><title><![CDATA[Comment #16]]></title><link>http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11823</link><description><![CDATA[@Carlos -
Technically, no, because we were writing just in a frame in the .fla. Remember how I said there were implicit imports in that situation? MouseEvent is one of them. So I left the import out for the sake of simplicity, since these articles are for people who are not necessarily experts at programming in general, so the less lines I'm teaching at a time, the better.

But, I'm glad you bring it up, because, it is ALWAYS a good idea to import anyway, not only does it help you get in the habit for the times when you do need to import, but it helps you learn the AS3 package structure. So you definitely should!<br/><br/>
(Comment posted by Bryan at 3:24 pm, Thu 14th Aug 2008)]]></description><author>no@spam.com (Bryan)</author><pubDate><![CDATA[Thu, 14 Aug 2008 15:24:51 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/671/1/AS-30-Coming-From-20---Article-1/Page1.html#Comment11823</guid></item></channel></rss>