Explore Anikraft's 767 photos on Flickr!
Now $0. Shop and get ideas of how to wear null SAINT LAURENT leopard print micro shorts in Red or find similar products for less.
High quality products Affordable price Worldwide shipping
Functions are very useful part of actionscript3 as they save the time, reduce the code and also increases the re-usability of the code. function is that block or piece of code which can be used reused at any point in the code. they save the time as they can be called any number of times when required. calling the functionsthe calling of the function is done by using the parentheses operator.for example the use of trace( ) function is shown below:trace( " used for debugging the script ");incase you are calling a function with no parameters in it then in that case empty pair of parentheses should be used.for examplevar random:number = math.random();defining your own functionin actionscript3 there are two ways of defining the functions.function statementfunction expression1. function statement:the function statements are used if you want to define your functions static or stricted. a function statement starts with the function keyword. the following is the syntax for the function statement :-function traceparameter(aparam:string) { trace(aparam); } traceparameter("hello"); // hello2. function expression:the function expressions are used to when you have to define more dynamic or standard programming. function expression were used in the earlier versions of the actionscript. the syntax for this is as follows:-var traceparameter:function = function (aparam:string) { trace(aparam); }; traceparameter("hello"); // hello