STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228139
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5122

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/17253111?noj=FRM17253111-19DC" width="1" height="1"></div>

1262546867337.swf

This is the info page for
Flash #81108

(Click the ID number above for more basic data on this flash file.)


Text
FSCOMMAND TESTER 2.1

Output:

Type a name
of an application
below and press
Enter and see
what happens...

ActionScript [AS1/AS2]

Frame 1
stop(); 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 12
stop();

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3 17 18
Symbol 3 EditableTextUses:2Used by:Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 FontUsed by:6
Symbol 6 EditableTextUses:5Used by:Timeline
Symbol 7 FontUsed by:8
Symbol 8 EditableTextUses:7Used by:Timeline
Symbol 9 GraphicUsed by:15
Symbol 10 GraphicUsed by:15
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:9 10 11 12 13 14Used by:Timeline
Symbol 16 GraphicUsed by:20
Symbol 17 TextUses:2Used by:20
Symbol 18 EditableTextUses:2Used by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:16 17 18 19Used by:Timeline

Instance Names

"txt_Output"Frame 1Symbol 8 EditableText
"btn_Launch"Frame 1Symbol 15 Button
"PopUpInput"Frame 1Symbol 20 MovieClip
"txt_Application"Symbol 20 MovieClip Frame 1Symbol 18 EditableText




http://swfchan.com/17/81108/info.shtml
Created: 2/4 -2019 04:17:02 Last modified: 2/4 -2019 04:17:02 Server time: 19/05 -2024 00:09:01