as3

Dynamic call to functions

You may come in a situation, where you need to call a function of which you do not know the name. Lets say, you have a swicth, there turns functionality on or off. If the switch is on, you call functionA() and you call functionB() if it's set to off. To do that, you can use the array acces operator (square brackets) to access the function at a specific scope. Take a look at the following:

Bevægelig baggrund

Denne tutorial viser, hvordan du får en baggrund til at reagere på musens bevægelser. Når baggrunden er større end flashfilmen, vil den vise henholdsvis venstre og højre side af dokumentet, når musen bevæger sig mod kanten af flashfilmen. Af andre emner der kort tages op er meta-tagget til at indlejre grafik via ActionScript, samt TweenLite fra Greensock til at gøre animationen blødere.

Vedhæftet er en vejledende løsning

Pages