Difference between revisions of "Example Widgets"
From Chumby Wiki
Unwiredben (Talk | contribs) (added FlashDeveloper virtual keyboard notes) |
|||
Line 16: | Line 16: | ||
* [http://files.chumby.com/widgetexamples/VirtualKeyboard.tgz VirtualKeyboard.tgz] - requires Flash CS3, uses Actionscript 2 | * [http://files.chumby.com/widgetexamples/VirtualKeyboard.tgz VirtualKeyboard.tgz] - requires Flash CS3, uses Actionscript 2 | ||
+ | |||
+ | == Using Virtual Keyboard with FlashDevelop == | ||
+ | |||
+ | (originally posted on the forums at http://forum.chumby.com/viewtopic.php?pid=27050#p27050 by "occasional") | ||
+ | |||
+ | Add the VirtualKeyboard.swf as an asset to your FlashDevelop project, then use this code to activate it: | ||
+ | |||
+ | [code] | ||
+ | var keyboard:MovieClip = _root.attachMovie("keyboard.swf", "keyboard", _root.getNextHighestDepth()); | ||
+ | keyboard.instance1.accept = function(s:String) { | ||
+ | // this method is called when the user enters a string with the keyboard and hits return | ||
+ | trace("user entered "+s); | ||
+ | } | ||
+ | [/code] |
Revision as of 09:21, 28 January 2010
Here are some Flash source (.fla) files for various types of widgets:
- Sample Clock Widget
- Digital Clock Widget
- Sample Binary Clock Widget
- Sample RSS Widget
- Sample Webcam Widget
- Sample Banner Widget
- Sample Accelerometer Widget
- FlashDevelop/FlickrPhotoViewer
- Pendulum
- Pendulum Multiplayer
- RootTools (.as files, using mtasc and swfmill)
Here's the Virtual Keyboard used by the Control Panel:
- VirtualKeyboard.tgz - requires Flash CS3, uses Actionscript 2
Using Virtual Keyboard with FlashDevelop
(originally posted on the forums at http://forum.chumby.com/viewtopic.php?pid=27050#p27050 by "occasional")
Add the VirtualKeyboard.swf as an asset to your FlashDevelop project, then use this code to activate it:
[code] var keyboard:MovieClip = _root.attachMovie("keyboard.swf", "keyboard", _root.getNextHighestDepth()); keyboard.instance1.accept = function(s:String) {
// this method is called when the user enters a string with the keyboard and hits return trace("user entered "+s);
} [/code]