Posts

Showing posts from January, 2020

GRAFIK GOOGLE ONLINE

Image
  <html>   <head>     <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>     <script type="text/javascript">       google.charts.load('current', {'packages':['corechart']});       google.charts.setOnLoadCallback(drawChart);       function drawChart() {         var data = google.visualization.arrayToDataTable([           ['Year', 'Bimbel', 'Course'],           ['2020',  1000,      400],           ['2018',  1170,      460],           ['2019',  660,       1120],           ['2020',  2030,      2540]         ]);         var options = {         ...

Timer Untuk Menyerah

Image
import com.somefrogs.puzzle.PuzzleEvent; const list:Array = new Array();//array.pop() var split:int=0; var JM:int =0; var n:int=0; var statusLoop:Boolean=false; btB.visible=false; myPuzzle.addEventListener(PuzzleEvent.PUZZLE_DONE, pzlDone); function pzlDone(e:Event) { gotoAndPlay("done"); } btnkeluar3.addEventListener(MouseEvent.CLICK,keluar3); function keluar3(event:MouseEvent):void { NativeApplication.nativeApplication.exit(); } btB.addEventListener(MouseEvent.CLICK,gBack); function gBack(e:Event){ btB.visible=false; var myTimer:Timer = new Timer(1000,n+1); myTimer.addEventListener(TimerEvent.TIMER, timerListener); function timerListener (e:TimerEvent):void{ n=n-1; if (n<0){ n=0; //list.pop(); list.splice(0); gotoAndPlay("done"); } else{ myPuzzle.puzzleXML=list[n]; trace("Return "+String(n)); } } myTimer.start(); } myPuzzle.addEventListener(PuzzleEvent.PIECE_MOVE, ...