Posts

AS3 Load Youtube Embed

Image
Load Youtube pada AIR Android AS3: 1.Cara I Load Https://youtube.com melalui Navigasi Langsung var url:String = " https://www.youtube.com/watch?v=IXcbQ_BiGro "; var req:URLRequest = new URLRequest(url); navigateToURL(req); 2.Cara II EMbeD  Https://youtube.com melalui Navigasi Langsung var wt:uint; var ht:uint ; var webview:StageWebView ; var rect:Rectangle; var url:String; //url="https://www.youtube.com/apiplayer?video_id=tf7gy8j7BqA&autostart=1&autoplay=1&fs=0&controls=0&autohide=1&iv_load_policy=0&rel=0&start=0&showinfo=0&vq=hd720&"; autostart=1&autoplay=1&fs=1&controls=0&autohide=1&iv_load_policy=0&rel=0&start=0&showinfo=0&vq=hd720"; //cara Panjang lengkap //AIzaSyBQw3ZexsBHWcRf4iHCBGE18rizoy_G9I8//jika gagal load gambar //"https://www.youtube.com/v/tf7gy8j7BqA"; //ini Untuk HTML4 //url ="http://192.168.1.6/__top2020/youtube/app.php"; ...

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, ...

Reff AS3

http://www.puzzlescripts.com/nm-Sliding_Puzzle_AS3_Class-cp-38 http://www.puzzlescripts.com/nm-Jigsaw_Puzzle_AS3_Class-cp-28 flash.events.MouseEvent; Next1.addEventListener(MouseEvent.CLICK, Walk); function Walk(event: MouseEvent): void { addEventListener(Event.ENTER_FRAME, enterFrame); function enterFrame(e:Event):void { if (currentFrame == 30) { gotoAndPlay(31); } } } addEventListener(Event.ENTER_FRAME, enterFrame); function enterFrame(e:Event):void {     if (someAnimation.currentFrame == 30) {         //do this     } } stage.addEventListener(MouseEvent.MOUSE_MOVE, mousePosition); var smiley:MovieClip = addChild(new Smiley) as MovieClip; // **ERROR HERE** stage.addEventListener(MouseEvent.MOUSE_DOWN,toggleSmiley); stage.addEventListener(MouseEvent.MOUSE_UP,toggleSmiley); function mousePosition(event:MouseEvent) { smiley.x = mouseX; smiley.y = mouseY; } function toggleSmiley(e:MouseEvent):void {     smiley.vi...