Programming+Syntax

=:Void in AS3=

from []  If you don’t want your function to return an actual value then the return type should be set to void. A function that has a type set asvoid or simply fails to return a value with the return statement, its return value becomes //undefined//. code // nothing here } trace(nothingHere); // traces undefined** code The function nothingHere above returns nothing and also accepts no values since it doesn’t have any parameters. If you try to pass values into the function when it has no parameter list defined for it in ActionScript 3 you will get an error…like this: code code In AS2, the Void type was used as the parameter list in a function definition to indicate no parameters. In AS3, you just leave the list empty. Using Void in the parameter list in ActionScript 3 will actually make Flash think that a variable named Void is defined for the parameter list of that function. More sources:http://www.senocular.com/flash/tutorials/as3withflashcs3/
 * function nothingHere:void {
 * nothingHere(3);** // This will return an error folks

=Public versus Private= [|http://www.taterboy.com/blog/2009/09/as3-101-intro-to-functions-part-2-and-class-overview/]

=Basic Information on Getting Started With ActionScript 3= []

.