<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 13:34:04 +0000</lastBuildDate>
    <item>
      <title>(C#) setLanguage in WinForms - Winkyboy</title>
      <link>https://snipplr.com/view/68111/setlanguage-in-winforms</link>
      <description>&lt;p&gt;Just a snippet I like; this can be called on GotFocus or LostFocus of a field, and it *attempts* to set the input language to the desired language.&lt;/p&gt;</description>
      <pubDate>Tue, 06 Nov 2012 06:57:10 UTC</pubDate>
      <guid>https://snipplr.com/view/68111/setlanguage-in-winforms</guid>
    </item>
    <item>
      <title>(JavaScript) Hide Sencha Touch list items dynamically via CSS - Winkyboy</title>
      <link>https://snipplr.com/view/65770/hide-sencha-touch-list-items-dynamically-via-css</link>
      <description>&lt;p&gt;Although I realize one should be able to filter a store to remove unwanted items in the list, this allows the list items through and just hides them via CSS.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Jun 2012 06:45:37 UTC</pubDate>
      <guid>https://snipplr.com/view/65770/hide-sencha-touch-list-items-dynamically-via-css</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 invert image transparency - Winkyboy</title>
      <link>https://snipplr.com/view/54809/as3-invert-image-transparency</link>
      <description>&lt;p&gt;This inverts the transparency on a Bitmap (probably supplied a PNG source) that specifically has two colors in it; "#656565" and "transparent" - you can tweak the threshold lines specifically if you'd like to modify that to use a range, or whatever.&#13;
&#13;
Adapted from http://stackoverflow.com/questions/608087/flex-actionscript-white-to-transparent and http://www.sephiroth.it/tutorials/flashPHP/thresold/&lt;/p&gt;</description>
      <pubDate>Fri, 03 Jun 2011 08:17:38 UTC</pubDate>
      <guid>https://snipplr.com/view/54809/as3-invert-image-transparency</guid>
    </item>
    <item>
      <title>(ActionScript 3) Calling Javascript (JS) function from Flash file (AS3) - Winkyboy</title>
      <link>https://snipplr.com/view/38290/calling-javascript-js-function-from-flash-file-as3</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 04 Aug 2010 01:44:11 UTC</pubDate>
      <guid>https://snipplr.com/view/38290/calling-javascript-js-function-from-flash-file-as3</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Get Object Names from GetObjectsUnderPoint - Winkyboy</title>
      <link>https://snipplr.com/view/38186/as3-get-object-names-from-getobjectsunderpoint</link>
      <description>&lt;p&gt;Calling this will conditionally trace the list of object names underneath your mouse point. It will only trace when the list of objects beneath the mouse actually changes.&lt;/p&gt;</description>
      <pubDate>Sun, 01 Aug 2010 23:46:36 UTC</pubDate>
      <guid>https://snipplr.com/view/38186/as3-get-object-names-from-getobjectsunderpoint</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 GetNextHighestDepth - Winkyboy</title>
      <link>https://snipplr.com/view/38024/as3-getnexthighestdepth</link>
      <description>&lt;p&gt;Often used in conjunction with dragging elements around the screen, you may want the item most recently picked up to jump to the top of the "stack." Here's how to do it. In the event handler you create, you tell the item's parent to set its child's index to the highest number of its children.&lt;/p&gt;</description>
      <pubDate>Thu, 29 Jul 2010 12:47:34 UTC</pubDate>
      <guid>https://snipplr.com/view/38024/as3-getnexthighestdepth</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3: Rounding to nearest N - Winkyboy</title>
      <link>https://snipplr.com/view/37923/as3-rounding-to-nearest-n</link>
      <description>&lt;p&gt;syntax:&#13;
&#13;
roundToNearest(45, YourValueHere);&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jul 2010 05:01:57 UTC</pubDate>
      <guid>https://snipplr.com/view/37923/as3-rounding-to-nearest-n</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 ComboBox extremely basic example - Winkyboy</title>
      <link>https://snipplr.com/view/27121/as3-combobox-extremely-basic-example</link>
      <description>&lt;p&gt;This is the most simple example of a ComboBox created in AS3, based mostly on Adobe's example from http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa9.html&#13;
&#13;
Inside the zip file you will find two folders. The first is this example with a ComboBox dragged onto the stage of the FLA with a supporting .AS file to populate it and make it work. The second example shows a ComboBox created and populated entirely by actionscript.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Jan 2010 17:03:32 UTC</pubDate>
      <guid>https://snipplr.com/view/27121/as3-combobox-extremely-basic-example</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Dropdown/Flyout menu - Winkyboy</title>
      <link>https://snipplr.com/view/23082/as3-dropdownflyout-menu</link>
      <description>&lt;p&gt;There ARE probably better dropdown menus than this one, but for simple purposes this works well. This has a button that reveals a menu that drops down. It could be easily tweaked to move upward instead. Uses Tweener.&lt;/p&gt;</description>
      <pubDate>Fri, 13 Nov 2009 16:27:35 UTC</pubDate>
      <guid>https://snipplr.com/view/23082/as3-dropdownflyout-menu</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Form Field focus/blur functions - Winkyboy</title>
      <link>https://snipplr.com/view/22413/as3-form-field-focusblur-functions</link>
      <description>&lt;p&gt;Paste this into your AS file to add focus and blur events to your text/form fields. If your field contains YOUR DEFAULT MESSAGE when focus is brought to it, it will erase itself, to be ready for text entry. If focus is lost while the field is completely empty, the default message will return.&lt;/p&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:21:28 UTC</pubDate>
      <guid>https://snipplr.com/view/22413/as3-form-field-focusblur-functions</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Email Validation - Winkyboy</title>
      <link>https://snipplr.com/view/22409/as3-email-validation</link>
      <description>&lt;p&gt;The source below is the function from the website with the corrected regular expression found in the site's comments. This is a nigh-one-line function for validating a string as an email address.&lt;/p&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:05:56 UTC</pubDate>
      <guid>https://snipplr.com/view/22409/as3-email-validation</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Banner Template - Winkyboy</title>
      <link>https://snipplr.com/view/22179/as3-banner-template</link>
      <description>&lt;p&gt;This is an AS3 version of the banner template I created a while back in AS2. The code has been placed in the accompanying banner.as file, with the exception of a little bit of code within the dynamically-centering button you'll see placed on the stage.&#13;
&#13;
Just like the AS2 version, this is: An empty FLA to be repurposed for creating other banners of varying size. Clickable area is resized automatically to fit the stage size, and a sample button with rollover states is included. &#13;
&#13;
I removed the frames-based animation; you can just add your own as you feel.&#13;
&#13;
(Uses Tweener from http://code.google.com/p/tweener/ )&lt;/p&gt;</description>
      <pubDate>Fri, 30 Oct 2009 11:23:54 UTC</pubDate>
      <guid>https://snipplr.com/view/22179/as3-banner-template</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 debugging script - Winkyboy</title>
      <link>https://snipplr.com/view/17888/as2-debugging-script</link>
      <description>&lt;p&gt;This can be used instead of "trace" to populate a text field in addition to the standard trace output. The textfield stays hidden until a selected key combination is pressed, thus allowing you to use it in a staging or, if need be, a production environment while keeping it hidden.&#13;
&#13;
Obviously it would be best to remove it from production when it debugging is finally complete, and you should change the key combination to something of your own making.&lt;/p&gt;</description>
      <pubDate>Tue, 04 Aug 2009 12:02:30 UTC</pubDate>
      <guid>https://snipplr.com/view/17888/as2-debugging-script</guid>
    </item>
    <item>
      <title>(CSS) Text Rotation with CSS - Winkyboy</title>
      <link>https://snipplr.com/view/17615/text-rotation-with-css</link>
      <description>&lt;p&gt;Fairly simple, cross-browser way to rotate text using only CSS.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jul 2009 09:41:28 UTC</pubDate>
      <guid>https://snipplr.com/view/17615/text-rotation-with-css</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 Banner with ClickTag Template - Winkyboy</title>
      <link>https://snipplr.com/view/17589/as2-banner-with-clicktag-template</link>
      <description>&lt;p&gt;An empty FLA to be repurposed for creating other banners of varying size. Clickable area is resized automatically to fit the stage size, and a sample button with rollover states is included.  Looping and loop delay are set according to actionscript variables in the first frame of the parent timeline. &#13;
&#13;
(Uses mc_tween2 from http://hosted.zeh.com.br/mctween/ )&lt;/p&gt;</description>
      <pubDate>Tue, 28 Jul 2009 17:02:08 UTC</pubDate>
      <guid>https://snipplr.com/view/17589/as2-banner-with-clicktag-template</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Video Player, placed on timeline, with spinning preloader - Winkyboy</title>
      <link>https://snipplr.com/view/17390/as3-video-player-placed-on-timeline-with-spinning-preloader</link>
      <description>&lt;p&gt;An ActionScript3 video player placed on the stage, configurable by FlashVars. It displays a spinning loader until the video loads.&#13;
&#13;
Also see http://snipplr.com/view/11606/ for another AS3 video code template&#13;
Read about AS3 video in this in-depth tutorial: http://www.republicofcode.com/tutorials/flash/as3flvplayback/&lt;/p&gt;</description>
      <pubDate>Thu, 23 Jul 2009 12:35:36 UTC</pubDate>
      <guid>https://snipplr.com/view/17390/as3-video-player-placed-on-timeline-with-spinning-preloader</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Image Loader with circular preloader spinner - Winkyboy</title>
      <link>https://snipplr.com/view/15958/as3-image-loader-with-circular-preloader-spinner</link>
      <description>&lt;p&gt;Not a really elegant design, but it lets you mess around with the loading code easily.&lt;/p&gt;</description>
      <pubDate>Mon, 15 Jun 2009 16:12:17 UTC</pubDate>
      <guid>https://snipplr.com/view/15958/as3-image-loader-with-circular-preloader-spinner</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Dynamic text bold format - Winkyboy</title>
      <link>https://snipplr.com/view/15359/as3-dynamic-text-bold-format</link>
      <description>&lt;p&gt;A dynamic text field doesn't like to be set to bold (or italic, whatever).  You can get around this issue by creating a text format in actionscript and setting that field's format to this newly-created one.  This is only good for having a text field where all words in it share the same format (i.e. all words are bold).&lt;/p&gt;</description>
      <pubDate>Wed, 27 May 2009 15:20:14 UTC</pubDate>
      <guid>https://snipplr.com/view/15359/as3-dynamic-text-bold-format</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 Basic Drag-Drop Collision - Winkyboy</title>
      <link>https://snipplr.com/view/14283/as2-basic-dragdrop-collision</link>
      <description>&lt;p&gt;CS4&lt;/p&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:44:53 UTC</pubDate>
      <guid>https://snipplr.com/view/14283/as2-basic-dragdrop-collision</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 Kerning dynamic text fields - Winkyboy</title>
      <link>https://snipplr.com/view/9928/as2-kerning-dynamic-text-fields</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Nov 2008 20:35:31 UTC</pubDate>
      <guid>https://snipplr.com/view/9928/as2-kerning-dynamic-text-fields</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 ComboBox "onSelect" changing - Winkyboy</title>
      <link>https://snipplr.com/view/9605/as3-combobox-onselect-changing</link>
      <description>&lt;p&gt;I copied this from my working example and tweaked some lines to make it generic.  Thus there MAY be a typo which I haven't checked for, but probably not.  This is what's needed to have something change upon selection of an item in a ComboBox.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Nov 2008 11:56:08 UTC</pubDate>
      <guid>https://snipplr.com/view/9605/as3-combobox-onselect-changing</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 Basic Steam Particles; requires MC Tween - Winkyboy</title>
      <link>https://snipplr.com/view/9552/as2-basic-steam-particles-requires-mc-tween</link>
      <description>&lt;p&gt;This is a CS3/AS2 Flash file containing a simple particle system.  It requires the use of MC Tween (http://hosted.zeh.com.br/mctween/).&lt;/p&gt;</description>
      <pubDate>Fri, 07 Nov 2008 11:49:21 UTC</pubDate>
      <guid>https://snipplr.com/view/9552/as2-basic-steam-particles-requires-mc-tween</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 getURL / navigateToURL (How to make clickable links in AS3) - Winkyboy</title>
      <link>https://snipplr.com/view/9312/as3-geturl--navigatetourl-how-to-make-clickable-links-in-as3</link>
      <description>&lt;p&gt;Shown in the source are the actual code, shorthand of the code, and Steven Sacks' simple-but-sweet rendition of getURL done in AS3, which requires the downloadable class from his site.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Oct 2008 11:28:03 UTC</pubDate>
      <guid>https://snipplr.com/view/9312/as3-geturl--navigatetourl-how-to-make-clickable-links-in-as3</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 onDragOver Functional Replacement - Winkyboy</title>
      <link>https://snipplr.com/view/9059/as2-ondragover-functional-replacement</link>
      <description>&lt;p&gt;Because onDragOver in AS2 doesn't really work, here is some script for actually detecting whether the mouse button is held down when rolling over something.  NOTE that for ideal usage, you will have to write some actual collision detection between the cursor (_xmouse /_ymouse) and whatever object(s) you wish to roll over.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:55:09 UTC</pubDate>
      <guid>https://snipplr.com/view/9059/as2-ondragover-functional-replacement</guid>
    </item>
    <item>
      <title>(ActionScript) AS2 convert string to date - Winkyboy</title>
      <link>https://snipplr.com/view/7620/as2-convert-string-to-date</link>
      <description>&lt;p&gt;This function takes a string containing a date in "mm/dd/yyyy" or "m/d/yyyy" format and converts it to a date object in AS2.&lt;/p&gt;</description>
      <pubDate>Thu, 31 Jul 2008 12:23:46 UTC</pubDate>
      <guid>https://snipplr.com/view/7620/as2-convert-string-to-date</guid>
    </item>
    <item>
      <title>(JavaScript) Mouseover / mouseout event fix: isMouseLeaveOrEnter - Winkyboy</title>
      <link>https://snipplr.com/view/5259/mouseover--mouseout-event-fix-ismouseleaveorenter</link>
      <description>&lt;p&gt;Usage: onmouseout='if (isMouseLeaveOrEnter(event, this)) YourActionHere();' onmouseover='if (isMouseLeaveOrEnter(event, this)) YourOtherActionHere();'&lt;/p&gt;</description>
      <pubDate>Mon, 03 Mar 2008 12:05:57 UTC</pubDate>
      <guid>https://snipplr.com/view/5259/mouseover--mouseout-event-fix-ismouseleaveorenter</guid>
    </item>
    <item>
      <title>(ActionScript) Scrollbar for dynamic text - Winkyboy</title>
      <link>https://snipplr.com/view/5133/scrollbar-for-dynamic-text</link>
      <description>&lt;p&gt;I'm not sure where this comes from, although it looks official.  It's easy to implement, but to change the height of the scrollbar you have to delve into the developer assets folder within the FLA.&lt;/p&gt;</description>
      <pubDate>Wed, 20 Feb 2008 17:21:03 UTC</pubDate>
      <guid>https://snipplr.com/view/5133/scrollbar-for-dynamic-text</guid>
    </item>
    <item>
      <title>(CSS) Superb 3-column tableless layout - Winkyboy</title>
      <link>https://snipplr.com/view/4567/superb-3column-tableless-layout</link>
      <description>&lt;p&gt;Also see the automagic column builder on this page. &#13;
&#13;
YOU NEED THIS FILE TOO!   Place it in the subfolder, "css/".&#13;
&#13;
http://snipurl.com/3col_support_css&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jan 2008 15:46:09 UTC</pubDate>
      <guid>https://snipplr.com/view/4567/superb-3column-tableless-layout</guid>
    </item>
    <item>
      <title>(CSS) Conditional CSS for FF, IE7, IE6 - Winkyboy</title>
      <link>https://snipplr.com/view/4564/conditional-css-for-ff-ie7-ie6</link>
      <description>&lt;p&gt;Set different values for an element based on browser (specifically, how the browser interprets the CSS).  Definitions must be in order as shown below because newer definitions override existing.&#13;
&#13;
The first setting will apply to all browsers.  &#13;
The second setting (using a pound symbol, #) will only apply to Microsoft Internet Explorer.&#13;
The third setting (an underscore, _ ) will only apply to IE browsers 6.0 and older.&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jan 2008 15:23:39 UTC</pubDate>
      <guid>https://snipplr.com/view/4564/conditional-css-for-ff-ie7-ie6</guid>
    </item>
  </channel>
</rss>
