Você está na página 1de 4

/* Stop at This Frame

The Flash timeline will stop/pause at the frame where you insert this code.

Can also be used to stop/pause the timeline of movieclips.

*/

stop();

hibiscus.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

function fl_ClickToDrag(event:MouseEvent):void

hibiscus.startDrag();

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

function fl_ReleaseToDrop(event:MouseEvent):void

var hibiscus = event.target;

var target= hibiscus.dropTarget;

if (target != null && target.parent == rumah)

{
dropfeed.text = "Congratulations!";

dropfeed.textColor = 0x0000FF;

else

dropfeed.text = "Sorry! Try Again!";

dropfeed.textColor = 0xFF0000;

hibiscus.stopDrag();

/* Click to Go to Frame and Stop

Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline
and stops the movie.

Can be used on the main timeline or on movie clip timelines.

Instructions:

1. Replace the number 5 in the code below with the frame number you would like the playhead to
move to when the symbol instance is clicked.

*/

menu_kuiz33_gj.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_55);

function fl_ClickToGoToAndStopAtFrame_55(event:MouseEvent):void

gotoAndStop(2);

}
/* Drag and Drop

Makes the specified symbol instance moveable with drag and drop.

*/

triliam.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_12);

function fl_ClickToDrag_12(event:MouseEvent):void

triliam.startDrag();

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_12);

function fl_ReleaseToDrop_12(event:MouseEvent):void

var triliam = event.target;

var target= triliam.dropTarget;

if (target != null && target.parent == rumah)

dropfeed.text = "Congratulations!";

dropfeed.textColor = 0x0000FF;

}
else

dropfeed.text = "Sorry! Try Again!";

dropfeed.textColor = 0xFF0000;

triliam.stopDrag();

/* Click to Go to Frame and Stop

Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline
and stops the movie.

Can be used on the main timeline or on movie clip timelines.

Instructions:

1. Replace the number 5 in the code below with the frame number you would like the playhead to
move to when the symbol instance is clicked.

*/

back_3.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_71);

function fl_ClickToGoToAndStopAtFrame_71(event:MouseEvent):void

gotoAndStop(12);

Você também pode gostar