Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.greensock.*;
- import com.greensock.easing.*;
- import flash.utils.*;
- import flash.geom.Transform;
- import flash.geom.ColorTransform;
- import fl.motion.Color;
- //Algemeen
- stop();
- abvv.visible = false;
- function delayedFunctionCall(delay: int, func: Function) {
- var timer: Timer = new Timer(delay, 1);
- timer.addEventListener(TimerEvent.TIMER, func);
- timer.start();
- }
- tekstveld.addEventListener(Event.CHANGE, onChange);
- function onChange(e: Event) {
- if (e.currentTarget.length != 0 && oke2.enabled == false) {
- oke1.enabled = true
- } else {
- oke1.enabled = false
- }
- }
- //Hide Mouse
- bg.addEventListener(MouseEvent.MOUSE_OVER, overMouse);
- function overMouse(e: MouseEvent): void {
- Mouse.hide();
- }
- bg.addEventListener(MouseEvent.MOUSE_OUT, outMouse);
- function outMouse(e: MouseEvent): void {
- Mouse.show();
- }
- //Button1
- oke1.addEventListener(MouseEvent.CLICK, Afvuren);
- function Afvuren(event: MouseEvent): void {
- abvv.visible = false;
- naam.text = tekstveld.text;
- stage.focus = tekstveld;
- oke1.enabled = false
- oke2.enabled = true
- TweenLite.to(naam, 2, {
- x: 0,
- y: 1080,
- scaleX: 1.0,
- scaleY: 1.0,
- alpha: 1,
- ease: Elastic.easeInOut
- });
- var test = setInterval(showMessage, 1100);
- function showMessage() {
- clearInterval(test);
- TweenMax.to(bg, 0.0, {
- colorTransform: {
- exposure: 1.5,
- brightness: 3.0
- }
- });
- TweenMax.to(bg, 1.5, {
- colorTransform: {
- exposure: 1,
- brightness: 0
- }
- });
- }
- }
- //Button2
- oke2.addEventListener(MouseEvent.CLICK, GereedMaken);
- function GereedMaken(event: MouseEvent): void {
- oke1.enabled = true;
- oke2.enabled = false;
- stage.focus = tekstveld;
- TweenLite.to(naam, 2, {
- x: 0,
- y: -200,
- scaleX: 1.0,
- scaleY: 1.0,
- alpha: 1,
- ease: Elastic.easeInOut
- });
- }
- //ABVV Logo
- knoplogo.addEventListener(MouseEvent.CLICK, logo);
- function logo(event: MouseEvent): void {
- abvv.visible = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement