Click to See Complete Forum and Search --> : actionscript
anyone have some good links and resources for learning actionscript. I plan on picking up a book in the near future but, was wondering if there is anyting out there on the web that I can immediatly start digging into.
I'm less concerned with how to do things or make things and more concerned with an introduction to the language explaining syntex and all that kind of fundamental stuff.
thanks
John G
06-26-2007, 06:36 PM
http://www.actionscript.org/resources/articles/12/1/Variables-101/Page1.html
http://www.actionscript.org/resources/articles/16/1/Instance-Names/Page1.html
http://www.actionscript.org/resources/articles/17/1/Paths-to-Objects-and-Variables/Page1.html
http://www.actionscript.org/resources/articles/18/1/Get-Property/Page1.html
http://www.actionscript.org/resources/articles/19/1/Set-Property/Page1.html
there's a nice write up about arrays somewhere in there as well. I wish they hadn't of changed their site, it was soo much easier to read and find stuff before.
JPnyc
06-26-2007, 07:22 PM
http://board.flashkit.com/board/index.php that site is pretty good, forum included
I took a brief look at the variable thing and I remember reading something about variables in flash now need to have a defined type- is this true? Since, in the first tutorial John G lists it doesn't show them being defined by type. For instance:
var something:String = "This is my name";
or… is that something special?
John G
06-26-2007, 07:43 PM
They do have a type, and you can define a type as well to force it, but it will fill it in for you if not (sometimes the wrong one can slip in).
You can just say
var something = "This is my name";
and it'll be a string
same thing as:
var something:String = "This is my name";
var something = "6";
also a string.
var something = 6;
is an integer
so you can choose whether or not you want to loose type or not?
John G
06-26-2007, 07:50 PM
it's pretty much just a shorthand. The type is still there. You just don't need to declare them anymore. If you're trying to add a string and an integer, you'll still have to decide on what type you want it to end up as and program accordingly.
can someone please explain to me why this is is returning a - can not assign to non-reference value. I'm sure its something simple but, I'm just kinda expiermenting based on some basic things I learned about classes in actionscript 2.0.
external as file
class handle {
public var number:Number;
public var after:Number;
public var add:Number = 5;
public function handle(x:Number) {
this.number = x;
this.number * add = this.after;
}
}
stage
var num:Number = 5;
var st:handle = new handle(num);
trace(st.after);