Escolar Documentos
Profissional Documentos
Cultura Documentos
The Flash timeline will stop/pause at the frame where you insert this code.
*/
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
{
dropfeed.text = "Congratulations!";
dropfeed.textColor = 0x0000FF;
else
dropfeed.textColor = 0xFF0000;
hibiscus.stopDrag();
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline
and stops the movie.
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
dropfeed.text = "Congratulations!";
dropfeed.textColor = 0x0000FF;
}
else
dropfeed.textColor = 0xFF0000;
triliam.stopDrag();
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline
and stops the movie.
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);