STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #81108 |
FSCOMMAND TESTER 2.1 |
Output: |
Type a name of an application below and press Enter and see what happens... |
ActionScript [AS1/AS2]
Frame 1stop(); FSCommand2("FullScreen", true); var radius = 8; var btnW = 75; var btnH = 22; var arrTexts = ["Battery", "Signal", "Network", "Volume", "Platform", "Memory", "Device", "Locale", "SoftKeys", "Vibrate"]; var fillType = "linear"; var colors = [16161862, 15686187]; var alphas = [100, 100]; var ratios = [0, 245]; var matrix = {matrixType:"box", x:0, y:0, w:btnW, h:btnH, r:(Math.PI/2)}; var shineRadius = 9; var shineW = 62; var shineH = 18; var shineFillType = "linear"; var shineColors = [16777215, 16777215]; var shineAlphas = [70, 0]; var shineRatios = [0, 255]; var shineMatrix = {matrixType:"box", x:0, y:0, w:shineW, h:shineH, r:(Math.PI/2)}; var myTextFormat = new TextFormat(); myTextFormat.align = "center"; myTextFormat.font = "Verdana"; myTextFormat.size = 16; myTextFormat.bold = true; myTextFormat.color = 16777215 /* 0xFFFFFF */; var i = 0; while (i <= 9) { var new_Button = this.createEmptyMovieClip("btn" + arrTexts[i], _root.getNextHighestDepth()); new_Button._x = 15; new_Button._y = (i * 25) + 50; new_Button.createEmptyMovieClip("buttonBkg", new_Button.getNextHighestDepth()); with (new_Button.buttonBkg) { lineStyle(0, 15239745, 100, true, "none", "square", "round"); beginGradientFill(fillType, colors, alphas, ratios, matrix); moveTo(radius, 0); lineTo(btnW - radius, 0); curveTo(btnW, 0, btnW, radius); lineTo(btnW, btnH - radius); curveTo(btnW, btnH, btnW - radius, btnH); lineTo(radius, btnH); curveTo(0, btnH, 0, btnH - radius); lineTo(0, radius); curveTo(0, 0, radius, 0); endFill(); } new_Button.createEmptyMovieClip("shine", new_Button.getNextHighestDepth()); with (new_Button.shine) { _x = 8; _y = 3; lineStyle(0, 16777215, 0); beginGradientFill(shineFillType, shineColors, shineAlphas, shineRatios, shineMatrix); moveTo(shineRadius, 0); lineTo(shineW - shineRadius, 0); curveTo(shineW, 0, shineW, shineRadius); lineTo(shineW, shineH - shineRadius); curveTo(shineW, shineH, shineW - shineRadius, shineH); lineTo(shineRadius, shineH); curveTo(0, shineH, 0, shineH - shineRadius); lineTo(0, shineRadius); curveTo(0, 0, shineRadius, 0); endFill(); } new_Button.createTextField("labelText", new_Button.getNextHighestDepth(), 0, 0, 70, 24); new_Button.labelText.text = arrTexts[i]; new_Button.labelText.embedFonts = false; new_Button.labelText.selectable = false; new_Button.labelText.antiAliasType = "advanced"; new_Button.labelText.setTextFormat(myTextFormat); new_Button._alpha = 70; eval ("btn" + arrTexts[i])._focusrect = false; eval ("btn" + arrTexts[i]).onRollOver = function () { this._alpha = 100; }; eval ("btn" + arrTexts[i]).onRollOut = function () { this._alpha = 70; }; i++; } var myListener = new Object(); myListener.onKeyDown = function () { txt_Output.text = ("Key Pressed:\r[" + Key.getCode()) + "]"; }; Key.addListener(myListener); txt_Output.text = "Flash Player version: " + System.capabilities.version; if ((btnSoftKeys.labelText.text = "SoftKeys")) { btnSoftKeys.labelText.text = "Set Keys"; btnSoftKeys.labelText.setTextFormat(myTextFormat); } btnBattery.onPress = function () { var _local1 = FSCommand2("GetPowerSource"); var _local2 = Math.round(((FSCommand2("GetBatteryLevel")) / (FSCommand2("GetMaxBatteryLevel"))) * 100) + "%"; if (_local1 == -1) { _local1 = "Not supported"; } if (_local1 == 0) { _local1 = "Battery power"; } if (_local1 == 1) { _local1 = "Gharger"; } txt_Output.text = "Battery level :"; txt_Output.text = (((((txt_Output.text + newline) + _local2) + newline) + newline) + "Running on: ") + _local1; }; btnSignal.onPress = function () { var _local1 = Math.round(((FSCommand2("GetSignalLevel")) / (FSCommand2("GetMaxSignalLevel"))) * 100) + "%"; netGeneration = FSCommand2("GetNetworkGeneration"); switch (netGeneration) { case -1 : netGeneration = "No Network"; break; case 0 : netGeneration = "Can't tell"; break; case 1 : netGeneration = "2G"; break; case 2 : netGeneration = "2.5G"; break; case 3 : netGeneration = "3G"; } txt_Output.text = (("Network Coverage: \r" + _local1) + newline) + netGeneration; }; btnNetwork.onPress = function () { netStat = FSCommand2("GetNetworkStatus"); var _local1; switch (netStat) { case -1 : _local1 = "network status not supported\r"; break; case 0 : _local1 = "no network registered\r"; break; case 1 : _local1 = "on home network\r"; break; case 2 : _local1 = "on extended home network\r"; break; case 3 : _local1 = "roaming\r"; } conStat = FSCommand2("GetConnectionStatus"); var _local2; switch (conStat) { case -1 : _local2 = "network status not supported\r"; break; case 0 : _local2 = "no network registered\r"; break; case 1 : _local2 = "on home network\r"; break; case 2 : _local2 = "on extended home network\r"; break; case 3 : _local2 = "roaming\r"; } statusnetName = FSCommand2("GetNetworkName", "netName"); if (netName == "undefined") { netName = ""; } txt_Output.text = (("Network Status: \r" + netName) + newline) + _local1; }; btnVolume.onPress = function () { var _local1 = Math.round(((FSCommand2("GetVolumeLevel")) / (FSCommand2("GetMaxVolumeLevel"))) * 100) + "%"; txt_Output.text = "Volume Level: \r" + _local1; }; btnPlatform.onPress = function () { statusplatform = FSCommand2("GetPlatform", "thePlatform"); txt_Output.text = "Platform:\r" + thePlatform; }; btnMemory.onPress = function () { txt_Output.text = "Fee memory:\r" + (FSCommand2("GetFreePlayerMemory")); }; btnDevice.onPress = function () { statusdeviceID = FSCommand2("GetDeviceID", "deviceID"); txt_Output.text = "IMEI:\r" + deviceID; }; btnLocale.onPress = function () { status = FSCommand2("GetLocaleLongDate", "nowDate"); numDay = FSCommand2("GetDateWeekday"); status = FSCommand2("GetLocaleTime", "nowTime"); status = FSCommand2("GetLanguage", "isoLang"); switch (numDay) { case 0 : weekDay = "Sunday"; break; case 1 : weekDay = "Monday"; break; case 2 : weekDay = "Tuesday"; break; case 3 : weekDay = "Wednesday"; break; case 4 : weekDay = "Thursday"; break; case 5 : weekDay = "Friday"; break; case 6 : weekDay = "Saturday"; } txt_Output.text = ((((((((("Today is:\r" + weekDay) + newline) + nowDate) + newline) + nowTime) + newline) + newline) + "Locale:") + newline) + isoLang; }; btnSoftKeys.onPress = function () { if (btnSoftKeys.labelText.text == "Set Keys") { btnSoftKeys.labelText.text = "Reset"; btnSoftKeys.labelText.setTextFormat(myTextFormat); FSCommand2("SetSoftKeys", "Left", "Right"); txt_Output.text = "Click to Reset and return to full screen"; FSCommand2("FullScreen", false); } else { btnSoftKeys.labelText.text = "Set Keys"; btnSoftKeys.labelText.setTextFormat(myTextFormat); FSCommand2("ResetSoftKeys"); txt_Output.text = "Softkeys are reverted to default"; FSCommand2("FullScreen", true); } }; btnVibrate.onPress = function () { status = FSCommand2("StartVibrate", 100, 250, 3); if (status == 0) { txt_Output.text = "Vibration sequence of 100 milliseconds on, 250 milliseconds off, repeated three times."; } else { txt_Output.text = "Vibration function not supported in this device"; } }; btn_Launch._focusrect = false; btn_Launch.onPress = function () { removeMovieClip("btnBattery"); removeMovieClip("btnSignal"); removeMovieClip("btnNetwork"); removeMovieClip("btnVolume"); removeMovieClip("btnPlatform"); removeMovieClip("btnMemory"); removeMovieClip("btnDevice"); removeMovieClip("btnLocale"); removeMovieClip("btnSoftKeys"); removeMovieClip("btnVibrate"); gotoAndPlay (2); Selection.setFocus("txt_Application"); fscommand ("activateTextField"); }; PopUpInput.txt_Application.onChanged = function (appName) { fscommand ("Launch", appName.text); appName.text = ""; gotoAndStop (1); };Frame 12stop();
Library Items
Symbol 1 Graphic | Used by:Timeline | ||
Symbol 2 Font | Used by:3 17 18 | ||
Symbol 3 EditableText | Uses:2 | Used by:Timeline | |
Symbol 4 Graphic | Used by:Timeline | ||
Symbol 5 Font | Used by:6 | ||
Symbol 6 EditableText | Uses:5 | Used by:Timeline | |
Symbol 7 Font | Used by:8 | ||
Symbol 8 EditableText | Uses:7 | Used by:Timeline | |
Symbol 9 Graphic | Used by:15 | ||
Symbol 10 Graphic | Used by:15 | ||
Symbol 11 Graphic | Used by:15 | ||
Symbol 12 Graphic | Used by:15 | ||
Symbol 13 Graphic | Used by:15 | ||
Symbol 14 Graphic | Used by:15 | ||
Symbol 15 Button | Uses:9 10 11 12 13 14 | Used by:Timeline | |
Symbol 16 Graphic | Used by:20 | ||
Symbol 17 Text | Uses:2 | Used by:20 | |
Symbol 18 EditableText | Uses:2 | Used by:20 | |
Symbol 19 Graphic | Used by:20 | ||
Symbol 20 MovieClip | Uses:16 17 18 19 | Used by:Timeline |
Instance Names
"txt_Output" | Frame 1 | Symbol 8 EditableText |
"btn_Launch" | Frame 1 | Symbol 15 Button |
"PopUpInput" | Frame 1 | Symbol 20 MovieClip |
"txt_Application" | Symbol 20 MovieClip Frame 1 | Symbol 18 EditableText |
|