Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Miscellany
Sunday, May 6th, 2012 at 12:52:51pm MDT 

  1. package
  2. {
  3.         import flash.display.MovieClip;
  4.         public class Hoofd extends MovieClip
  5.         {
  6.                 var p:int = 15;
  7.                 public function Hoofd(coordX:Number, coordY:Number)
  8.                 {
  9.                       x = coordX;
  10.                         y = coordY;
  11.                 }
  12.                 public function beweegBeneden():void
  13.                         {              
  14.                                 play();
  15.                 y = y + 10;
  16.                                 rotation = 90;
  17.                                 p = 1;
  18.                         }
  19.                 public function beweegOmhoog():void
  20.                         {
  21.                                 play();
  22.                                 rotation = -90;
  23.                                 y = y - 10;
  24.                                 p = 2;
  25.                         }
  26.                 public function beweegRechts():void
  27.                         {
  28.                                 play();
  29.                                 x = x + 10;
  30.                                 rotation = 0;
  31.                                 p = 3;
  32.                         }
  33.                 public function beweegLinks():void
  34.                         {
  35.                                 play();
  36.                                 x = x - 10;
  37.                                 rotation = 180;
  38.                                 p = 4;
  39.                         }
  40.                 public function beweegTerug():void
  41.                         {
  42.                                 stop();
  43.                                 switch(p){
  44.                                         case 1:
  45.                                         y = y - 10;
  46.                                         p = 6;
  47.                                         break;
  48.                                        
  49.                                         case 2:
  50.                                         y = y + 10;
  51.                                         p = 6;
  52.                                         break;
  53.                                        
  54.                                         case 3:
  55.                                         x = x - 10;
  56.                                         p = 6;
  57.                                         break;
  58.                                        
  59.                                         case 4:
  60.                                         x = x + 10;
  61.                                         p = 6;
  62.                                         break;
  63.                                        
  64.                                 }
  65.                         }
  66.                        
  67.                 public function beweeg():void
  68.                         {
  69.                                
  70.                                 switch(p){
  71.                                         case 1:
  72.                                         y = y + 5;
  73.                                         break;
  74.                                        
  75.                                         case 2:
  76.                                         y = y - 5;
  77.                                         break;
  78.                                        
  79.                                         case 3:
  80.                                         x = x + 5;
  81.                                         break;
  82.                                        
  83.                                         case 4:
  84.                                         x = x - 5;
  85.                                         break;
  86.                                        
  87.                                 }
  88.                         }
  89.         }
  90. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation