Propecia No Prescription Amoxil For Sale Penisole Generic Buy Nizoral Online Nexium Without Prescription Cymbalta No Prescription Aricept For Sale Phentrimine Generic Buy Avapro Online Coumadin Without Prescription

Na eigenlijk alleen maar training DVD's van Flex te hebben gekeken, was het vandaag zo ver. Eindelijk 'echt' bezig :) . Nou ja, in een college dan. Hierin werd de basis behandeld.

Hieronder valt o.a. het aanmaken van variabelen, functies, if en else structuren en de while functie. Erg interressant aangezien ik er ongeveer niks van wist. Maar het bleef niet alleen bij kijken. Ik mocht het zelf ook doen! :P . En dat resultaat is hier te bewonderen. Om te zien hoe dit prachtige geheel inelkaar steekt kan je ook de bron code bekijken.

Actionscript:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  3.  
  4.     <mx:Script>
  5.         <![CDATA[
  6.             //Actionscript
  7.            
  8.             import mx.controls.Alert
  9.             private var getal: Number = 13;
  10.             private var mijnTekst: String = "Je naam is ";
  11.            
  12.             private function mijnEerstFunctie(bla:String): String {
  13.                  var x:String;
  14.                  x = this.mijnTekst + bla;
  15.                  return x;
  16.             }
  17.            
  18.             private function mijnTweedeFunctie():void {
  19.                 if(this.mijnTekstInvoer.text == ""){
  20.                     Alert.show ("Vul je naam in!");
  21.                 } else {
  22.                     this.mijnLabel.text = this.mijnEerstFunctie(this.mijnTekstInvoer.text);
  23.                     this.mijnDerdeFunctie();
  24.                 }
  25.             }
  26.            
  27.             private function mijnDerdeFunctie():void {
  28.                 var i:int = 1;
  29.                 while (i <6) {
  30.                     //code
  31.                     Alert.show("nog " + i.toString() + " keer klikken");
  32.                     i++;
  33.                    
  34.                 }
  35.             }
  36.            
  37.         ]]>
  38.     </mx:Script>
  39.     <mx:Panel width="300" height="200" layout="absolute" title="Basics Programmeren" roundedBottomCorners="true" horizontalCenter="0" top="52">
  40.         <mx:Label x="10" y="10" text="Welkom" id="mijnLabel" fontWeight="bold" fontSize="9"/>
  41.         <mx:Button x="101.5" y="128" label="Click me!" id="mijnButton" click="{this.mijnTweedeFunctie()}"/>
  42.         <mx:TextInput left="60" top="41" id="mijnTekstInvoer" width="210"/>
  43.         <mx:Label x="10" y="43" text="Naam:"/>
  44.     </mx:Panel>
  45.    
  46. </mx:Application>