Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. import com.greensock.*;
  2. import com.greensock.easing.*;
  3. import flash.utils.*;
  4. import flash.geom.Transform;
  5. import flash.geom.ColorTransform;
  6. import fl.motion.Color;
  7.  
  8.  
  9. //Algemeen
  10.  
  11. stop();
  12. abvv.visible = false;
  13.  
  14. function delayedFunctionCall(delay: int, func: Function) {
  15. var timer: Timer = new Timer(delay, 1);
  16. timer.addEventListener(TimerEvent.TIMER, func);
  17. timer.start();
  18. }
  19.  
  20. tekstveld.addEventListener(Event.CHANGE, onChange);
  21. function onChange(e: Event) {
  22. if (e.currentTarget.length != 0 && oke2.enabled == false) {
  23. oke1.enabled = true
  24. } else {
  25. oke1.enabled = false
  26. }
  27. }
  28.  
  29.  
  30. //Hide Mouse
  31.  
  32. bg.addEventListener(MouseEvent.MOUSE_OVER, overMouse);
  33. function overMouse(e: MouseEvent): void {
  34. Mouse.hide();
  35. }
  36.  
  37. bg.addEventListener(MouseEvent.MOUSE_OUT, outMouse);
  38. function outMouse(e: MouseEvent): void {
  39. Mouse.show();
  40. }
  41.  
  42.  
  43.  
  44. //Button1
  45.  
  46. oke1.addEventListener(MouseEvent.CLICK, Afvuren);
  47.  
  48. function Afvuren(event: MouseEvent): void {
  49. abvv.visible = false;
  50. naam.text = tekstveld.text;
  51. stage.focus = tekstveld;
  52. oke1.enabled = false
  53. oke2.enabled = true
  54. TweenLite.to(naam, 2, {
  55. x: 0,
  56. y: 1080,
  57. scaleX: 1.0,
  58. scaleY: 1.0,
  59. alpha: 1,
  60. ease: Elastic.easeInOut
  61. });
  62.  
  63. var test = setInterval(showMessage, 1100);
  64. function showMessage() {
  65. clearInterval(test);
  66. TweenMax.to(bg, 0.0, {
  67. colorTransform: {
  68. exposure: 1.5,
  69. brightness: 3.0
  70. }
  71. });
  72. TweenMax.to(bg, 1.5, {
  73. colorTransform: {
  74. exposure: 1,
  75. brightness: 0
  76. }
  77. });
  78. }
  79. }
  80.  
  81.  
  82.  
  83. //Button2
  84.  
  85. oke2.addEventListener(MouseEvent.CLICK, GereedMaken);
  86.  
  87. function GereedMaken(event: MouseEvent): void {
  88. oke1.enabled = true;
  89. oke2.enabled = false;
  90.  
  91. stage.focus = tekstveld;
  92. TweenLite.to(naam, 2, {
  93. x: 0,
  94. y: -200,
  95. scaleX: 1.0,
  96. scaleY: 1.0,
  97. alpha: 1,
  98. ease: Elastic.easeInOut
  99. });
  100.  
  101. }
  102.  
  103.  
  104.  
  105. //ABVV Logo
  106.  
  107. knoplogo.addEventListener(MouseEvent.CLICK, logo);
  108.  
  109. function logo(event: MouseEvent): void {
  110. abvv.visible = true;
  111.  
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement