title: Matching quiz using action script
body: <p>I have created a matching quiz in flash professional, but when the user answer correctly and want to navigate to the second page , the answers of the matching question appears in the second scene then it disappeared after that in the next scene how can I solve the problem?</p>
  
  <pre><code> var objectoriginalX:Number;
  var objectoriginalY:Number;
  polygon_mc.buttonMode=true;
  polygon_mc.addEventListener(MouseEvent.MOUSE_DOWN,pickupObject);
  polygon_mc.addEventListener(MouseEvent.MOUSE_UP,dropObject);
  circle_mc.buttonMode=true;
  circle_mc.addEventListener(MouseEvent.MOUSE_DOWN,pickupObject);
  circle_mc.addEventListener(MouseEvent.MOUSE_UP,dropObject);
  square_mc.buttonMode=true;
  square_mc.addEventListener(MouseEvent.MOUSE_DOWN,pickupObject);
  square_mc.addEventListener(MouseEvent.MOUSE_UP,dropObject);
  function pickupObject(event:MouseEvent):void{
  event.target.startDrag(true);
  event.target.parent.addChild(event.target);
  objectoriginalX=event.target.x;
  objectoriginalY=event.target.y;
  }
  function dropObject(event:MouseEvent):void{
  event.target.stopDrag();
  var matchingTargetName:String="target"+event.target.name;
  var matchingTarget:DisplayObject=getChildByName(matchingTargetName);
  if(event.target.dropTarget!=null&amp;&amp;event.target.dropTarget.parent==matchingTarget){
  event.target.removeEventListener(MouseEvent.MOUSE_DOWN,pickupObject);
  event.target.removeEventListener(MouseEvent.MOUSE_UP,dropObject);
  event.target.buttonMode=false;
  event.target.x=matchingTarget.x;
  event.target.y=matchingTarget.y;
  }
  else{event.target.x=objectoriginalX;
  event.target.y=objectoriginalY;
  }}
  </code></pre>
  
  <p>and this is print screen
  <img src="https://i.stack.imgur.com/HuMoL.jpg" alt="output"></p>