help place objects, make sure that they do not have more tour

Hey guys, really happy with the little program that I made. Learned a lot over the past months with the help of the community. I have all the features I want. The basic principle of this exercise is that the youth will enter a statement, drag on a microphone and it will appear on the corresponding box (board1, selection2, Canada3). So if they seize two statements in a row he will place their responses to my predetermined location. Is it possible to space out each answer by a difference of 10 px? So they enter one answer and it will go to the (x) 75px, answer two will go to x 85 px? Basically, ensuring that mc does not overlap or accumulate. Hope it makes sense. My code is below, with the highlighted area.

listeners

backbutton.addEventListener (MouseEvent.CLICK, Precedentcliquez);

helpbutton.addEventListener (MouseEvent.CLICK, helpclick);

answerbutton.addEventListener (MouseEvent.CLICK, answerclick);

helpmenu.xbutton.addEventListener (MouseEvent.CLICK, xbuttonclick);

answermenu.xanswerbutton.addEventListener (MouseEvent.CLICK, xanswerbuttonclick);

stage.addEventListener (Event.ENTER_FRAME, _fullScreen);

for (var i: int = 1; i < = 11; i ++) {}

This ["realgtext" + i] .addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

}

for (i = 1; i < = 12; i ++) {}

This ["windows" + i] .addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

}

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

Import fl.transitions.TweenEvent;

import com.greensock;

import flash.media.Sound;

import flash.display.StageScaleMode;

import flash.events.Event;

import flash.display.StageDisplayState;

HelpMenu.Visible = false;

answermenu. Visible = false;

variable declarations

var folderclicksound:paperflip = new paperflip

var mainclicksound:mainclick = new mainclick

var I: Object;

function grabMe(e:MouseEvent):void {}

= me e.currentTarget;

me.removeEventListener (MouseEvent.MOUSE_DOWN, grabMe);

me.startDrag (true);

addChild (e.currentTarget as DisplayObject);

stage.addEventListener (MouseEvent.MOUSE_MOVE, Drachma);

stage.addEventListener (MouseEvent.MOUSE_UP, dropMe);

}

function dropMe(e:MouseEvent):void {}

stage.removeEventListener (MouseEvent.MOUSE_UP, dropMe);

stage.removeEventListener (MouseEvent.MOUSE_MOVE, Drachma);

me.stopDrag ();

me.addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

droponmic (DisplayObject (e.currentTarget))

/ / mainclicksound.play ();

}

function dragMe(e:MouseEvent):void {}

e.updateAfterEvent ();

dragchange (DisplayObject (e.currentTarget))

}

function dragchange(e:DisplayObject):void {}

If (paper.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("lyric")

TweenMax.to(me,1,{scaleX:0.6,scaleY:0.6,rotation:0});)

} else if (micfeelings.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else if (micactions.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else if (micthoughts.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else {}

me.gotoAndStop ("air")

TweenMax.to(me,0.2,{scaleX:0.8,scaleY:0.8,rotation:0});)

}

}

function droponmic(e:DisplayObject):void {}

If (micactions.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.x = 500

me.y = 273

section 2

} else if (micthoughts.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.x = 800

me.y = 273

section 3

} else if (micfeelings.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.x = 200

me.y = 75

}

}

function _fullScreen(e:Event):void

{

stage.removeEventListener (Event.ENTER_FRAME, _fullScreen);

stage.scaleMode = StageScaleMode.EXACT_FIT;

stage.displayState = StageDisplayState.FULL_SCREEN;

}

items in NAV bar

function backclick(event:MouseEvent):void {}

answermenu.visible = false;

helpmenu.visible = false;

}

function helpclick(event:MouseEvent):void {}

helpmenu.visible = true;

answermenu.visible = false;

setChildIndex (WorldShip, numChildren - 1).

TweenMax.to (our help, 3, {y: 350, startAt: {y: 600}, ease:Elastic.easeOut});})

}

function xbuttonclick(event:MouseEvent):void {}

helpmenu.visible = false;

}

function answerclick(event:MouseEvent):void {}

answermenu.visible = true;

helpmenu.visible = false;

setChildIndex (answermenu, numChildren - 1).

TweenMax.to (answermenu, 3, {y: 350, startAt: {y: 600}, ease:Elastic.easeOut});})

}

function xanswerbuttonclick(event:MouseEvent):void {}

answermenu.visible = false;

helpmenu.visible = false;

}

//}

sound components

function mainclicksoundplay (): void {}

mainclicksound. Play();

//}

use:

var nextX:int = 75;

listeners

backbutton.addEventListener (MouseEvent.CLICK, Precedentcliquez);

helpbutton.addEventListener (MouseEvent.CLICK, helpclick);

answerbutton.addEventListener (MouseEvent.CLICK, answerclick);

helpmenu.xbutton.addEventListener (MouseEvent.CLICK, xbuttonclick);

answermenu.xanswerbutton.addEventListener (MouseEvent.CLICK, xanswerbuttonclick);

stage.addEventListener (Event.ENTER_FRAME, _fullScreen);

for (var i: int = 1; i<>

This ["realgtext" + i] .addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

}

for (i = 1; i<>

This ["windows" + i] .addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

}

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

Import fl.transitions.TweenEvent;

import com.greensock;

import flash.media.Sound;

import flash.display.StageScaleMode;

import flash.events.Event;

import flash.display.StageDisplayState;

HelpMenu.Visible = false;

answermenu. Visible = false;

variable declarations

var folderclicksound:paperflip = new paperflip

var mainclicksound:mainclick = new mainclick

var I: Object;

function grabMe(e:MouseEvent):void {}

= me e.currentTarget;

me.removeEventListener (MouseEvent.MOUSE_DOWN, grabMe);

me.startDrag (true);

addChild (e.currentTarget as DisplayObject);

stage.addEventListener (MouseEvent.MOUSE_MOVE, Drachma);

stage.addEventListener (MouseEvent.MOUSE_UP, dropMe);

}

function dropMe(e:MouseEvent):void {}

stage.removeEventListener (MouseEvent.MOUSE_UP, dropMe);

stage.removeEventListener (MouseEvent.MOUSE_MOVE, Drachma);

me.stopDrag ();

me.addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

droponmic (DisplayObject (e.currentTarget))

mainclicksound. Play();

}

function dragMe(e:MouseEvent):void {}

e.updateAfterEvent ();

dragchange (DisplayObject (e.currentTarget))

}

function dragchange(e:DisplayObject):void {}

If (paper.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("lyric")

TweenMax.to(me,1,{scaleX:0.6,scaleY:0.6,rotation:0});)

} else if (micfeelings.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else if (micactions.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else if (micthoughts.hitTestPoint (mouseX, mouseY, true)) {}

me.gotoAndStop ("cat")

TweenMax.to(me,0.75,{scaleX:0.29,scaleY:0.29,rotation:0});)

} else {}

me.gotoAndStop ("air")

TweenMax.to(me,0.2,{scaleX:0.8,scaleY:0.8,rotation:0});)

}

}

function droponmic(e:DisplayObject):void {}

If (micactions.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.y = 273

section 2

} else if (micthoughts.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.y = 273

section 3

} else if (micfeelings.hitTestPoint (mouseX, mouseY, true)) {}

TweenMax.to(me,0.75,{scaleX:0.35,scaleY:0.35,rotation:0});)

me.y = 75

}

me .x = nextX;

nextX += 10;

}

function _fullScreen(e:Event):void

{

stage.removeEventListener (Event.ENTER_FRAME, _fullScreen);

stage.scaleMode = StageScaleMode.EXACT_FIT;

stage.displayState = StageDisplayState.FULL_SCREEN;

}

items in NAV bar

function backclick(event:MouseEvent):void {}

answermenu. Visible = false;

HelpMenu.Visible = false;

}

function helpclick(event:MouseEvent):void {}

HelpMenu.Visible = true;

answermenu. Visible = false;

setChildIndex (WorldShip, numChildren - 1).

TweenMax.to (our help, 3, {y: 350, startAt: {y: 600}, ease:Elastic.easeOut});})

}

function xbuttonclick(event:MouseEvent):void {}

HelpMenu.Visible = false;

}

function answerclick(event:MouseEvent):void {}

answermenu. Visible = true;

HelpMenu.Visible = false;

setChildIndex (answermenu, numChildren - 1).

TweenMax.to (answermenu, 3, {y: 350, startAt: {y: 600}, ease:Elastic.easeOut});})

}

function xanswerbuttonclick(event:MouseEvent):void {}

answermenu. Visible = false;

HelpMenu.Visible = false;

}

//}

sound components

function mainclicksoundplay (): void {}

mainclicksound. Play();

//}

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Screen damaged

    Parts suggestions on how to restore an iPhone 6 Plus with a damaged total screen. I need to return damaged phone I got the phone replaced through insurance. I activated the new phone. Thank you very much for your suggestions!

  • IdeaPad p500 does not work on battery

    Windows makes an update today, and now my pc does not work on battery power. The battery icon is just empty and says plugged in and not charging. It is the first time I have encountered this problem. When I unplug it, it dies immediately. Anyone know

  • slow motion video

    in the Web page of motorola, it said motorcycle g can capture video slow motion... but in camera... I cudnt find such an option... any idea any1?

  • Problem with clicks-info/balloons

    Installed new streets and trips 2013 but after entering address to pin, that I do not get the ToolTip appears to the text I want the ball?

  • Adding a player of fingerprints on my T420s

    I just got my new T420s last week. I would like to add a player of fingerprints on it. What are my options? I don't want a solution that will draw my warranty. Thank you!