Advertisement
Guest User

PsyTest Source

a guest
Mar 12th, 2011
2,065
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package psytest2_fla
  2. {
  3.     import fl.transitions.*;
  4.     import flash.display.*;
  5.     import flash.events.*;
  6.     import flash.filters.*;
  7.     import flash.net.*;
  8.     import flash.text.*;
  9.     import flash.utils.*;
  10.  
  11.     dynamic public class MainTimeline extends MovieClip
  12.     {
  13.         public var ybigger:String;
  14.         public var imagetween10:Tween;
  15.         public var questiontext:TextField;
  16.         public var randomx:Number;
  17.         public var randomy:Number;
  18.         public var urlRequest:URLRequest;
  19.         public var imagetween15:Tween;
  20.         public var imagetween17:Tween;
  21.         public var imagetween12:Tween;
  22.         public var imagetween14:Tween;
  23.         public var imagetween19:Tween;
  24.         public var imagetween11:Tween;
  25.         public var imagetween13:Tween;
  26.         public var imagetween3:Tween;
  27.         public var imagetween5:Tween;
  28.         public var imagetween6:Tween;
  29.         public var imagetween1:Tween;
  30.         public var imagetween2:Tween;
  31.         public var imagetween9:Tween;
  32.         public var SE:int;
  33.         public var imagetween8:Tween;
  34.         public var resultarray:Array;
  35.         public var imagetween4:Tween;
  36.         public var imagetween20:Tween;
  37.         public var imagetween7:Tween;
  38.         public var imagetween18:Tween;
  39.         public var ymax:int;
  40.         public var TH:int;
  41.         public var tfFormatter:TextFormat;
  42.         public var empty2:MovieClip;
  43.         public var questionletters2:MovieClip;
  44.         public var questionletters3:MovieClip;
  45.         public var questionletters4:MovieClip;
  46.         public var questionletters5:MovieClip;
  47.         public var questionnumber:TextField;
  48.         public var questionletters7:MovieClip;
  49.         public var stagebuttona:buttona;
  50.         public var EX:int;
  51.         public var stagebuttonb:buttonb;
  52.         public var questionletters6:MovieClip;
  53.         public var FE:int;
  54.         public var questionletters9:MovieClip;
  55.         public var questionletters1:MovieClip;
  56.         public var questionletters10:MovieClip;
  57.         public var questionletters11:MovieClip;
  58.         public var questionletters8:MovieClip;
  59.         public var questionletters14:MovieClip;
  60.         public var questionletters15:MovieClip;
  61.         public var questionletters16:MovieClip;
  62.         public var questionpic1:MovieClip;
  63.         public var questionpic2:MovieClip;
  64.         public var questionpic3:MovieClip;
  65.         public var questionpic4:MovieClip;
  66.         public var DIAGNOSIS:String;
  67.         public var questionpic6:MovieClip;
  68.         public var questionpic7:MovieClip;
  69.         public var questionpic8:MovieClip;
  70.         public var questionpic9:MovieClip;
  71.         public var questionletters19:MovieClip;
  72.         public var questionletters12:MovieClip;
  73.         public var lettertween7:Tween;
  74.         public var xmin:int;
  75.         public var xbigger:String;
  76.         public var questionletters18:MovieClip;
  77.         public var lettertween4:Tween;
  78.         public var questionpic5:MovieClip;
  79.         public var questionletters13:MovieClip;
  80.         public var questionletters17:MovieClip;
  81.         public var imagetween16:Tween;
  82.         public var lettertween6:Tween;
  83.         public var lettertween16:Tween;
  84.         public var lettertween8:Tween;
  85.         public var lettertween1:Tween;
  86.         public var lettertween2:Tween;
  87.         public var lettertween10:Tween;
  88.         public var lettertween12:Tween;
  89.         public var lettertween9:Tween;
  90.         public var questionletters20:MovieClip;
  91.         public var lettertween13:Tween;
  92.         public var lettertween14:Tween;
  93.         public var lettertween15:Tween;
  94.         public var questionpic10:MovieClip;
  95.         public var questionpic11:MovieClip;
  96.         public var questionpic12:MovieClip;
  97.         public var questionpic13:MovieClip;
  98.         public var questionpic15:MovieClip;
  99.         public var questionpic16:MovieClip;
  100.         public var questionpic18:MovieClip;
  101.         public var lettertween17:Tween;
  102.         public var questionpic14:MovieClip;
  103.         public var questionpic19:MovieClip;
  104.         public var lettertween3:Tween;
  105.         public var blurTimer:Timer;
  106.         public var questionpic17:MovieClip;
  107.         public var IN:int;
  108.         public var lettertween19:Tween;
  109.         public var questionpic20:MovieClip;
  110.         public var lettertween11:Tween;
  111.         public var background:MovieClip;
  112.         public var lettertween20:Tween;
  113.         public var lettertween18:Tween;
  114.         public var lettertween5:Tween;
  115.         public var ending:MovieClip;
  116.         public var ymin:int;
  117.         public var number:String;
  118.         public var empty:MovieClip;
  119.         public var questionresults:TextField;
  120.         public var JU:int;
  121.         public var thequestionnumber:int;
  122.         public var blurquestion:BlurFilter;
  123.         public var questionlist:Array;
  124.         public var resultnumber:int;
  125.         public var questiontop:MovieClip;
  126.         public var tweentimer:Timer;
  127.         public var flare:backgroundflare;
  128.         public var INT:int;
  129.         public var tempquestiontext:String;
  130.         public var xmax:int;
  131.         public var PE:int;
  132.  
  133.         public function MainTimeline()
  134.         {
  135.             addFrameScript(0, frame1);
  136.             return;
  137.         }// end function
  138.  
  139.         public function changeblur(event:TimerEvent) : void
  140.         {
  141.             if (xbigger == "yes")
  142.             {
  143.                 (blurquestion.blurX + 1);
  144.             }
  145.             else
  146.             {
  147.                 (blurquestion.blurX - 1);
  148.             }
  149.             if (blurquestion.blurX <= 3)
  150.             {
  151.                 xbigger = "yes";
  152.                 randomx = Math.random() * 60;
  153.                 xmax = Math.round(randomx);
  154.             }
  155.             else if (blurquestion.blurX >= xmax)
  156.             {
  157.                 xbigger = "no";
  158.             }
  159.             if (ybigger == "yes")
  160.             {
  161.                 (blurquestion.blurY + 1);
  162.             }
  163.             else
  164.             {
  165.                 (blurquestion.blurY - 1);
  166.             }
  167.             if (blurquestion.blurY <= 3)
  168.             {
  169.                 ybigger = "yes";
  170.                 randomy = Math.random() * 35;
  171.                 ymax = Math.round(randomy);
  172.             }
  173.             else if (blurquestion.blurY >= ymax)
  174.             {
  175.                 ybigger = "no";
  176.             }
  177.             empty.filters = [blurquestion];
  178.             return;
  179.         }// end function
  180.  
  181.         public function additupa(param1:int) : void
  182.         {
  183.             switch(param1)
  184.             {
  185.                 case 1:
  186.                 {
  187.                     (EX + 1);
  188.                     break;
  189.                 }
  190.                 case 2:
  191.                 {
  192.                     (FE + 1);
  193.                     break;
  194.                 }
  195.                 case 3:
  196.                 {
  197.                     (JU + 1);
  198.                     break;
  199.                 }
  200.                 case 4:
  201.                 {
  202.                     (SE + 1);
  203.                     break;
  204.                 }
  205.                 case 5:
  206.                 {
  207.                     (IN + 1);
  208.                     break;
  209.                 }
  210.                 case 6:
  211.                 {
  212.                     (FE + 1);
  213.                     break;
  214.                 }
  215.                 case 7:
  216.                 {
  217.                     (SE + 1);
  218.                     break;
  219.                 }
  220.                 case 8:
  221.                 {
  222.                     (TH + 1);
  223.                     break;
  224.                 }
  225.                 case 9:
  226.                 {
  227.                     (PE + 1);
  228.                     break;
  229.                 }
  230.                 case 10:
  231.                 {
  232.                     (SE + 1);
  233.                     break;
  234.                 }
  235.                 case 11:
  236.                 {
  237.                     (JU + 1);
  238.                     break;
  239.                 }
  240.                 case 12:
  241.                 {
  242.                     (TH + 1);
  243.                     break;
  244.                 }
  245.                 case 13:
  246.                 {
  247.                     (JU + 1);
  248.                     break;
  249.                 }
  250.                 case 14:
  251.                 {
  252.                     (SE + 1);
  253.                     break;
  254.                 }
  255.                 case 15:
  256.                 {
  257.                     (EX + 1);
  258.                     break;
  259.                 }
  260.                 case 16:
  261.                 {
  262.                     (EX + 1);
  263.                     break;
  264.                 }
  265.                 case 17:
  266.                 {
  267.                     (TH + 1);
  268.                     break;
  269.                 }
  270.                 case 18:
  271.                 {
  272.                     (SE + 1);
  273.                     break;
  274.                 }
  275.                 case 19:
  276.                 {
  277.                     (JU + 1);
  278.                     break;
  279.                 }
  280.                 case 20:
  281.                 {
  282.                     (IN + 1);
  283.                     break;
  284.                 }
  285.                 case 21:
  286.                 {
  287.                     trace(EX, IN, TH, FE, SE, INT, JU, PE);
  288.                     break;
  289.                 }
  290.                 default:
  291.                 {
  292.                     break;
  293.                 }
  294.             }
  295.             return;
  296.         }// end function
  297.  
  298.         public function additupb(param1:int) : void
  299.         {
  300.             switch(param1)
  301.             {
  302.                 case 1:
  303.                 {
  304.                     (IN + 1);
  305.                     break;
  306.                 }
  307.                 case 2:
  308.                 {
  309.                     (TH + 1);
  310.                     break;
  311.                 }
  312.                 case 3:
  313.                 {
  314.                     (PE + 1);
  315.                     break;
  316.                 }
  317.                 case 4:
  318.                 {
  319.                     (INT + 1);
  320.                     break;
  321.                 }
  322.                 case 5:
  323.                 {
  324.                     (EX + 1);
  325.                     break;
  326.                 }
  327.                 case 6:
  328.                 {
  329.                     (TH + 1);
  330.                     break;
  331.                 }
  332.                 case 7:
  333.                 {
  334.                     (INT + 1);
  335.                     break;
  336.                 }
  337.                 case 8:
  338.                 {
  339.                     (FE + 1);
  340.                     break;
  341.                 }
  342.                 case 9:
  343.                 {
  344.                     (JU + 1);
  345.                     break;
  346.                 }
  347.                 case 10:
  348.                 {
  349.                     (INT + 1);
  350.                     break;
  351.                 }
  352.                 case 11:
  353.                 {
  354.                     (PE + 1);
  355.                     break;
  356.                 }
  357.                 case 12:
  358.                 {
  359.                     (FE + 1);
  360.                     break;
  361.                 }
  362.                 case 13:
  363.                 {
  364.                     (PE + 1);
  365.                     break;
  366.                 }
  367.                 case 14:
  368.                 {
  369.                     (INT + 1);
  370.                     break;
  371.                 }
  372.                 case 15:
  373.                 {
  374.                     (IN + 1);
  375.                     break;
  376.                 }
  377.                 case 16:
  378.                 {
  379.                     (IN + 1);
  380.                     break;
  381.                 }
  382.                 case 17:
  383.                 {
  384.                     (FE + 1);
  385.                     break;
  386.                 }
  387.                 case 18:
  388.                 {
  389.                     (INT + 1);
  390.                     break;
  391.                 }
  392.                 case 19:
  393.                 {
  394.                     (PE + 1);
  395.                     break;
  396.                 }
  397.                 case 20:
  398.                 {
  399.                     (EX + 1);
  400.                     break;
  401.                 }
  402.                 case 21:
  403.                 {
  404.                     trace(EX, IN, TH, FE, SE, INT, JU, PE);
  405.                     break;
  406.                 }
  407.                 default:
  408.                 {
  409.                     break;
  410.                 }
  411.             }
  412.             return;
  413.         }// end function
  414.  
  415.         public function increasequestion() : void
  416.         {
  417.             (thequestionnumber + 1);
  418.             number = String(thequestionnumber);
  419.             questionnumber.text = number;
  420.             tempquestiontext = questionlist[questionnumber.text];
  421.             questiontext.text = tempquestiontext;
  422.             return;
  423.         }// end function
  424.  
  425.         public function tabulate() : void
  426.         {
  427.             trace(EX, IN, TH, FE, SE, INT, JU, PE);
  428.             if (EX > IN)
  429.             {
  430.                 DIAGNOSIS = DIAGNOSIS + "EX";
  431.             }
  432.             else
  433.             {
  434.                 DIAGNOSIS = DIAGNOSIS + "IN";
  435.             }
  436.             if (SE > INT)
  437.             {
  438.                 DIAGNOSIS = DIAGNOSIS + "SE";
  439.             }
  440.             else
  441.             {
  442.                 DIAGNOSIS = DIAGNOSIS + "INT";
  443.             }
  444.             if (TH > FE)
  445.             {
  446.                 DIAGNOSIS = DIAGNOSIS + "TH";
  447.             }
  448.             else
  449.             {
  450.                 DIAGNOSIS = DIAGNOSIS + "FE";
  451.             }
  452.             if (JU > PE)
  453.             {
  454.                 DIAGNOSIS = DIAGNOSIS + "JU";
  455.             }
  456.             else
  457.             {
  458.                 DIAGNOSIS = DIAGNOSIS + "PE";
  459.             }
  460.             trace(DIAGNOSIS);
  461.             makediagnosis(DIAGNOSIS);
  462.             showresult();
  463.             return;
  464.         }// end function
  465.  
  466.         public function afterfade(event:TimerEvent) : void
  467.         {
  468.             switchquestion();
  469.             return;
  470.         }// end function
  471.  
  472.         public function removetop(event:MouseEvent) : void
  473.         {
  474.             removeChild(questiontop);
  475.             increasequestion();
  476.             return;
  477.         }// end function
  478.  
  479.         function frame1()
  480.         {
  481.             resultarray = new Array();
  482.             resultarray[0] = "You are not well.";
  483.             resultarray[1] = "Your power comes from an ability to sense how things might be and to proclaim this possibility with a great force and willingness to act. You have a tendency to be romantic, and can be an idealist. This sense of how the world can be is often expressed with self-deprecatory humor. Because of your need to address the immediacy of the moment, you may not think things through to their logical end, relying instead on a feeling for how a situation SHOULD end. <p><p> You need to be liked and appreciated by others, although your attention often wanders. Sometimes you neglect old friends in favor of a new or exciting acquaintance. You have a real difficulty being alone. <p><p> Often you will seem to know how to handle a situation without exactly knowing HOW you know this. Your thoughts are often shallow. While in the excitement of the moment you can obsess about a task at hand. If it should become rote and unexciting, however, it can be dropped just as quickly.";
  484.             resultarray[2] = "You have a poetic sensibility and an ability to see beyond the day to day. You often seem to be living in a higher realm, or to be not-of-this-earth. Occasionally you imagine interior lives for friends and associates that are near-complete fabrications based on your fears or hopes for the future. You are often not aware of your own feelings. You have a strong sense of right and wrong, and because of this are often disappointed. Despite what can sometimes be a destructive inward-turning anger, you are very gentle. You are sometimes a bit out of touch with the ebb and flow of modern life. If your behavior is out of synch with your moral values, a severe psychic disturbance can result. Because connectivity is so important to you, you can become quiet and sulky if you feel that others around do not understand your point of view.";
  485.             resultarray[3] = "You tend to draw and nurture others with your natural charisma. Rarely satisfied with petty details, you remain focused on the grander scheme of things. In affairs of the heart you are very practical and might be thought on occasion perfunctory or shallow. Oddly, though you have a natural tendency to lead, you have a very thin skin and can easily be hurt by a thoughtless comment or a cruel barb. There is a danger that you will take on more responsibility than you can reasonably be expected to manage. So eager are you to succeed, that on occasion you crash and burn when the reality of the situation rears its head. Often your wide circle of friends can be rather indiscriminate; care must be taken not to become entangled with those of questionable moral character. Admitting weakness isn’t easy for you. When proven not to be invulnerable it can come as a great surprise. Unresolved issues can trouble you deeply.";
  486.             resultarray[4] = "Though quiet on the outside, you are often the hidden hero; someone who rushes in when needed and then after the emergency is over fades back into the woodwork. Because of this sense of duty and honor, you can also on occasion be rigid in your viewpoint and unyielding in the face of other ways of thinking. Usually cynical and rarely trusting of others, you maintain a small set of intimate friends. These bonds are stronger than most. You are always grounded in the present moment. Your close bonds can also lead to clique-ishness and a tendency to gossip about those who are deemed less worthy. You are an integrative thinker, collecting data from a wide range of sources and applying it to your worldview. You can become overly task-oriented. In stressful situations you often withdraw from the world to seek peace in contemplation. You often seem cold and withdrawn. Often you will withdraw rather than verbalize your discontent.";
  487.             resultarray[5] = "You are not a leader of men but an organizer of men. You need order and organization to feel secure about your life. You will usually have extensive knowledge of your family history and tradition. You have little use for things that are not useful. Hard work, thrift and dedication are the way to your heart. You will always deal with others in a steadfast and straightforward manner, and will consequently expect others to behave the same way. The strange, the illicit, the unusual, have no place in your mindset. Proper planning and organization is a distinct pleasure to you. Because of your sense of responsibility, you will often accept leadership roles that can be onerous and difficult. Your thinking is sequential. Relationships for you often revolve around a sense of mutual responsibility. Good parenting is of prime importance, as is the duties that one lover has to another. You are intensely loyal, but on occasion can be so obsessed with the duties of a relationship that you can forget to address the private moments that give a relationship meaning. Oddly, you can be extremely sentimental.";
  488.             resultarray[6] = "Often concerned with right and wrong, and punctilious in expressing it, you are best represented by the Customs Agent or the IRS inspector. Initially seen by others as cold or uncaring, you are difficult for those more spontaneous members of society to understand. You are extremely stable, responsible and dependable. You manifest an amazing ability to concentrate on the issue at hand, and are difficult to distract from issues that are important. You manifest a great sense of loyalty to your employers and your government. You tend to show love through a display of committed works, believing that actions speak louder than words. You are also resistant to change and tend to believe that the old ways are best. If a behavior has been successful in the past, why would anyone want to change? You work best in a controlled environment.";
  489.             resultarray[7] = "Fond of tradition, but attached more to the joy of human interaction, you are often a beacon of hope to those members of society who have lost faith or who are in need of succor. You are often emotional, and this emotionality is rarely held in check. Kind and helping by nature, when affronted you will explode, and just as suddenly when the pain has passed return to normalcy again. On occasion this quick and vibrant emotionality is translated into a life on the stage or screen. You have a strong sense of right and wrong, but can sometimes be left confused and uncertain in times of stress or when tough decisions must be made. You avoid conflict, tending to stay out of trouble in hopes that the group will benefit most from this behavior. Because you have trouble putting your own needs first, you will be put in much stress if you find yourself in an unequal relationship, one in which your partner is not as giving as you are.";
  490.             resultarray[8] = "You need to help others and to be thought of as a generous and kind individual. Often you are taken advantage of and regarded as simply part of the scenery. You work best when handling the work yourself; you do not appreciate a managerial role and tend to be uncomfortable in that position. Friendship is important to you, but it is generated on a personal basis, rarely a professional one. Consequently, family life is very important to you, and is often the most important aspect. Because of a strong sense of propriety however, you will sometimes consider the eccentric behavior of your friends and family as a personal affront. Often you find it difficult to speak up about personal anguish or pain, feeling instead that it is something an individual should bear in silence. Tradition is important to you, and you feel a sense of belonging when operating within the constraints of a predictable routine.";
  491.             resultarray[9] = "Verbally and mentally fluid, you are refreshing and illuminating to those around you. This is occasionally somewhat discounted by the obvious pleasure that you take in exercising your mental acuity. Although generally peaceful you can often take a verbally aggressive tact in relations with the world, which can often be misunderstood by those around you. Innovative in the extreme, you can often think yourself right out of the correct answer to a given problem. Many times you are referred to as your own worst enemy. You tire very quickly of routine and so make poor clerks or administrative help. You also have no respect for authority and little patience for those you regard as inferior, most especially those in charge. Experimentation is your watchword and can occasionally lead to experience for its own sake and shallow decadence. Your thought can sometimes be scattered and disconnected.";
  492.             resultarray[10] = "Thoughtful to the extreme, you are often obsessed with perfection and the rules governing your own personal interests. Your world is black and white. You love to work within a logical system, such as language, computer programming, or mathematics. Manipulating a system that can be completely understood is a distinct pleasure to you, because of your confidence in the underlying veracity of your belief system. Because of your appreciation for logic and order, those who speak or think in a sloppy manner are apt to generate more than their share of wrath. Although very amiable, you are not drawn to friendships out of a sense of personal need. You are just as happy by yourself with a good book or puzzle. Because you are so involved with thought, you will on occasion have difficulty dealing with the day-to-day problems of a normal life. Taking out the trash, doing the dishes, these are often left until the last possible moment, if at all.";
  493.             resultarray[11] = "Blustering through the world with the finesse of a thunderstorm, you are a natural leader, a creator of consensus. You will often plan out the future in deliberate and at times frustrating detail. This ability to create and to plan is sometimes expressed as a facility for the telling of tall tales.Your friends often find themselves assigned tasks or roles within the group. This can be very useful when action is called for and equally annoying when the idea at hand is rest and relaxation. When challenged, however, you can become cold and argumentative. Your understanding of the world is deliberate and well thought out. Your emotion comes in two varieties, either restrained and sincere, or else melodramatic and loud and usually inauthentic. Affection for you is best expressed through action, by doing things for the people you care about. This need to always be proactive can lead you to feel that there is no end to the trouble in your life.";
  494.             resultarray[12] = "Quiet and very self-assured, you tend to keep your own council. Pragmatic and practical to a fault, you are not one to worry about the finer points of philosophical discourse. In fact, because you are very much an individualist, you often finds yourself at odds with the established truth or the wishes of the majority. You will often earn the wrath of an employer by taking upon yourself decisions which are rightly those of your manager. You are not one to take credit unless it is deserved. Similarly however, you will also not happily give credit where it is not due. In a romantic relationship you can be very frustrating. While you do care deeply and sincerely, and are willing to work at a relationship, your confidence in your own abilities can on occasion make it difficult to see the world from a partner’s point of view. Quiet and stoic at times, you can drive a more emotional individual completely up the wall. You can become overstressed and fatigued without knowing it. Taking time to rest between bouts of hard work can help to prevent a breakdown later on.";
  495.             resultarray[13] = "You reach out to the world and pull in experiences of all forms and kinds. Spontaneous, immediate and active, you have a natural tendency to win, whether this is in the business world or on the freeway. In the right context this can be a positive encouragement to those around you. In the wrong context it can lead to a pathetic display of ego and misplaced pride. You are always on the prowl for clues as to how to win. Usually this behavior is unconscious or playful but the sense of play can rapidly disappear if you are found to be losing in the aforementioned contest. Only those who don’t compete are met with derision. You love to be the center of attention. The moment at hand is always of prime concern. Worries about the future or the past, or abstract discussions of philosophical matters are something for others to concern themselves with. Emotions are fleeting and often used as tactics.";
  496.             resultarray[14] = "Handy in the real world manipulation of objects and events, you are easily enthused by practical projects. You often ignore or conveniently forget rules and boundaries that limit your freedom. This need for freedom extends even to the personal sphere and though you are kind and gentle, you will often be hard to pin down to a monogamous lifestyle. Because you tend to verbalize so seldom, you can be seen as phlegmatic or impassive. In moments of high tension you can often surprise those around you with a lighthearted or humorous remark. Because of your facility with the physical world, you are often engaged in sports that require dexterity, such as motorcycling or hang gliding. You will rarely have time for flights of fancy or unproductive discussion. Constraints on your freedom will be regarded as a personal attack.";
  497.             resultarray[15] = "Always happy in a crowd, you love to converse, to relate, and above all to have fun. You tend to think in a more holistic manner than many others. Like a crow you are attracted to shiny objects, new ideas, playful exciting colors and the thrill of a new personal relationship. You love to talk or gossip. You are highly invested in the reality of day-to-day life. Practicality is far more important than issues of honor or allegiance. You are a creature of the here and now. You are a natural multi-tasker, often switching mid-thought from one duty to another. You have a flair for presenting your personality in your work, and are known as a great storyteller and natural actor. You are very skilled at taking in a barrage of information and distilling what is most important from it. Naturally charming, you are quick to win new friends. Over stimulation is a danger.";
  498.             resultarray[16] = "You are in a perpetual quest to find the new, the exciting. Emotionally volatile, you are known for sudden changes of opinion, of appreciation, and behavior. Following rules and established methods is difficult for you and the difficulties of higher education are usually quite daunting. Knowledge is best gained through an intimate association with the matter at hand. Usually driven by attitudes and desires of the group, you are talented in an established field of endeavor. Emotions come and go without a strong understanding of their causes. They are unexpected guests in an otherwise placid landscape. You live by your own codes of conduct, which can be noble or terrible depending on the individual. Authority is meaningless to you. You hate to be predictable, at all costs. Rarely verbally effusive, you can at times feel as if your feelings are too deep for words. You are very observant, but rarely express these observations to others.";
  499.             tempquestiontext = new String();
  500.             tempquestiontext = "";
  501.             resultnumber = 0;
  502.             DIAGNOSIS = "";
  503.             empty = new MovieClip();
  504.             addChildAt(empty, 1);
  505.             empty2 = new MovieClip();
  506.             addChildAt(empty2, 2);
  507.             EX = 0;
  508.             IN = 0;
  509.             INT = 0;
  510.             SE = 0;
  511.             TH = 0;
  512.             FE = 0;
  513.             JU = 0;
  514.             PE = 0;
  515.             questionresults = new TextField();
  516.             questionresults.width = 550;
  517.             questionresults.height = 280;
  518.             questionresults.x = 30;
  519.             questionresults.y = 70;
  520.             questionresults.wordWrap = true;
  521.             questionresults.text = "testing";
  522.             tfFormatter = new TextFormat();
  523.             tfFormatter.font = "Helvetica";
  524.             tfFormatter.size = 13;
  525.             tfFormatter.leading = 4;
  526.             questionresults.defaultTextFormat = tfFormatter;
  527.             ending = new questionresult();
  528.             ending.emailus.addEventListener(MouseEvent.CLICK, emailusfunction);
  529.             urlRequest = new URLRequest("mailto:rhortx@gmail.com");
  530.             questionpic1 = new question1();
  531.             questionpic2 = new question2();
  532.             questionpic3 = new question3();
  533.             questionpic4 = new question4();
  534.             questionpic5 = new question5();
  535.             questionpic6 = new question6();
  536.             questionpic7 = new question7();
  537.             questionpic8 = new question8();
  538.             questionpic9 = new question9();
  539.             questionpic10 = new question10();
  540.             questionpic11 = new question11();
  541.             questionpic12 = new question12();
  542.             questionpic13 = new question13();
  543.             questionpic14 = new question14();
  544.             questionpic15 = new question15();
  545.             questionpic16 = new question16();
  546.             questionpic17 = new question17();
  547.             questionpic18 = new question18();
  548.             questionpic19 = new question19();
  549.             questionpic20 = new question20();
  550.             questionletters1 = new question1b();
  551.             questionletters2 = new question2b();
  552.             questionletters3 = new question3b();
  553.             questionletters4 = new question4b();
  554.             questionletters5 = new question5b();
  555.             questionletters6 = new question6b();
  556.             questionletters7 = new question7b();
  557.             questionletters8 = new question8b();
  558.             questionletters9 = new question9b();
  559.             questionletters10 = new question10b();
  560.             questionletters11 = new question11b();
  561.             questionletters12 = new question12b();
  562.             questionletters13 = new question13b();
  563.             questionletters14 = new question14b();
  564.             questionletters15 = new question15b();
  565.             questionletters16 = new question16b();
  566.             questionletters17 = new question17b();
  567.             questionletters18 = new question18b();
  568.             questionletters19 = new question19b();
  569.             questionletters20 = new question20b();
  570.             questionletters1.alpha = 0.3;
  571.             thequestionnumber = 0;
  572.             number = String(thequestionnumber);
  573.             questionnumber.text = number;
  574.             questionlist = new Array();
  575.             questionlist[1] = "Which of these circles is angry?";
  576.             questionlist[2] = "Which location is unsafe?";
  577.             questionlist[3] = "Which area is pretending?";
  578.             questionlist[4] = "Who will survive?";
  579.             questionlist[5] = "Which position is diseased?";
  580.             questionlist[6] = "Where is the sin?";
  581.             questionlist[7] = "Where will they find you?";
  582.             questionlist[8] = "Which one cannot be stopped?";
  583.             questionlist[9] = "Which shape can control your mind?";
  584.             questionlist[10] = "Which shape is insane?";
  585.             questionlist[11] = "Where is the betrayal?";
  586.             questionlist[12] = "Which pretends to be you?";
  587.             questionlist[13] = "Which can hear you breathing?";
  588.             questionlist[14] = "Which shape wants to hurt you?";
  589.             questionlist[15] = "Who are the false friends?";
  590.             questionlist[16] = "How can you stop them lying about you?";
  591.             questionlist[17] = "Has the nightmare only begun?";
  592.             questionlist[18] = "Which knows your secret?";
  593.             questionlist[19] = "Is there another voice inside you?";
  594.             questionlist[20] = "Am I you?";
  595.             questiontop = new question0();
  596.             addChild(questiontop);
  597.             questiontop.startbutton.addEventListener(MouseEvent.CLICK, removetop);
  598.             empty.addChild(questionpic1);
  599.             empty2.addChild(questionletters1);
  600.             blurquestion = new BlurFilter();
  601.             blurquestion.blurX = 20;
  602.             blurquestion.blurY = 4;
  603.             blurquestion.quality = 5;
  604.             ymax = 30;
  605.             xmax = 30;
  606.             xmin = 3;
  607.             ymin = 3;
  608.             xbigger = "yes";
  609.             ybigger = "yes";
  610.             randomx = Math.random() * 30;
  611.             randomy = Math.random() * 30;
  612.             blurTimer = new Timer(60);
  613.             blurTimer.addEventListener(TimerEvent.TIMER, changeblur);
  614.             blurTimer.start();
  615.             tweentimer = new Timer(1000, 1);
  616.             tweentimer.addEventListener(TimerEvent.TIMER, afterfade);
  617.             stagebuttona.addEventListener(MouseEvent.CLICK, clickeda);
  618.             stagebuttonb.addEventListener(MouseEvent.CLICK, clickedb);
  619.             imagetween1 = new Tween(questionpic1, "alpha", null, 1, 0, 11, false);
  620.             imagetween1.stop();
  621.             imagetween2 = new Tween(questionpic2, "alpha", null, 1, 0, 11, false);
  622.             imagetween2.stop();
  623.             imagetween3 = new Tween(questionpic3, "alpha", null, 1, 0, 11, false);
  624.             imagetween3.stop();
  625.             imagetween4 = new Tween(questionpic4, "alpha", null, 1, 0, 11, false);
  626.             imagetween4.stop();
  627.             imagetween5 = new Tween(questionpic5, "alpha", null, 1, 0, 11, false);
  628.             imagetween5.stop();
  629.             imagetween6 = new Tween(questionpic6, "alpha", null, 1, 0, 11, false);
  630.             imagetween6.stop();
  631.             imagetween7 = new Tween(questionpic7, "alpha", null, 1, 0, 11, false);
  632.             imagetween7.stop();
  633.             imagetween8 = new Tween(questionpic8, "alpha", null, 1, 0, 11, false);
  634.             imagetween8.stop();
  635.             imagetween9 = new Tween(questionpic9, "alpha", null, 1, 0, 11, false);
  636.             imagetween9.stop();
  637.             imagetween10 = new Tween(questionpic10, "alpha", null, 1, 0, 11, false);
  638.             imagetween10.stop();
  639.             imagetween11 = new Tween(questionpic11, "alpha", null, 1, 0, 11, false);
  640.             imagetween11.stop();
  641.             imagetween12 = new Tween(questionpic12, "alpha", null, 1, 0, 11, false);
  642.             imagetween12.stop();
  643.             imagetween13 = new Tween(questionpic13, "alpha", null, 1, 0, 11, false);
  644.             imagetween13.stop();
  645.             imagetween14 = new Tween(questionpic14, "alpha", null, 1, 0, 11, false);
  646.             imagetween14.stop();
  647.             imagetween15 = new Tween(questionpic15, "alpha", null, 1, 0, 11, false);
  648.             imagetween15.stop();
  649.             imagetween16 = new Tween(questionpic16, "alpha", null, 1, 0, 11, false);
  650.             imagetween16.stop();
  651.             imagetween17 = new Tween(questionpic17, "alpha", null, 1, 0, 11, false);
  652.             imagetween17.stop();
  653.             imagetween18 = new Tween(questionpic18, "alpha", null, 1, 0, 11, false);
  654.             imagetween18.stop();
  655.             imagetween19 = new Tween(questionpic19, "alpha", null, 1, 0, 11, false);
  656.             imagetween19.stop();
  657.             imagetween20 = new Tween(questionpic20, "alpha", null, 1, 0, 11, false);
  658.             imagetween20.stop();
  659.             lettertween1 = new Tween(questionletters1, "alpha", null, 0.3, 0, 16, false);
  660.             lettertween1.stop();
  661.             lettertween2 = new Tween(questionletters2, "alpha", null, 0.3, 0, 16, false);
  662.             lettertween2.stop();
  663.             lettertween3 = new Tween(questionletters3, "alpha", null, 0.3, 0, 16, false);
  664.             lettertween3.stop();
  665.             lettertween4 = new Tween(questionletters4, "alpha", null, 0.3, 0, 16, false);
  666.             lettertween4.stop();
  667.             lettertween5 = new Tween(questionletters5, "alpha", null, 0.3, 0, 16, false);
  668.             lettertween5.stop();
  669.             lettertween6 = new Tween(questionletters6, "alpha", null, 0.3, 0, 16, false);
  670.             lettertween6.stop();
  671.             lettertween7 = new Tween(questionletters7, "alpha", null, 0.3, 0, 16, false);
  672.             lettertween7.stop();
  673.             lettertween8 = new Tween(questionletters8, "alpha", null, 0.3, 0, 16, false);
  674.             lettertween8.stop();
  675.             lettertween9 = new Tween(questionletters9, "alpha", null, 0.3, 0, 16, false);
  676.             lettertween9.stop();
  677.             lettertween10 = new Tween(questionletters10, "alpha", null, 0.3, 0, 16, false);
  678.             lettertween10.stop();
  679.             lettertween11 = new Tween(questionletters11, "alpha", null, 0.3, 0, 16, false);
  680.             lettertween11.stop();
  681.             lettertween12 = new Tween(questionletters12, "alpha", null, 0.3, 0, 16, false);
  682.             lettertween12.stop();
  683.             lettertween13 = new Tween(questionletters13, "alpha", null, 0.3, 0, 16, false);
  684.             lettertween13.stop();
  685.             lettertween14 = new Tween(questionletters14, "alpha", null, 0.3, 0, 16, false);
  686.             lettertween14.stop();
  687.             lettertween15 = new Tween(questionletters15, "alpha", null, 0.3, 0, 16, false);
  688.             lettertween15.stop();
  689.             lettertween16 = new Tween(questionletters16, "alpha", null, 0.3, 0, 16, false);
  690.             lettertween16.stop();
  691.             lettertween17 = new Tween(questionletters17, "alpha", null, 0.3, 0, 16, false);
  692.             lettertween17.stop();
  693.             lettertween18 = new Tween(questionletters18, "alpha", null, 0.3, 0, 16, false);
  694.             lettertween18.stop();
  695.             lettertween19 = new Tween(questionletters19, "alpha", null, 0.3, 0, 16, false);
  696.             lettertween19.stop();
  697.             lettertween20 = new Tween(questionletters20, "alpha", null, 0.3, 0, 16, false);
  698.             lettertween20.stop();
  699.             stop();
  700.             return;
  701.         }// end function
  702.  
  703.         public function faderout() : void
  704.         {
  705.             this["imagetween" + questionnumber.text].start();
  706.             this["lettertween" + questionnumber.text].start();
  707.             return;
  708.         }// end function
  709.  
  710.         public function makediagnosis(param1:String) : void
  711.         {
  712.             switch(param1)
  713.             {
  714.                 case "EXINTFEPE":
  715.                 {
  716.                     resultnumber = 1;
  717.                     break;
  718.                 }
  719.                 case "ININTFEPE":
  720.                 {
  721.                     resultnumber = 2;
  722.                     break;
  723.                 }
  724.                 case "EXINTFEJU":
  725.                 {
  726.                     resultnumber = 3;
  727.                     break;
  728.                 }
  729.                 case "ININTFEJU":
  730.                 {
  731.                     resultnumber = 4;
  732.                     break;
  733.                 }
  734.                 case "EXSETHJU":
  735.                 {
  736.                     resultnumber = 5;
  737.                     break;
  738.                 }
  739.                 case "INSETHJU":
  740.                 {
  741.                     resultnumber = 6;
  742.                     break;
  743.                 }
  744.                 case "EXSEFEJU":
  745.                 {
  746.                     resultnumber = 7;
  747.                     break;
  748.                 }
  749.                 case "INSEFEJU":
  750.                 {
  751.                     resultnumber = 8;
  752.                     break;
  753.                 }
  754.                 case "EXINTTHPE":
  755.                 {
  756.                     resultnumber = 9;
  757.                     break;
  758.                 }
  759.                 case "ININTTHPE":
  760.                 {
  761.                     resultnumber = 10;
  762.                     break;
  763.                 }
  764.                 case "EXINTTHJU":
  765.                 {
  766.                     resultnumber = 11;
  767.                     break;
  768.                 }
  769.                 case "ININTTHJU":
  770.                 {
  771.                     resultnumber = 12;
  772.                     break;
  773.                 }
  774.                 case "EXSETHPE":
  775.                 {
  776.                     resultnumber = 13;
  777.                     break;
  778.                 }
  779.                 case "INSETHPE":
  780.                 {
  781.                     resultnumber = 14;
  782.                     break;
  783.                 }
  784.                 case "EXSEFEPE":
  785.                 {
  786.                     resultnumber = 15;
  787.                     break;
  788.                 }
  789.                 case "INSEFEPE":
  790.                 {
  791.                     resultnumber = 16;
  792.                     break;
  793.                 }
  794.                 default:
  795.                 {
  796.                     break;
  797.                 }
  798.             }
  799.             return;
  800.         }// end function
  801.  
  802.         public function emailusfunction(event:MouseEvent) : void
  803.         {
  804.             trace("email");
  805.             navigateToURL(urlRequest);
  806.             return;
  807.         }// end function
  808.  
  809.         public function clickeda(event:MouseEvent) : void
  810.         {
  811.             if (thequestionnumber < 20)
  812.             {
  813.                 faderout();
  814.                 tweentimer.start();
  815.                 additupa(thequestionnumber);
  816.             }
  817.             else
  818.             {
  819.                 tabulate();
  820.             }
  821.             return;
  822.         }// end function
  823.  
  824.         public function clickedb(event:MouseEvent) : void
  825.         {
  826.             if (thequestionnumber < 20)
  827.             {
  828.                 faderout();
  829.                 tweentimer.start();
  830.                 additupb(thequestionnumber);
  831.             }
  832.             else
  833.             {
  834.                 tabulate();
  835.             }
  836.             return;
  837.         }// end function
  838.  
  839.         public function switchquestion() : void
  840.         {
  841.             flare.play();
  842.             empty.removeChildAt(0);
  843.             empty2.removeChildAt(0);
  844.             increasequestion();
  845.             empty.addChild(this["questionpic" + questionnumber.text]);
  846.             this["questionletters" + questionnumber.text].alpha = 0.3;
  847.             empty2.addChild(this["questionletters" + questionnumber.text]);
  848.             return;
  849.         }// end function
  850.  
  851.         public function showresult() : void
  852.         {
  853.             questionresults.htmlText = resultarray[resultnumber];
  854.             addChild(ending);
  855.             ending.addChild(questionresults);
  856.             return;
  857.         }// end function
  858.  
  859.     }
  860. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement