Copy Paste Code . com

personal pastebin - debug, share, develop, store

Post Code
Archive

Latest code
ToTeste
06. Jan - C
lasseters online casino
06. Jan - JavaScript
guide
06. Jan - Smalltalk
tips
06. Jan - C#
asd
06. Jan - C
Project
05. Jan - C++
oracle de merdouille :/
05. Jan - MySQL
Wiremod - Jumper
05. Jan - Text
visit now
05. Jan - CSS
yiPPpAfkW
04. Jan - JavaScript

Code: autoscroll AS3

Posted by autoscroll AS3 on 18:28 10. Oct.
Syntax: ActionScript

  1. import flash.display.*;
  2. import flash.events.*;
  3.  
  4. var directionInt:Number = 1;
  5.  
  6. addEventListener(Event.ENTER_FRAME, function(){
  7.         if(((test.y+test.height) < stage.stageHeight) && (test.y > 0)){
  8.                 test.y = test.y+directionInt;
  9.         }
  10.         else if((test.y+test.height) >= stage.stageHeight){
  11.                 directionInt = -1;
  12.                 test.y = test.y + directionInt;
  13.         }
  14.         else if(test.y <= 0){
  15.                 directionInt = 1;
  16.                 test.y = test.y + directionInt;
  17.         }
  18.                                                                                           });

Comments

By fmkskj (18:36 08. Dec):
84Ycyu eutmihomukhx, [url=http://hqrhbtjxggss.com/]hqrhbtjxggss[/url], [link=http://gjfoshxemxmk.com/]gjfoshxemxmk[/link], http://jnqinebfzfdw.com/

New comment