If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!
The Amazing World of Gumball: Sky Streaker
Jump to navigation
Jump to search
Cleanup > Pages missing date references
Cleanup > Pages missing developer references
Cleanup > Pages missing publisher references
Games > Games by content > Games with unused code
Games > Games by content > Games with unused text
Games > Games by developer > Games developed by Cartoon Network Studios
Games > Games by platform > Adobe Flash games
Games > Games by publisher > Games published by Cartoon Network > Games published by Cartoon Network Studios
Games > Games by release date > Games released in 2015
Games > Games by release date > Games released in March
Games > Games by release date > Games released in March > Games released on March 19
Games > Games by series > Amazing World of Gumball series
The Amazing World of Gumball: Sky Streaker |
---|
Developer: Cartoon Network Studios This game has unused code. |
Unused Text
some message here
Placeholder message.
Unused FPS Counter
package com.fox { import flash.display.*; import flash.events.*; import flash.system.*; import flash.text.*; import flash.utils.*; public class fpsbox extends TextField { protected var format:TextFormat; protected var fpsarray:Array; protected var targetfps:int = 0; protected var frames:uint = 0; public function fpsbox(... args) { args = null; frames = 0; format = new TextFormat(); fpsarray = new Array(); targetfps = 0; args = new Timer(1000); format.font = "Verdana"; format.color = 0; format.size = 10; this.autoSize = TextFieldAutoSize.LEFT; this.defaultTextFormat = format; this.text = "-- FPS ---- AV"; args.addEventListener(TimerEvent.TIMER, tick); if (args[0] is Stage) { args[0].addEventListener(Event.ENTER_FRAME, fpsloop, false, 0, true); targetfps = args[0].frameRate; } else { this.addEventListener(Event.ENTER_FRAME, fpsloop, false, 0, true); } args.start(); return; }// end function public function fpsloop(event:Event) : void { var _loc_3:* = frames + 1; frames = _loc_3; return; }// end function protected function tick(event:TimerEvent) : void { var _loc_2:* = 0; fpsarray.push(frames); if (fpsarray.length == 4) { _loc_2 = 1; while (_loc_2 < fpsarray.length) { fpsarray[0] = fpsarray[0] + fpsarray[_loc_2]; _loc_2++; } fpsarray.splice(1, (fpsarray.length - 1)); fpsarray[0] = fpsarray[0] / 4; } this.text = frames + " FPS " + Math.round(fpsarray[0]) + " AV | RAM: " + int(System.totalMemory / 1000000 * 100) / 100 + "Mb"; frames = 0; return; }// end function } }
A piece of code for an unseen FPS counter.
The Amazing World of Gumball series
| |
---|---|
Adobe Flash | Blind Fooled • Dino Donkey Dash • Class Spirits • Nightmare in Elmore • Battle Bowlers • Sky Streaker |
See Also | |
Cartoon Network |
Categories:
- Pages missing developer references
- Games developed by Cartoon Network Studios
- Pages missing publisher references
- Games published by Cartoon Network Studios
- Adobe Flash games
- Pages missing date references
- Games released in 2015
- Games released in March
- Games released on March 19
- Games with unused code
- Games with unused text
- Amazing World of Gumball series
Cleanup > Pages missing date references
Cleanup > Pages missing developer references
Cleanup > Pages missing publisher references
Games > Games by content > Games with unused code
Games > Games by content > Games with unused text
Games > Games by developer > Games developed by Cartoon Network Studios
Games > Games by platform > Adobe Flash games
Games > Games by publisher > Games published by Cartoon Network > Games published by Cartoon Network Studios
Games > Games by release date > Games released in 2015
Games > Games by release date > Games released in March
Games > Games by release date > Games released in March > Games released on March 19
Games > Games by series > Amazing World of Gumball series