daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Dec 12th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Classe Main
  2.  
  3. package {
  4.     import flash.display.MovieClip;
  5.     import flash.text.TextField;
  6.    
  7.     public class MainCalimero extends MovieClip {
  8.         public function MainCalimero(){
  9.             var mc:Calimero = new Calimero();
  10.             addChild(mc);
  11.            
  12.             //Noms boutons
  13.             var bnom:Array = ["Gauche","Milieu","Droite","Alpha+","Alpha-","Droit","Rotation","50%","100%","150%"];
  14.             var bposx:Array = [105,225,345,20,20,430,430,105,225,345];
  15.             var bposy:Array = [20,20,20,160,210,160,210,350,350,350];
  16.                        
  17.             for(var i:uint=0;i<10;i++)
  18.             {
  19.                 var bt:Bouton = new Bouton();
  20.                                 bt.x = bposx[i];
  21.                                 bt.y = bposy[i];
  22.                                 addChild(bt)
  23.             }
  24.         }
  25.     }
  26. }
  27.  
  28. //Classe Bouton
  29. package  {
  30.    
  31.     import flash.display.SimpleButton;
  32.    
  33.    
  34.     public class Bouton extends SimpleButton {
  35.        
  36.        
  37.         public function Bouton() {
  38.             // constructor code
  39.         }
  40.     }
  41.    
  42. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top