Re: Using my start button to start and stop the scene or movie.
Here is the action scrip that I created. Correct it if you can.
Process.visible = false;
Cycles.visible = false;
stop();
function playMovie(event:MouseEvent):void
{
play();
}
startButton.addEventListener(MouseEvent.CLICK,playMovie);
var paused:Boolean = false;
function myPauseFunction():void{
if(paused) {
play();
paused = false;
}
else {
stop();
paused = true;
}
}
import flash.events.Event;
btn_show_process.addEventListener(MouseEvent.CLICK, showText);
btn_hide_process.addEventListener(MouseEvent.CLICK, hideText);
function showText(event:Event):void {
Process.visible = true;
Cycles.visible = true;
}
function hideText(event:Event):void {
Process.visible = false;
Cycles.visible = false;
}