Grant Skinners Introductory AS3 Workshop slidedeck http://gskinner.com/talks/as3workshop/
Lee Brimelow : 6 Reasons to learn ActionScript 3 http://www.adobe.com/devnet/actionscript/articles/six_reasons_as3.html
Colin Moock : Essential ActionScript 3 (considered the "bible" for ActionScript developers): http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
Here are some additional references for moving from AS2 to AS3:
Grant Skinners Introductory AS3 Workshop slidedeck
http://gskinner.com/talks/as3workshop/
Lee Brimelow : 6 Reasons to learn ActionScript 3
http://www.adobe.com/devnet/actionscript/articles/six_reasons_as3.html
Colin Moock : Essential ActionScript 3 (considered the "bible" for ActionScript developers):
http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
You should probably learn how to use AS3, but most of the Flex learning paths I've encountered so far included both MXML and AS3.
You do not need to know anything about the Flash design tools (Flash CS3/4) to develop Flex applications.
While non-Flex applications can also be developed using Flex builder, these have nothing to do with the Flash design tool.
Summary:
Flex: Framework built on top of AS3. Use Flex Builder to develop these applications (current version is 3, the next version is going to be called Flash Builder 4 because the Adobe marketing team has to justify its existence).
As for videos, the net is full of them, but since I learn much faster from books, I've never bothered to look for any videos. It does seem however that adobe has some new thing on their Developer Center. Take a look at: http://www.adobe.com/devnet/flex/learn/learningpath.html#type=role&role=programmer
The help system that comes with Flex Builder 3 is exceptionally good as well (as opposed to most other language dedicated IDEs I've encountered so far). I suggest you get a copy of FB3 and install it. Things tend to get a lot simpler once you have a working environment to experiment with, especially when the IDE offers comprehensive documentation (under the help -> help contents menu).
There is a lot of AS3 code out there. You will have to be more specific regarding your goals to really provide an answer. "Flash Programming" is extremely general. Flash IDE, AS3, Flex, etc...
Creates a new instance of an object of type Flower and assigns it to the variable f1. It passes the string "rose" to the constructor function of the Flower class.
As lansen says, each instance of a Flower will have it's own namex variable with an independent value.
At this point I think it would be more productive if you take a step back and learn some fundamentals of object oriented programming rather than banging your head against something you don't have a basic understanding of. This book is a pretty good place to start: Essential ActionScript 3.0.
Since your from an OOP background you shouldn't be having this problem. However that is easily fixed with a quick read through a couple great books.
Essential ActionScript 3.0 http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946
ActionScript 3.0 Design Patterns. http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469
With your OOP background these are perfect.
If your getting one big file the obvious think to do is to begin by breaking things down into classes.
You would be wasting your time with MVC or any other design pattern without being able to reliably code OOP in AS3.
http://www.adobe.com/devnet/actionscript/ is not a bad starting point
If you want books then the following are good:
http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946
http://www.amazon.com/ActionScript-3-0-Cookbook-Application-Developers/dp/0596526954
There is also ActionScript Design Patterns book, which is supposed to be nice.
Check out these resources:
Grant Skinners Introductory AS3 Workshop slidedeck http://gskinner.com/talks/as3workshop/
Lee Brimelow : 6 Reasons to learn ActionScript 3 http://www.adobe.com/devnet/actionscript/articles/six_reasons_as3.html
Colin Moock : Essential ActionScript 3 (considered the "bible" for ActionScript developers): http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
mike chambers
mesh@adobe.com
Here are some additional references for moving from AS2 to AS3:
Grant Skinners Introductory AS3 Workshop slidedeck http://gskinner.com/talks/as3workshop/
Lee Brimelow : 6 Reasons to learn ActionScript 3 http://www.adobe.com/devnet/actionscript/articles/six_reasons_as3.html
Colin Moock : Essential ActionScript 3 (considered the "bible" for ActionScript developers): http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
mike chambers
mesh@adobe.com
You should probably learn how to use AS3, but most of the Flex learning paths I've encountered so far included both MXML and AS3.
You do not need to know anything about the Flash design tools (Flash CS3/4) to develop Flex applications.
While non-Flex applications can also be developed using Flex builder, these have nothing to do with the Flash design tool.
Summary:
Flex: Framework built on top of AS3. Use Flex Builder to develop these applications (current version is 3, the next version is going to be called Flash Builder 4 because the Adobe marketing team has to justify its existence).
Links:
AS3 - http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
Flex - http://livedocs.adobe.com/flex/3/html/mxml_1.html#192432
Books:
Essential Actionscript 3.0 - http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=sr_1_1?ie=UTF8&s=books&qid=1250070076&sr=8-1
Programming Flex 3 - http://www.amazon.com/Programming-Flex-Comprehensive-Creating-Applications/dp/0596516215/ref=pd_sim_b_8
As for videos, the net is full of them, but since I learn much faster from books, I've never bothered to look for any videos. It does seem however that adobe has some new thing on their Developer Center. Take a look at: http://www.adobe.com/devnet/flex/learn/learningpath.html#type=role&role=programmer
The help system that comes with Flex Builder 3 is exceptionally good as well (as opposed to most other language dedicated IDEs I've encountered so far). I suggest you get a copy of FB3 and install it. Things tend to get a lot simpler once you have a working environment to experiment with, especially when the IDE offers comprehensive documentation (under the help -> help contents menu).
Good luck.
If you really want to learn Flash (as3) programming then you want to get Essential Actionscript 3 by Colin Moock.
There is a lot of AS3 code out there. You will have to be more specific regarding your goals to really provide an answer. "Flash Programming" is extremely general. Flash IDE, AS3, Flex, etc...
Your code:
var f1:Flower = new Flower("rose");
Creates a new instance of an object of type
Flower
and assigns it to the variablef1
. It passes the string "rose" to the constructor function of theFlower
class.As lansen says, each instance of a
Flower
will have it's ownnamex
variable with an independent value.At this point I think it would be more productive if you take a step back and learn some fundamentals of object oriented programming rather than banging your head against something you don't have a basic understanding of. This book is a pretty good place to start: Essential ActionScript 3.0.
amazon.com is your friend.
Essential Actionscript